I am moving to a new Sun server running Solaris8.
I installed perl 5.00503, MySQL, and Apache with no trouble. Then I started to install the required modules for the scripts I already have.
I reduced the problem down to this:
#!/usr/bin/perl
use CGI::Carp qw(fatalsToBrowser);
use HTML::Parser;
print("Content-type: text/html\n\n");
print "hello.\n";
exit(0);
From the COMMAND LINE, I get
hello.
But from APACHE, I get,
[Wed Oct 10 12:13:00 2001] Parser.pm: [Wed Oct 10 12:13:00 2001] DynaL
+oader.pm: Can't locate loadable object for module HTML::Parser in @IN
+C (@INC contains: /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503
+/usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .)
+ at /www/mywebsite/htdocs/test.pl line 5 BEGIN failed--compilation ab
+orted at /www/mywebsite/htdocs/test.pl line 5.
The problem is with Apache not reading Parser.pm, but why??? I have NO PROBLEMS with other scripts. Just this one that needs Parser.pm
Parser.pm is version 3.25 - I tried finding an older version on CPAN with no luck
Please help!!!
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.