Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerged perl with threads, now XML broken
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
rlholgate
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jan 2005
Posts: 82
Location: UK

PostPosted: Sat Apr 02, 2005 12:31 am    Post subject: Emerged perl with threads, now XML broken Reply with quote

Brief description:

I've got a perl script (tv_grab_au) that wants to use threaded perl, and was complaining that I needed to recompile perl with thread support. So last night I added "ithreads" to my USE variable in /etc/make.conf, and emerged perl. Now when I try to run the script I get errors about XML, like this:

Code:
Can't locate XML/Parser.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/site_perl/5.8.5/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i686-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.5/i686-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/local/lib/site_perl /usr/lib/perl5/site_perl/5.8.4 .) at /usr/lib/perl5/vendor_perl/5.8.5/XML/Twig.pm line 82.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.5/XML/Twig.pm line 82.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.5/XMLTV.pm line 108.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.5/XMLTV.pm line 108.
Compilation failed in require at ./tv_grab_au.2005-04-01.mythtv-users line 96.
BEGIN failed--compilation aborted at ./tv_grab_au.2005-04-01.mythtv-users line 96.


I know next to nothing about perl. Anyone tell me how to fix this? I have tried using perl-cleaner. See below...

What I did, in detail:

1) Added ithreads to my USE, now USE="mysql gtk alsa oss dvb kde mpeg at ssl cdr divx4linux dvd dvdr mpeg msn icq perl png python quicktime samba usb x xvid ssh aim lame mmx avi truetype oggvorbis png zlib transcode -directfb ithreads"

2) Emerged perl like this:

Code:
emerge --deep \
 sys-devel/libperl \
 dev-perl/perl-tk \
 dev-lang/perl \
 dev-perl/libwww-perl \
 dev-perl/libxml-perl \
 dev-perl/perl-ldap \


I chose to emerge those packages because they seemed to be the ones that are installed when I do emerge --search perl. Emerge didn't pick up any extra dependencies, and seems to have emerged the packages in the order specified there.

3) After that I started getting the error listed above. Investigating that, I eventually found out about perl-cleaner. So I ran"perl-cleaner all", which logs these messages, suspiciously, about XML-related stuff:

Code:
Sat Apr  2 01:00:24 EST 2005 : Finding left over modules
Sat Apr  2 01:00:24 EST 2005 : The following files remain. These were either installed by hand
Sat Apr  2 01:00:24 EST 2005 : or edited. This script cannot deal with them.

Sat Apr  2 01:00:24 EST 2005 : /usr/lib/perl5/vendor_perl/5.8.4/XML/SAX/ParserDetails.ini
Sat Apr  2 01:00:24 EST 2005 : /usr/lib/perl5/vendor_perl/5.8.4/XML/SAX/ParserDetails.ini


I've no idea what might have manually installed these modules. Anyone tell me whats going on? Even a RTFM answer would be good, as long as it says which manual!

Rich
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Sat Apr 02, 2005 12:50 am    Post subject: Reply with quote

Run libperl_rebuilder too, and re-emerge any and all packages that have placed anything under /usr/lib/perl5 (use equery belongs to find out which packages those are).
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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