LedgerSMB安装配置
安装perlbrew:
apt install --no-install-recommends perlbrew
初始化perlbrew环境:
perlbrew init
安装perl:
perlbrew install --notest --verbose perl-5.32.1
安装cpanminus:
perlbrew install-cpanm
安装依赖包:
perlbrew exec --with perl-5.32.1 cpanm --notest --verbose --with-feature=starman --mirror=https://mirrors.tuna.tsinghua.edu.cn/CPAN/ --mirror-only --installdeps $HOME/code/ledgersmb/LedgerSMB
准备Node.js环境:
wget https://nodejs.org/dist/v16.11.1/node-v16.11.1-linux-x64.tar.xz tar xf node-v16.11.1-linux-x64.tar.xz ln -s $PWD/node-v16.11.1-linux-x64/bin/{node,npm} $HOME/.local/bin
DoJo打包:
make dojo
启动LedgerSMB服务:
perlbrew exec --with perl-5.32.1 starman -I lib -I old/lib --preload-app bin/ledgersmb-server.psgi
创建数据库管理用户:
CREATE ROLE ledgersmb WITH CREATEDB CREATEROLE LOGIN PASSWORD 'ledgersmb'