Can't locate XML/Simple.pm in @INC after install



fresh Ubuntu 14.04 Server, using Perl


When I run my perl script, I keep getting this error.


I have installed a bunch of modules, including Bundle::CPANxxl


The first time I ran cpan:



$ sudo cpan


Perhaps I did not need to run as root or should not have??


Then it did that "first install" stuff.


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 with and without root:



cpan> install XML::Simple
cpan> upgrade
cpan> realod cpan


Honestly, I haven't a clue how to get cpan modules to work..


No comments:

Post a Comment