lintgrabber has asked for the wisdom of the Perl Monks concerning the following question:
SERVER_SOFTWARE="Oracle HTTP Server Powered by Apache/1.3.19 (Unix) mod_fastcgi/2.2.10 mod_perl/1.25 mod_oprocmgr/1.0"
Though I start the script with:
#!/local/perl5.8/bin/perl -w -I/local/perl5.8/lib/5.8.0
and DB_File is found, I get a '500 Internal Server Error' indicating that DB_File requires AutoLoader which in turn requires vars which, in the 5.00503 perl distribution, has a typo apparently:
Invalid [] range "a-Z" in transliteration operator at /oracle/iAS/1.0.2.2/Apache/perl/lib/5.00503/vars.pm line 17.
Compilation failed in require at /oracle/iAS/1.0.2.2/Apache/perl/lib/5.00503/AutoLoader.pm line 3.
BEGIN failed--compilation aborted at /oracle/iAS/1.0.2.2/Apache/perl/lib/5.00503/AutoLoader.pm line 3.
Compilation failed in require at /local/perl5.8/lib/5.8.0/sun4-solaris/DB_File.pm line 184.
BEGIN failed--compilation aborted at /local/perl5.8/lib/5.8.0/sun4-solaris/DB_File.pm line 184.
Compilation failed in require at /ncsa/cgi-bin/perlfect/search/test4.pl line 12.
BEGIN failed--compilation aborted at /ncsa/cgi-bin/perlfect/search/test4.pl line 12.
Thu Feb 20 16:49:11 2003 error client 127.0.0.1 Premature end of script headers: /ncsa/cgi-bin/perlfect/search/test4.pl
Here's the line from /oracle/iAS/1.0.2.2/Apache/perl/lib/5.00503/vars.pm:
if ($sym =~ tr/A-Za-Z_0-9//c) {
However, that the 5.00503 vars.pm has this invalid range, is sort of secondary to what I believe is the problem:
I can use or require by perl version choice only one level down; i.e., I get the perl5.8 DB_File (strangely the @INC of the version of perl that Apache starts with doesn't have it - in my search it seems to be standard or near core module or at least AnyDBM_File is) but get 5.00503 modules for any that are thus indirectly use-d or require-d.
I've tried various tacts to get a better vars.pm:
-require "/path to 5.8 libs/vars.pm";
- -I shell invocation parameter
-prepending 5.8 lib path to PERL5LIB ENV variable
to no avail. This is despite PERL5LIB and @INC set such that the 5.8 libs would be, and in the case of DB_File are, found. I don't know of another way that I can, as a user, modify how the web server looks for modules. I'm not sure if this is a mod_perl issue. I can look at the error logs and httpd.conf (there are Apache::Require lines there) but thus far haven't been able to get any server support types to help (maybe they don't know) beyond installing DB_File (and by dependence BerkeleyDB). I've suggested that someone just fix the typo but while I wait I've enlisted the help of your knowledge.
Your help is appreciated. Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: module problem between perl and Apache
by chromatic (Archbishop) on Feb 21, 2003 at 03:54 UTC | |
|
Re: module problem between perl and Apache
by iguanodon (Priest) on Feb 21, 2003 at 16:21 UTC | |
|
Re: module problem between perl and Apache
by lintgrabber (Initiate) on Feb 21, 2003 at 15:48 UTC | |
|
Re: module problem between perl and Apache
by lintgrabber (Initiate) on Feb 22, 2003 at 00:19 UTC |