SITE SEARCH

Google
 

Monday, March 17, 2008

Easy Way to Install Perl Modules in Ubuntu Linux

From the terminal type
sudo cpan

You will be asked for password.

After supplying password
You will then be asked if you want to manually config cpan. Say no, don't take the risk and see if it will figure it all out for you. Then to install a module, I did a quick search on cpan’s website to find the correct name of each module (they are case-sensitive).

install WWW::Mechanize

If your configuration is correct, it will install it all for you.