| View previous topic :: View next topic |
| Author |
Message |
rlholgate Tux's lil' helper


Joined: 30 Jan 2005 Posts: 82 Location: UK
|
Posted: Sat Apr 02, 2005 12:31 am Post subject: Emerged perl with threads, now XML broken |
|
|
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 |
|
 |
moocha Watchman

Joined: 21 Oct 2003 Posts: 5722
|
Posted: Sat Apr 02, 2005 12:50 am Post subject: |
|
|
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 |
|
 |
|
|
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
|
|