Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Can't locate DBStuff.pm in @INC (@INC contains: .. /etc/perl /usr/loca +l/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/li +b/site_perl .) at /home/mysite.com/cgi-bin/scripts/check.pl line 10. BEGIN failed--compilation aborted at /home/mysite.com/cgi-bin/scripts/ +check.pl line 10.
Here is the part of the code:.. /cgi-bin /lib/ DBStuff.pm /scripts/ check.pl ..
Any suggestions?#!/usr/bin/perl use strict; use warnings; use CGI qw(escapeHTML); use Data::Dumper; use Date::Calc qw( Today_and_Now ); use lib '..'; # Add private library to path use DBStuff; ####>>>>>>>>>>>>>> This is my line 10 use MyLib::Log qw(do_log); if ($@) { warn "Cron job failed: $@\n"; } my $q = new CGI; $| = 1; BEGIN { my $log_error = 'error.txt'; use CGI::Carp qw(carpout); # Send all warnings to the log_file open STDERR, '>>', $log_error; } ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl module path not found
by stevieb (Canon) on Oct 07, 2015 at 13:25 UTC | |
by AnomalousMonk (Archbishop) on Oct 07, 2015 at 13:55 UTC | |
by stevieb (Canon) on Oct 07, 2015 at 14:34 UTC | |
by karlgoethebier (Abbot) on Oct 07, 2015 at 17:29 UTC | |
|
Re: Perl module path not found
by toolic (Bishop) on Oct 07, 2015 at 13:24 UTC | |
|
Re: Perl module path not found
by RichardK (Parson) on Oct 07, 2015 at 13:57 UTC |