...
  • Home
  • Shell
    • Emacs
    • Perl
    • screen
    • sed
  • Ubuntu
    • VNC
  • Web Development
    • Javascript
    • Joomla
    • MySQL
    • osTicket
  • Windows
    • Gimp
KEEP IN TOUCH

Most Popular

  • osTickets > Reports v5.0 (69312)
  • osTicket > Send reply to alternate/additional email address(es). (54134)
  • Web Dev > Populate PHP/HTML table from MySQL database (37597)
  • HTPC > Setup Windows 7 as a Media Center with XBMC (29596)
  • osTicket > Auto-Assignment Rules (25824)

BASH > How to install perl modules through CPAN on Ubuntu

Oct26
2010
5 Comments Written by Scott Rowley

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
ajax loader
Posted in BASH - Tagged BASH, cpan, install, module, Perl
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail
« Emacs > Remove welcome screen/splash from emacs
» Emacs > Use % to jump to the matching parenthesis/brackets

3 Comments

  1. Paul's Gravatar Paul
    February 26, 2013 at 11:07 am | Permalink

    “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)

    Reply
  2. Lutz Heidbrink's Gravatar Lutz Heidbrink
    January 29, 2013 at 4:08 am | Permalink

    Thank you so much for this artikel, just saved my life, with the nfsen configuration :)

    Reply
    • Scott Rowley's Gravatar Scott Rowley
      January 29, 2013 at 9:16 pm | Permalink

      Glad it helped! :D

      Reply
  1. Remote Graphical Linux Desktop on EC2 | Active Intelligence on November 14, 2012 at 12:23 am
  2. XpertNotes » Nfsen | TechieNote on July 18, 2012 at 3:01 pm

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Corrections? Questions? Comments?

Find an error?
Everything work out great for you?
Have some feedback?
Like to see something added to the article?

PLEASE leave us a comment after the article and let us know how we are doing, or if something needs corrected, improved or clarified.

Thank you!
- The Management

Sudo Bash Member sites

Iowa SAR
Ooo-er
Des Moines, Iowa Tattoo & Piercing
QualifiedImpressions.com
Visibility Max
The Man In Black

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

RSS HowToGeek

  • Race for Your Life Across City Skyscapes in Gravity Guy 2
  • Geek Trivia: You Can Keep Your Coffee Warm Longer By Adding What?
  • Evernote adds Reminders to Mac, iOS, and Web Versions
  • Add the Ability to Copy the Contents of Any Text File to Your Send To Menu
  • Welcome to Android: A Beginner’s Guide to Getting Started With Android

RSS TheGeekStuff

  • 5 Modem At Command Examples in Linux (How to Configure Minicom)
  • 7 Linux Date Command Examples to Display and Set System Date Time
  • How to Install AMQP PHP Extension and RabbitMQ Client on Linux
  • How Email Works? – Email Basic Concepts Explained
  • How to Use C++ Reference Variables (C++ Reference Vs Pointer Example)

RSS LifeHacker

  • Make Something Great with PVC Pipe This Weekend
  • Have any tips for parents dealing with temper tantrums?
  • Make a MacBook Dock with Sugru and a Few Cables
  • This Week's Most Popular Posts: May 17th to 24th
  • Cork or Twist: What's the Best Way to Stop Up a Wine Bottle?

EvoLve theme by Blogatize  •  Powered by WordPress Sudo Bash
By Geeks - For Geeks

Back to Top