Cooperatively-developed Software Logo Montage

Software Cooperative News

Paralysed Perl Package Problem

MJ Ray - Friday 13.03.09, 08:54am

With any luck, someone has seen this problem before and can fix it easily. I don’t seem to be able to find the fix by searching, but the search terms feel like they’re either too general or too specific.

I was trying to install some perl software on a debian lenny system that was upgraded from etch (and previously from sarge). After installing the dependencies, I started getting errors like this:-

$ perl -MYAML::Syck -e print
Can't locate YAML/Syck.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.10.0/i686-linux /usr/local/lib/perl5/5.10.0
/usr/local/lib/perl5/site_perl/5.10.0/i686-linux
/usr/local/lib/perl5/site_perl/5.10.0 .).
BEGIN failed--compilation aborted.

Update: Well done to Raphael who spotted the local that I’d overlooked. D’oh! Now to see if I can discover where that came from.

Update 2: Also thanks to Florian who emailed in at about the same time (I don’t read my email as much as my website dashboard, usually).

Then I discovered that the debian mirror being used (which is in the same city, and in a nearby network) is marked as bad on the health check. I switched mirrors to a known-good one that I’ve used for other systems recently, but no joy.

I think a key symptom is this bit near the end of the output of perl -V:

Compiled at Aug 4 2008 09:48:59
@INC:
/usr/local/lib/perl5/5.10.0/i686-linux
/usr/local/lib/perl5/5.10.0
/usr/local/lib/perl5/site_perl/5.10.0/i686-linux
/usr/local/lib/perl5/site_perl/5.10.0

Our good systems show a December “compiled at” date and a much longer @INC list. I’ve tried reinstalling pretty much every package I think might be connected, including libc6, libperl5.10, perl, perl-base and perl-modules (those last four are all version 5.10.0-19). I really don’t want to reinstall the whole system because it’s behind an irritating firewall that will make it a 10-hour round-trip site visit. I’m currently hunting and removing obsolete packages to try to make sure they’re not causing problems, because I’m running out of straws to clutch at.

How would you recover a debian system from this?

Del.icio.us Digg Technorati Blinklist Furl Reddit
Comments (6)

Tags: Koha


Random Posts







6 comments so far

  • 1 Raphael Hertzog // Mar 13, 2009 at 9:17 am

    Try “which perl” and remove the perl installation in /usr/local/. perl is provided by perl-base so if you reinstalled it, you have the perl of Debian… unless you have a local installation that takes precedence over the official perl.

  • 2 MJ Ray // Mar 13, 2009 at 9:26 am

    Arrrrrrrrrrgh! Where the blue blazes did an installation in /usr/local come from? Time to check the sysadmin logs and have words with the other sysadmins. I suspect it’s one of the server owner’s former workers, but…

    Many thanks! Beer, chocolate or something else and where do you want it sent?

  • 3 frank // Mar 13, 2009 at 11:05 am

    Problem solved but: The mirror status page you used is out of date. Try http://www.de.debian.org/dmc/today instead. ;-)

  • 4 MJ Ray // Mar 13, 2009 at 12:46 pm

    Right. So should I remove it from http://www.uk.debian.org/mirrors/ then?

  • 5 Simon // Mar 19, 2009 at 6:09 pm

    “Where the blue blazes did an installation in /usr/local come from?”

    Probably “cpan”

  • 6 Tools for Group Administration of Debian Systems? | Software Cooperative News // Mar 31, 2009 at 1:19 pm

    [...] SAG, so I hope it’s not a(nother) completely silly question. As I was reminded by the Paralysed Perl Package Problem, sometimes other system administrators can really mess you up by changing things without [...]

Leave a Comment

Home | Archives | Blog For Buzzin Media | Advertise | About | Contact