XFileSharing Pro - cron.pl: Can't locate Session.pm

Message
Author
brunob
Posts: 15
Joined: Dec 16, 2009 8:28 pm

cron.pl: Can't locate Session.pm

#1 Postby brunob » Apr 26, 2010 12:45 pm

I think this script is good, but the support is horrible
please explain why this error occurs and how to fix it

[Fri Apr 23 02:00:01 2010] cron.pl: Can't locate Session.pm in @INC
(@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7
/usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7
/usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .)
at /home/easy44/public_html/cgi-bin/cron.pl line 4.
[Fri Apr 23 02:00:01 2010] cron.pl: BEGIN failed--compilation aborted
at /home/easy44/public_html/cgi-bin/cron.pl line 4.
Status: 500
Content-type: text/html

<h1>Software error:</h1>
<pre>Can't locate Session.pm in @INC (@INC contains:
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7
/usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7
/usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .)
at /home/easy44/public_html/cgi-bin/cron.pl line 4.
BEGIN failed--compilation aborted at
/home/easy44/public_html/cgi-bin/cron.pl line 4.
</pre>
<p>
For help, please send mail to this site's webmaster, giving this error message
and the time and date of the error.

</p>

admin
Site Admin
Posts: 1824
Joined: Mar 22, 2006 12:32 pm

#2 Postby admin » Apr 26, 2010 7:31 pm

You need to do "cd" to script dir before executing cron.pl script. Please check install manual for exact line for crontab.

mrperl
Posts: 65
Joined: Mar 06, 2010 11:40 am

Re: cron.pl: Can't locate Session.pm

#3 Postby mrperl » Apr 29, 2010 11:24 am

or near the top of your script:

Code: Select all

use lib '/path/to/libraries';

or from the command line:

Code: Select all

perl -I/path/to/libraries cron.pl

or maybe like this from the command line if you're weird:

Code: Select all

perl -m ...

mrperl


Return to “XFileSharing Pro”