LedgerSMB 1.7.18 install of FreeeBSD-12.1p8
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? -- *** 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:ByrneJB@Harte-Lyne.ca 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
On Thu, August 27, 2020 10:28, James B. Byrne wrote:
I am attempting to install LedgerSMB from a tarball into a FreeBSD jail running FBSD-12.1.p8.
I am working with the Makefile and I get this error: gmake: utils/install/build-id: No such file or directory In the Makefile this statement is found: DIST_VER=$(shell utils/install/build-id) There is no utils/install directory much less a build-id file present in the tarball. Is this an omission or an error in the Makefile? If neither case applies and the user is to provide these what should the contents of the build-id file look like? -- *** 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:ByrneJB@Harte-Lyne.ca 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
Hi James, On Thu, Aug 27, 2020 at 6:03 PM James B. Byrne <byrnejb@harte-lyne.ca> wrote:
On Thu, August 27, 2020 10:28, James B. Byrne wrote:
I am attempting to install LedgerSMB from a tarball into a FreeBSD jail running FBSD-12.1.p8.
I am working with the Makefile and I get this error:
gmake: utils/install/build-id: No such file or directory
In the Makefile this statement is found:
DIST_VER=$(shell utils/install/build-id)
There is no utils/install directory much less a build-id file present in the tarball. Is this an omission or an error in the Makefile?
The file the makefile depends on has been removed. I see the Makefile needs to be adjusted. It's not a serious problem.
If neither case applies and the user is to provide these what should the contents of the build-id file look like?
Originally the build-id file was extracting the commit hash from the git repository to make it visible in the UI to allow developers to understand which version someone was actually using and reporting bugs on. As we're now frequently releasing new versions, we're finding users have less need to run an unreleased version which we need to identify by the commit hash. As a result, this function was removed, apparently not completely. (I'll remove its remainder later today.) -- Bye, Erik. http://efficito.com -- Hosted accounting and ERP. Robust and Flexible. No vendor lock-in.
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 <byrnejb@harte-lyne.ca> 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:ByrneJB@Harte-Lyne.ca 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 -- users@lists.ledgersmb.org To unsubscribe send an email to users-leave@lists.ledgersmb.org
-- Bye, Erik. http://efficito.com -- Hosted accounting and ERP. Robust and Flexible. No vendor lock-in.
participants (2)
-
Erik Huelsmann
-
James B. Byrne