When trying to install or upgrade a perl module using cpan, you may get an error stating that the module you are trying to install “is only available with the XS version”
This error tends to rear its ugly head after you have updated perl. The module Scalar::List::Utils contains both an XS and a pure perl version. Many other modules rely on the XS version in order to function. This is where you run into that error.
Fortunately the fix is quite simple! Simply reinstall Scalar::List::Utils manually.
wget http://cpan.netnitco.net/authors/id/G/GB/GBARR/Scalar-List-Utils-1.19.tar.gz
tar zxvf Scalar-List-Utils-1.19.tar.gz
cd Scalar-List-Utils-1.19
perl Makefile.PL
make test install
Once this is done, try performing the installation of the module that failed with the “is only available with the XS version” error. It should now complete successfully!
Blogged with the Flock Browser
Tags: cpan, perl, xs, scalar::list::utils, scalar-list-utils, module
No related posts.
After upgrading a Centos 4.8 server to Centos 5.4 I experienced an error related to “only available with the XS version”, your fix worked like a charm.
Only change I made was pick a newer version, currently 1.21 is available.
After an upgrading from Solaris 10 update 5 to Solaris 10 update 6, Archive::Zip stopped working because doublevar “is only available with the XS version”. Your notes helped solve the issue!! Thank you!
Thanks, this fix was extremely useful to me. I spent hours looking for the solution, until I finally found your post.
–
Lloyd Standish