xml - CPAN modules claim to install but dont -



xml - CPAN modules claim to install but dont -

running ubuntu 14.04 through virtualbox.

when executing script, next error:

can't locate xml/simple.pm in @inc (@inc contains:...

now, when check directories in @inc, indeed not contain xml/simple.pm

i tried installing through cpan

sudo cpan xml::simple

and tells me that:

xml::simple date (2.20).

which, according perl not true, since output of

perl -e "use xml::simple "

is

can't locate xml/simple.pm in @inc (@inc contains:

so, missing?

an alternative way install perl modules on linux systems distribution repository. on debian/ubuntu systems general rules converting cpan distribution name apt bundle name is:

convert module name lower case convert '::' '-' add 'lib' prefix , '-perl' suffix

so bundle name xml::simple be: libxml-simple-perl , install with:

sudo apt-get install libxml-simple-perl

there exceptions these rules, can search perl module name:

apt-cache search xml::simple

you won't absolute latest version of module distro's bundle repository stable (some might 'moribund') modules xml::simple doesn't matter.

if have multiple versions of perl installed, installing distro's bundle repository create bundle available scheme perl in /usr/bin

xml perl cpan

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -