Fixing the Perl Module “only available with the XS version”Error

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:,,,,,

No related posts.

11 comments to Fixing the Perl Module “only available with the XS version”Error

Leave a Reply