Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache.pm failed to load!. (I am confused as hell)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rew
n00b
n00b


Joined: 28 Aug 2002
Posts: 47
Location: Oregon

PostPosted: Mon Sep 23, 2002 8:55 am    Post subject: Apache.pm failed to load!. (I am confused as hell) Reply with quote

this is a repost of something i put in programing/portage a few days ago, im still having problems. i am trying to get mod perl working but having a hell of a time. i know that i can build the so correctly because in my apache error log it shows a successful startup with modperl:

[Fri Sep 20 18:54:49 2002] [notice] Apache/1.3.26 (Unix) mod_perl/1.27 configured -- resuming normal operations

so that works! good news right? wrong. the problem comes with the config. when i add the lines:

AddHandler perl-script .pl
PerlHandler Apache::Registry

... I get the error that Apache.pm failed to load. I can run `perl -e 'use Apache' ` without fault so i am really, really confused. i have tried unmerging and remergeing mod_perl. I have tried installing Bundle::Apache from within the CPAN module's shell. i just have no idea what to do. Anyone have anyideas?[/code]
_________________
linux-2.4.20 i686 SMP
Tyan Tiger MP
Dual Athlon MP 1600+
512MB EEC (1/4)
PNY Verto 64MB - GeForce4 MX 420
'Cheep-ass NIC, CDRW & DVD'
Back to top
View user's profile Send private message
kjeldahl
n00b
n00b


Joined: 01 Jul 2002
Posts: 43

PostPosted: Tue Oct 22, 2002 2:36 pm    Post subject: Reply with quote

I'm having similar problems. I recently upgraded to the latest mod_perl, and after doing that Apache.pm can not be found. I looked through the output from the whole process, and it dutifully removed Apache.pm and related mod_perl items from /usr/lib/perl5/site_perl/i686-linux.

However, it then installed the new modules under:

/usr/lib (instead of the original /usr/lib/perl5).

And then perl fails to find it, since it does not look under /usr/lib, but /usr/lib/perl5.

Looks like something is broken in the mod_perl ebuild file (or whatever it is called).

Marius K.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Oct 22, 2002 4:42 pm    Post subject: Reply with quote

Can you try emerging ExtUtils-MakeMaker and then mod_perl again, and see if anything improves?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
rew
n00b
n00b


Joined: 28 Aug 2002
Posts: 47
Location: Oregon

PostPosted: Wed Oct 23, 2002 12:04 am    Post subject: ExtUtils-MakeMaker Reply with quote

I had the 6.03-r1 build of ExtUtils-MakeMaker installed and it didnt seem to help but I will upgrade to 6.05 and let you know how it goes.
Back to top
View user's profile Send private message
rew
n00b
n00b


Joined: 28 Aug 2002
Posts: 47
Location: Oregon

PostPosted: Wed Oct 23, 2002 12:13 am    Post subject: And the result: Reply with quote

[Mon Sep 23 00:49:54 2002] [notice] SIGUSR1 received. Doing graceful restart
Apache.pm failed to load!.
Apache.pm failed to load!.
Apache.pm failed to load!.
Apache.pm failed to load!.
Apache.pm failed to load!.
Back to top
View user's profile Send private message
DecoY
n00b
n00b


Joined: 23 Apr 2002
Posts: 23

PostPosted: Thu Nov 07, 2002 10:59 am    Post subject: Reply with quote

I have had the same problem... and this is what is did:
Code:

webserver root #cd /usr/lib
webserver lib# ln -sf /usr/lib/site_perl/5.6.1/i686-linux/Apache/ Apache


Then restarted apache and it worked
Back to top
View user's profile Send private message
g29na
n00b
n00b


Joined: 07 Nov 2002
Posts: 2

PostPosted: Thu Nov 07, 2002 11:53 pm    Post subject: Reply with quote

I'm having the same problem here.

Apache can't find Apache.pm

It searches in /usr/lib/perl5/site_perl/5.6.1/i686-linux, among others...

But it is located at /usr/lib/site_perl/5.6.1/i686-linux

Is there a way to change the pointer? Or change the path?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Nov 07, 2002 11:57 pm    Post subject: Reply with quote

g29na wrote:

It searches in /usr/lib/perl5/site_perl/5.6.1/i686-linux, among others...
But it is located at /usr/lib/site_perl/5.6.1/i686-linux

Did you emerge ExtUtils-MakeMaker, like I suggested earlier in this thread? You have described exactly the problem that that action is supposed to solve.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
g29na
n00b
n00b


Joined: 07 Nov 2002
Posts: 2

PostPosted: Fri Nov 08, 2002 12:36 am    Post subject: Reply with quote

It worked! Thank you.

Sorry for missing that post.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum