pjheslin / diogenes

Diogenes: an environment for reading Latin and Greek
https://d.iogen.es/d
Other
56 stars 10 forks source link

diogenes-cli.pl is broken on newer perls #107

Closed nitardus closed 5 months ago

nitardus commented 1 year ago

On my machine (running Perl 5.36, now 5.38), I got the following error when trying to run 'diogenes-cli.pl -g':

Can't locate Diogenes/Base.pm in @INC (you may need to install the Diogenes::Base module) (@INC entries checked: /usr/lib/perl5/5.38/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.38/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.38/core_perl /usr/share/perl5/core_perl) at /opt/diogenes/server/diogenes-cli.pl line 33. BEGIN failed--compilation aborted at /opt/diogenes/server/diogenes-cli.pl line 33.

I guess that you tried to fix this problem earlier by pushing '.' into @INC, but that seems not to work anymore. I fixed this in my copy of diogenes-cli.pl by replacing line 31 by the two following lines:

use FindBin qw($Bin); use lib $Bin;

pjheslin commented 5 months ago

Apologies for the delay in getting to this. I had fixed this in my own repo at some point but had neglected to push the change. Fixed with commit c1b13f9e921f3a17a17b8732a1b9eecc2d2a3c29