Dear Robert,
thanks for pointing out this bug.
The original developer of SQL Ledger, Dieter Simader, has passed away a few
years ago and development of „SQL Ledger“ is now being carried on by the SQL
Ledger Community.
The original project website sql-ledger.com is still active and online and the
issue is also being mentioned in the FAQ:
---
perl 5.26 @INC errorIf you get something like this instead of the login screen
Can't locate bin/mozilla/login.pl in @INC (@INC contains:
/usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at
/var/www/html/sql-ledger/login.pl line 119.
add the code below at the beginning of am.pl and login.pl if you have symlinks
to the other files in the root directory, otherwise add it to all the scripts
in the sql-ledger root directory
BEGIN {
push @INC, '.';
}
—
I eventually could work around this issue by modifying the .pl files with a
script
---
#!/bin/bash
# Insert missing lines to all *pl files
for i in `ls *.pl`
do
echo "Modifying the file: $i"
string="BEGIN {\n push @INC, '.';\n}"
sed "2i$string" $i -i
done
—
My results are being published on my own repository on github.com
<http://github.com/> which is at:
https://github.com/tapwag/ledgerplus/
but doesn’t contain the latest version 3.2.12 of SQL Ledger.
As upstream didn’t use github.com <http://github.com/> development by the
remaining community now takes place at:
https://github.com/ISLNA/sql-ledger
but apparently this issue with the @INC-Path is not fixed there and I do not
know if this issue aligns with Debian’s Perl Policies.
Have a great day,
Maik „tapwag“ Wagner, Wernigerode (Germany)
www.linuxandlanguages.com <http://www.linuxandlanguages.com/>