Hi Monks,
I am trying to migrate a server that uses cgi-bin and I am running into problems, because a "use" statement does not see the modules that it is trying to access. More specifically:
Apache log error
AH01215: Can't locate Error.pm in @INC (@INC contains: /srv/www/Direct
+/perl-lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/pe
+rl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/sh
+are/perl5 .
However:
/srv/www/Direct/perl-lib/Portal
give me:
ConfigError.pm
DataIntegrityError.pm
Error.pm
JSTypeError.pm
Page.pm
SessionExpiredError.pm
TypeError.pm
DatabaseError.pm
DebugError.pm
FileSizeError.pm
LockError.pm
PermissionError.pm
SystemError.pm
so,
Error.pm exists! Furthermore, the login page that is producing the error has:
use lib '/srv/www/Direct/perl-lib';
use Portal::Page;
use Portal::Error;
use Portal::PermissionError;
use Portal::DatabaseError;
use Portal::SessionExpiredError;
use DirectWeb::Database;
use DirectWeb::Authenticator;
use Error qw(:try);
use CGI;
use CGI::Cookie;
use Log::Handler;
use URI::Escape;
which, in my mind, means that the custom lib folder is declared explicitly, but @INC does not see it (?)
Am I doing something wrong here?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.