Install all dependent packages for CPAN
sudo apt-get install build-essential
Invoke the cpan command as a normal user
cpan
Once you hit on enter for “cpan” to execute, you be asked of some few questions. To make it simple for yourself, answer “no” for the first question so that the latter ones will be done for you automatically.
Enter the commands below
make install install Bundle::CPAN
Now all is set and you can install any perl module you want. examples of what installed below:
cpan prompt> install IO::File cpan prompt> install Net::SMTP_auth cpan prompt> install Email::MIME::Attachment::Stripper cpan prompt> install Mail::POP3Client
Thank you so much for this artikel, just saved my life, with the nfsen configuration 🙂
Glad it helped! 😀
“Invoke the cpan command as a normal user”
Are you sure? It seems that cpan wants to write to /usr/local/lib/perl/… so it definetly needs root (in my case)
Thanks. The directions were very useful