I ran into this problem once before on a Red Hat Enterprise Linux machine, and now I am having the same problem on my Fedora Core (7 I think) machine. The problem is that CPAN is unable to install various things, in particular Bundle::CPAN, because:
You don’t have the XS version of Scalar::Util
I have also run into problems where I get an error message like:
Weak references are not implemented in the version of perl
Both of these can be fixed by using CPAN to install an up-to-date version of Scalar::Util:
perl -MCPAN -e shell
force install Scalar::Util
You might have to force the install if you have an up-to-date version of Scalar::Util (which I did) but it had been compiled without the proper options to support XS.
If you are interested in finding out more a simple search should turn up lots more information. I find it shocking that modern Perl distributions can be around that leave out such a commonly-used feature. Hopefully Redhat / Fedora will get around to fixing it in their next release (and if not, at least I’ve left myself a note here.)
Leave a Reply