dram.me

LedgerSMB安装配置

  1. 安装perlbrew:apt install --no-install-recommends perlbrew

  2. 初始化perlbrew环境:perlbrew init

  3. 安装perl:perlbrew install --notest --verbose perl-5.32.1

  4. 安装cpanminus:perlbrew install-cpanm

  5. 安装依赖包: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

  6. 准备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
  7. DoJo打包:make dojo

  8. 启动LedgerSMB服务:perlbrew exec --with perl-5.32.1 starman -I lib -I old/lib --preload-app bin/ledgersmb-server.psgi

  9. 创建数据库管理用户:CREATE ROLE ledgersmb WITH CREATEDB CREATEROLE LOGIN PASSWORD 'ledgersmb'