November 30, 2007
Fedora Core / RHEL don't seem to come with up-to-date versions of Scalar::UtilI 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::UtilI have also run into problems where I get an error message like:
Weak references are not implemented in the version of perlBoth of these can be fixed by using CPAN to install an up-to-date version of Scalar::Util:
perl -MCPAN -e shellYou 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.
force install Scalar::Util
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.)
CommentsProvide your email address when commenting and Gravatar will provide general portable avatars, and if you haven't signed up with them, a cute procedural avatar with their implementation of Shamus Young's Wavatars.
Comments have now been turned off for this post