JUST OPEN SOURCE MATTERS!

May 19, 2008

How to install perl modules through CPAN on ubuntu hardy server

Filed under: Perl, Ubuntu — Tags: , — egoleo @ 1:53 pm

This assumes that you have grabbed a copy of the ubuntu hardy server
cd from the ubuntu.com website.

1. Install all dependent packages for CPAN
sudo  apt-get install build-essential

2. invoke the cpan command as a normal user

$cpan

But 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.

3. Once the above is done, you will be present with the cpan
prompt. now enter the commands below

make install

install Bundle::CPAN

4. 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>  Email::MIME::Attachment::Stripper
cpan prompt>  Mail::POP3Client

8 Comments »

  1. How to tell CPAN to look in all installed modules and check integrity of them and reinstall them all…..

    Comment by Vladimir — May 23, 2008 @ 3:49 pm

  2. WOW! you went almost a whole year without posting any content on this blog!

    hmmmmm, I wonder what you’ve been upto?

    Comment by Jonathan — May 26, 2008 @ 3:59 pm

  3. [...] google, saya menemukan linkdisini untuk menginstall build [...]

    Pingback by Gagal install perl via CPAN di ubuntu 7.10 | human.network.web.id — June 2, 2008 @ 4:00 am

  4. Thanks! Spent all day yesterday trying to get WWW::Mechanize installed…tons of problems. Today found these steps, and working now, thanks a ton!

    Comment by lyme — September 5, 2008 @ 7:09 pm

  5. :) . great, i am happy at least i am contributing to the open source world.

    Comment by egoleo — September 8, 2008 @ 5:46 am

  6. Core page for installing perl on ubuntu

    Comment by ajay1kumar1 — November 18, 2008 @ 7:19 pm

  7. Very helpful, thanks a lot!

    Comment by Durand — August 20, 2009 @ 10:37 pm

  8. [...] application. First, we need to install a particular perl module called Net::Amazon::S3. I found this post describing how to install perl modules using CPAN. (Note: be sure to run the cpan command with [...]

    Pingback by MySQL on Amazon S3 « Exploring New Technology — October 22, 2009 @ 6:58 pm


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.