LedgerSMB
The foundation for your business
Fork me on GitHub
[ledgersmb-users] Re: LedgerSMB 1.7.18 install of FreeeBSD-12.1p8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ledgersmb-users] Re: LedgerSMB 1.7.18 install of FreeeBSD-12.1p8



Hi James,

I know you already have your answer through the chat channel, but I'm answering in the mailing list as well to archive the answer for posterity or maybe other mailing list readers are interested to know the answer too.

On Thu, Aug 27, 2020 at 4:29 PM James B. Byrne <..hidden..> wrote:
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.

Starman inherits support for the -I (capital i) option from "plackup", but starman's own documentation doesn't list it. This option allows specification of additional library paths for Perl to consider. We added "-Ilib" and "-Iold/lib" which are the library paths for our code base.

Then we started starman in the root of the cloned repository (/opt/ledgersmb) which is important so starman can find the UI templates and other files.
 

[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?



--
***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
   Unencrypted messages have no legal claim to privacy
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:..hidden..
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3
_______________________________________________
users mailing list -- ..hidden..
To unsubscribe send an email to ..hidden..


--
Bye,

Erik.

http://efficito.com -- Hosted accounting and ERP.
Robust and Flexible. No vendor lock-in.
_______________________________________________
users mailing list -- ..hidden..
To unsubscribe send an email to ..hidden..