I am attempting to install LedgerSMB from a tarball into a FreeBSD jail running FBSD-12.1.p8.
I have Apache and Starman configured and running. However, Starman reports this error:
Error while loading /opt/ledgersmb/1.7.18/ledgersmb/bin/ledgersmb-server.psgi: Can't locate LedgerSMB/PSGI.pm in @INC (you may need to install the LedgerSMB::PSGI module) (@INC contains: /opt/ledgersmb/1.7.18/ledgersmb/bin/.. /usr/local/lib/perl5/site_perl/mach/5.30 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.30/mach /usr/local/lib/perl5/5.30) at /opt/ledgersmb/1.7.18/ledgersmb/bin/ledgersmb-server.psgi line 18. BEGIN failed--compilation aborted at /opt/ledgersmb/1.7.18/ledgersmb/bin/ledgersmb-server.psgi line 18.
[root@accounting-2 ~ (master)]# find / -name PSGI.pm . . . /opt/ledgersmb/1.7.18/ledgersmb/lib/LedgerSMB/PSGI.pm /usr/local/lib/perl5/site_perl/CGI/Emulate/PSGI.pm /usr/local/lib/perl5/site_perl/CGI/Parse/PSGI.pm /usr/local/lib/perl5/site_perl/HTTP/Message/PSGI.pm /usr/local/lib/perl5/site_perl/HTTP/Server/PSGI.pm /usr/local/lib/perl5/site_perl/Plack/Handler/HTTP/Server/PSGI.pm /usr/local/lib/perl5/site_perl/Net/Server/PSGI.pm
[root@accounting-2 ~ (master)]# perl -E 'say for @INC' /usr/local/lib/perl5/site_perl/mach/5.30 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.30/mach /usr/local/lib/perl5/5.30
I am not very familar with perl but it seems to me that I need to set PERL5LIB to include /opt/ledgersmb/1.7.18/ledgersmb/lib/LedgerSMB. But where do I set this so that Starman picks it up?