Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[FIXED] Apache won't run because Entities.pm not in @INC
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
fuzion
n00b
n00b


Joined: 19 Feb 2003
Posts: 56

PostPosted: Thu Apr 10, 2008 11:13 am    Post subject: [FIXED] Apache won't run because Entities.pm not in @INC Reply with quote

I have installed apache and mod_perl. I also tested mod_perl and it is working fine.

I then installed HTML-Mason. Now when I start apache I get the following error:
Code:
[Thu Apr 10 08:43:59 2008] [error] Can't locate HTML/Entities.pm in @INC
(@INC contains:
/home/httpd/perl
/etc/perl
/usr/lib/perl5/vendor_perl/5.8.8/powerpc-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/site_perl/5.8.8/powerpc-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8
/usr/lib/perl5/site_perl
/usr/lib/perl5/5.8.8/powerpc-linux-thread-multi
/usr/lib/perl5/5.8.8
/usr/local/lib/site_perl
.
/usr/lib/apache2)
at
/usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Escapes.pm line 14.\n
BEGIN failed--compilation aborted at
/usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Escapes.pm line 14.\n
Compilation failed in require at
/usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Interp.pm line 17.\n
BEGIN failed--compilation aborted at
/usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/Interp.pm line 17.\n
Compilation failed in require at
/usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 232.\n
BEGIN failed--compilation aborted at
/usr/lib/perl5/vendor_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 232.\n
Compilation failed in require at (eval 5) line 3.\n
[Thu Apr 10 08:43:59 2008] [error] Can't load Perl module
HTML::Mason::ApacheHandler for server 192.168.1.50:80, exiting...


The error is found in the log file /var/log/apache2/error_log.

However, if I do locate Entities.pm then I get the following:
Code:
localhost 5.8.8 # locate Entities.pm
/usr/lib/perl5/vendor_perl/5.8.8/powerpc-linux/HTML/Entities.pm
localhost 5.8.8 #


I am using a Powermac G4.

Let me know if you need any other information. I have re-emerged HTML-Mason but that didn't help.

Would this be a problem with:
- PPC emerge?
- HTML-Mason emerge?
- my configuration?

My guess is that I should just add the path where Entities.pm is to the @INC, but I don't know how to do that. I would think that emerge HTML-Mason would have taken care of that automagically.

Many Thanks!


Last edited by fuzion on Fri Apr 11, 2008 1:54 am; edited 1 time in total
Back to top
View user's profile Send private message
fuzion
n00b
n00b


Joined: 19 Feb 2003
Posts: 56

PostPosted: Fri Apr 11, 2008 1:52 am    Post subject: fixed, probably not a PPC issue Reply with quote

I don't think this has anything to do with PPC and should probably be moved to another forum. I don't know how to do that or if only moderators can do that.

I found this bug fix:
https://bugs.gentoo.org/show_bug.cgi?id=9067#c20

I performed the following:
Quote:
emerge gentoolkit
emerge `qpkg -nc -I | sed 's/-[0-9].*//g' | sort | uniq | grep "dev-perl"`


Then that fixed my problem posted above with HTML-Mason. However, it then complained about the path /usr/lib/apache2/mason/obj not existing so I did this:
Quote:
mkdir /usr/lib/apache2/mason
mkdir /usr/lib/apache2/mason/obj
chown -R apache /usr/lib/apache2/mason
chgrp -R apache /usr/lib/apache2/mason


Mason seems to be working fine now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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