in reply to install CPAN modules

Have you ensured it's not already installed? On my mostly unmolested VMs running 12.04, perldoc Net::SMTP returns documentation.

This assumes that the prepacked version does everything you need, of course.

Replies are listed 'Best First'.
Re^2: install CPAN modules
by mvip (Acolyte) on Sep 30, 2013 at 12:19 UTC

    Hi, tnx for reply. When i run the perldoc command i have the following:

    root@mpnagios:/# perldoc Net::SMTP You need to install the perl-doc package to use this program. root@mpnagios:/#
    But when i run the perl -v it gave me the output what version is perl. So perl is installed and i dont knwo way CPAN dont work ...

      This is telling you to install perl-doc to use the program perldoc on your system. To do this:

      apt-get install perl-doc

      Or better still read and understand the answer I gave you, or better yet speak to your systems administrator.

      marto gave you the correct answer above.

      I also noticed you are already using aptitude. So do a

      aptitude -y install perl-doc

      ...to get it installed the way you know.

      Cheers, Sören

      Créateur des bugs mobiles - let loose once, run everywhere.
      (hooked on the Perl Programming language)

      perl -e "use warnings; use Net::SMTP;"
      If it returns nothing, you have it installed.