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


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



  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

  9. what a great site and informative posts, I will add a backlink and bookmark your site. Keep up the good work!

    I’m Out! 🙂

    Comment by online stock trading advice — January 11, 2010 @ 6:53 am

  10. Thanks a lot! I invested several hours wrestling with CPAN and OpenSSL. This was the solution for me! Ubuntu server, Hardy version, DADA 4 beta 4

    Comment by Diego — January 26, 2010 @ 8:25 pm

  11. […] https://egoleo.wordpress.com/2008/05/19/how-to-install-perl-modules-through-cpan-on-ubuntu-hardy-serv… This entry was posted in Linux. Bookmark the permalink. ← […]

    Pingback by 使用CPAN安装Perl模块(Ubuntu 10.4 TLS) | LINKIDEA — September 3, 2010 @ 4:35 pm

  12. […] A site about installing CPAN stuff on Ubuntu (I had to use synaptic) black and white bars This entry was posted in perl. Bookmark the permalink. ← Hello world […]

    Pingback by gd links | Paul Sober — January 22, 2011 @ 1:48 pm

  13. I had hard time install modules but with these few steps i’m able to install all.

    Thank you

    Comment by Satya. — February 4, 2011 @ 12:49 pm

    • i am glad i can help someone too.

      Comment by egoleo — February 17, 2011 @ 2:44 pm

  14. thank you very much for this steps!

    Comment by edo248 — October 29, 2011 @ 6:58 pm

  15. I like what you guys are up also. Such intelligent work and reporting! Carry on the excellent works guys I have incorporated you guys to my blogroll. I think it will improve the value of my web site :).

    Comment by http://andcarinsurancequotes.com — March 19, 2012 @ 9:07 am

  16. This website online is mostly a walk-through for the entire info you wished about this and didn’t know who to ask. Glimpse right here, and you’ll definitely discover it.

    Comment by Tamica Baskette — April 3, 2012 @ 9:13 pm

  17. The next time I learn a weblog, I hope that it doesnt disappoint me as a lot as this one. I imply, I know it was my option to learn, but I actually thought youd have one thing attention-grabbing to say. All I hear is a bunch of whining about something that you possibly can repair when you werent too busy searching for attention.

    Comment by Babyphone Test — April 10, 2012 @ 7:57 am

  18. […] How to install perl modules through CPAN… – wordpress.com […]

    Pingback by Remote Graphical Linux Desktop on EC2 | Active Intelligence — November 14, 2012 @ 5:23 am

  19. […] How to install perl modules through CPAN on ubuntu hardy server […]

    Pingback by Installing Perl Modules | ishaansutaria — March 22, 2013 @ 7:01 pm

  20. how to install cam::pdf in ubuntu? please help

    Comment by kavya — June 24, 2014 @ 10:11 am

  21. this is what u do

    yum update -y

    yum install cpan -y

    cpan install Parallel::ForkManager

    cpan install URI::_foreign

    cpan install LWP

    Comment by NetGod_Servers — February 10, 2018 @ 5:16 pm

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at WordPress.com.

%d bloggers like this: