- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Apache2.pm not found in perl, Yet I easily see it.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2009 06:12 AM
09-30-2009 06:12 AM
#!/usr/bin/perl
use Apache2;
print "hi there\n";
./junk.pl
Can't locate Apache2.pm in @INC (@INC contains: /scrap/perl_5.8.8/lib/5.8.8/PA-RISC2.0 /scrap/perl_5.8.8/lib/5.8.8 /scrap/perl_5.8.8/lib/site_perl/5.8.8/PA-RISC2.0 /scrap/perl_5.8.8/lib/site_perl/5.8.8 /scrap/perl_5.8.8/lib/site_perl .) at ./junk.pl line 2.
BEGIN failed--compilation aborted at ./junk.pl line 2.
find /scrap/perl_5.8.8/lib -name "Apache2*"
/scrap/perl_5.8.8/lib/site_perl/5.8.8/PA-RISC2.0/auto/Apache2
/scrap/perl_5.8.8/lib/site_perl/5.8.8/PA-RISC2.0/Apache2
/scrap/perl_5.8.8/lib/site_perl/5.8.8/PA-RISC2.0/Bundle/Apache2.pm
Well I can find it. Why can't perl?
perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=hpux, osvers=11.23, archname=PA-RISC2.0
uname='hp-ux mactac6 b.11.23 u 9000800 3074395246 unlimited-user license '
config_args='-Dcc=gcc -Dmake=gmake'
.........
Built under hpux
Compiled at Sep 29 2009 12:39:40
@INC:
/scrap/perl_5.8.8/lib/5.8.8/PA-RISC2.0
/scrap/perl_5.8.8/lib/5.8.8
/scrap/perl_5.8.8/lib/site_perl/5.8.8/PA-RISC2.0
/scrap/perl_5.8.8/lib/site_perl/5.8.8
/scrap/perl_5.8.8/lib/site_perl
Solved! Go to Solution.
- Tags:
- Perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2009 06:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2009 06:31 AM
09-30-2009 06:31 AM
Re: Apache2.pm not found in perl, Yet I easily see it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2009 10:05 AM
09-30-2009 10:05 AM
Re: Apache2.pm not found in perl, Yet I easily see it.
prob: It dies on "use Apache;" and "use Apache2"
It says it's not around but it is in the @INC path.
solution: In startup_perl.pl change
from use Apache;
to use Bundle::Apache
Thanks for the help.
prob: It won't show simple html doc
It won't show any TEXT unless <60 chars?!
solution: change these two lines in html.conf
From: # EnableSendfile off
To: EnableSendfile off
From: # EnableMMAP off
To: EnableMMAP off
Have fun looking for THIS one on the web.
It dies on "use Apache::Constants;"
in perlscript.pm change
from: use Apache::Constants qw(:common);
to: use Apache2::Const qw(:common);
I found this one somewhere they were talking about mod_perl2.
I really started to look for a mod_perl1 to perl2 conversion steps. I couldn't find it.
I need it. Because.......
prob: In this perlscript.pm code
sub handler {
my $r = shift;
my %params = ($r->content, $r->args);
I get this error on the apache server....
Can't locate object method "content" via package "Apache2::RequestRec" at /apache/perl/lib/dir/perlscript.pm line 20.
solution? I can't find it yet.
I only have 3,234,343,334 hurtles to go?
Isn't there a mod_perl page that shows you the code changes?
Like: Change "use Apache" to "use Bundle::Apache2".
Change "use Apache::Constants" to "use Apache2:Const"
Change "xxxxx" to "yyyyy" where xxxxx and yyyyy are about 40,000 little pieces of code?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2009 11:32 AM
10-01-2009 11:32 AM
Re: Apache2.pm not found in perl, Yet I easily see it.
I could not find this link yesterday.
Go figure.
I like its title:
A Reference to mod_perl 1.0 to mod_perl 2.0 Migration.
That is EXACTLY what I was looking for.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2009 12:21 PM
10-01-2009 12:21 PM
Re: Apache2.pm not found in perl, Yet I easily see it.
mod_perl: Getting Your Feet Wet with mod_perl (version 2)
And its link.......... http://perl.apache.org/docs/2.0/user/intro/start_fast.html
I can add this to httpd.conf...
LoadModule perl_module modules/mod_perl.so
PerlModule Apache2::compat
LoadModule perl_module modules/mod_perl.so
---this line tells apache to use mod_perl.
PerlModule Apache2::compat
---this line tells apache to require Apache2::Compat module. This module allows mod_perl version 1 syntax.
I would consider this a workaround until the perl code was updated from mod_perl1 format.