Friday, November 14, 2008

Fixing a broken... perl module

Whenever there is an update of MailScanner or manual updating of some perl modules from CPAN or updating of software from 3rd party RPM repositories, there is a chance that Scalar::Util will be borken.. broken, resulting in

Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/Scalar/Util.pm line 30 

or similar.

The solution was found on a japanese website:
http://d.hatena.ne.jp/ksmemo/20071121/p1

$ wget http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/Scalar-List-Utils-1.19.tar.gz 
$ cd Scalar-List-Utils-1.19 
$ perl Makefile.PL 
$ make 
$ make test 
$ make install 

After that, "perl -MCPAN -e shell" should start without error messages.

No comments: