...
- Download and install cpanminus
wget -O- http://cpanmin.us | perl - -l ~/perl5 App::cpanminus local::lib - Set the environment variables needed to use the local modules
eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib` - Ensure we will be able to use the environment variables the next time we log in
echo 'eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`' >> ~/.profile
This assumes your profile is named .profile, you may need to change that to be .bash_profile, .bashrc, etc.
- Install a perl module by saying "cpanm Module::Name". In this case, it is:
cpanm XML::LibXML
FYI: I don't seem to have cpanm, but I did have cpan.
I have seen this issue more than once. Here is a potentially useful instructions from NERSC site:
...