Reputation: 131
When I run my perl script, I keep getting this error:
Can't locate XML/Simple.pm in @INC after install
I have installed a bunch of modules, including Bundle::CPANxxl
with CPAN.
The first time I ran/installed CPAN, I executed it as root:
$ sudo cpan
Then again:
$ sudo cpan
cpan> install Bundle::CPANxxl
cpan> install Xml::Simple
When I run my Perl script, I still get the Can't locate XML/Simple.pm in @INC...
error in Apache "error.log"
I have run the following with and without root:
cpan> install XML::Simple
cpan> upgrade
cpan> realod cpa
Why am I getting this error all the time, even though I have installed the module several times? Please can I have some advice on this issue?
Upvotes: 13
Views: 46209
Reputation: 189
In conda environment, following commands worked for me:
conda install -c conda-forge perl-xml-parser
cpan install XML::Simple
Upvotes: 0
Reputation: 346
I ran into a similar issue and installing the missing lib as @chubeez mentionned in his comments long ago solved the problem.
apt-get install libxml-simple-perl
I rewrote it here as an answer to give it more visibility.
Upvotes: 4
Reputation: 826
just
$ cpan install XML::Simple
work for me , maybe its because lowcase caracter : Xml and not XML
Upvotes: 13