It is recommended to copy and paste each cpanm command individually, as they may be interactive. If cpanm commands ask for options, choose the defaults.

Before installing cpan packages check that there are no PERL environment variables set. If there are, packages may be installed into root's home directory and processes may not work when started on system boot. You should remove the variables from /root/.bashrc (or wherever set them) and then logout and login to the shell to clear the variables. To check for PERL environment variables run:

  • env | grep PERL

CentOS 6 and earlier:

  • yum -y install expat-devel gcc gcc-c++ ghostscript gnutls-devel libtiff libtiff-devel make mysql mysql-devel ncurses-devel nfs-utils ntp openssl-devel patch perl-CGI perl-Crypt-SSLeay perl-CGI perl-DBI perl-DBD-MySQL perl-ExtUtils-Embed perl-JSON perl-libwww-perl psmisc subversion unzip wget zip zlib-devel
  • wget --no-check-certificate -O - http://cpanmin.us | perl - App::cpanminus
  • cpanm Socket
  • cpanm Date::Calc
  • cpanm Date::Calc::XS
  • cpanm Digest::Bcrypt
  • cpanm Email::Sender
  • cpanm Env::C
  • cpanm HTML::Template
  • cpanm MIME::Entity
  • cpanm Net::IP
  • cpanm Net::Server
  • cpanm Sub::Name
  • cpanm Term::ReadKey
  • cpanm Text::CSV
  • cpanm Time::HiRes
  • cpanm XML::Simple # if it fails, add --force

CentOS 7 and later:

  • yum -y install epel-release expat-devel gcc gcc-c++ ghostscript gnutls-devel libtiff libtiff-devel make mysql mysql-devel ncurses-devel nfs-utils ntp openssl-devel patch perl-core perl-CGI perl-Crypt-SSLeay perl-CGI perl-DBI perl-DBD-MySQL perl-ExtUtils-Embed perl-JSON perl-libwww-perl perl-LWP-Protocol-https perl-Sys-Syslog psmisc subversion unzip wget zip zlib-devel
  • wget --no-check-certificate -O - http://cpanmin.us | perl - App::cpanminus
  • cpanm Date::Calc
  • cpanm Date::Calc::XS
  • cpanm Digest::Bcrypt
  • cpanm Email::Sender
  • cpanm Env::C
  • cpanm HTML::Template
  • cpanm MIME::Entity
  • cpanm Net::IP
  • cpanm Net::Server
  • cpanm Sub::Name
  • cpanm Term::ReadKey
  • cpanm Text::CSV
  • cpanm Time::HiRes
  • cpanm XML::Simple

Debian:

  • apt-get install default-libmysqlclient-dev
  • [If the above fails, try apt-get install libmysqlclient-dev instead]
  • apt-get install cpanminus gcc g++ ghostscript libc6-dev libcrypt-ssleay-perl libdate-calc-perl libdate-calc-xs-perl libdbd-mysql-perl libdbi-perl libgnutls28-dev libhtml-template-perl libjson-perl libjson-xs-perl libncurses-dev libnet-ip-perl libnet-server-perl libssl-dev libsub-name-perl libterm-readkey-perl libtext-csv-perl libtiff5 libtiff5-dev libtiff-tools libwww-perl libxml-simple-perl make mysql-client ncftp nfs-common ngrep ntp psmisc subversion unzip zip zlib1g-dev
  • cpanm Digest::Bcrypt
  • cpanm Email::Sender
  • cpanm Env::C
  • cpanm MIME::Entity

On Debian Stretch, Devuan Ascii or later do:

  • apt-get install libssl1.0-dev

Fedora 21 and earlier:

  • yum -y install gcc gcc-c++ ghostscript gnutls-devel libtiff libtiff-devel make mysql-devel ncftp ncurses-devel ngrep ntp openssl-devel patch perl-Crypt-SSLeay perl-Date-Calc perl-CGI perl-DBI perl-Email-Sender perl-HTML-Template perl-JSON perl-DBD-MySQL perl-Net-Server perl-Sub-Name perl-XML-Simple perl-libwww-perl psmisc subversion wget
  • wget --no-check-certificate -O - http://cpanmin.us | perl - App::cpanminus
  • cpanm Digest::Bcrypt
  • cpanm Env::C
  • cpanm MIME::Entity

Fedora 22 and later:

  • yum -y install gcc gcc-c++ ghostscript gnutls-devel libtiff libtiff-devel make mysql-devel ncftp ncurses-devel ngrep ntp openssl-devel patch perl-Crypt-SSLeay perl-Date-Calc perl-CGI perl-DBI perl-Email-Sender perl-HTML-Template perl-JSON perl-DBD-MySQL perl-Net-Server perl-Sub-Name perl-XML-Simple perl-libwww-perl perl-LWP-Protocol-https psmisc subversion wget
  • wget --no-check-certificate -O - http://cpanmin.us | perl - App::cpanminus
  • cpanm Digest::Bcrypt
  • cpanm Env::C
  • cpanm MIME::Entity

Redhat Enterprise:

  • yum -y install expat-devel gcc gcc-c++ ghostscript gnutls-devel libtiff libtiff-devel make mysql-devel ncurses-devel openssl-devel ntp perl-Crypt-SSLeay perl-CGI perl-DBI perl-DBD-MySQL perl-JSON perl-libwww-perl perl-LWP-Protocol-https psmisc subversion
  • wget --no-check-certificate -O - http://cpanmin.us | perl - App::cpanminus
  • cpanm Date::Calc
  • cpanm Date::Calc::XS
  • cpanm Digest::Bcrypt
  • cpanm Email::Sender
  • cpanm Env::C
  • cpanm HTML::Template
  • cpanm MIME::Entity
  • cpanm Net::IP
  • cpanm Net::Server
  • cpanm Sub::Name
  • cpanm Term::ReadKey
  • cpanm Text::CSV
  • cpanm Time::HiRes
  • cpanm XML::Simple

Ubuntu:

  • apt-get install default-libmysqlclient-dev
  • [If the above fails, try apt-get install libmysqlclient-dev instead]
  • apt-get install cpanminus gcc g++ ghostscript libc6-dev libcrypt-ssleay-perl libdate-calc-perl libdate-calc-xs-perl libdbd-mysql-perl libdbi-perl libemail-sender-perl libgnutls28-dev libhtml-template-perl libjson-perl libjson-xs-perl libncurses-dev libnet-ip-perl libnet-server-perl libsub-name-perl libterm-readkey-perl libtext-csv-perl libtiff5-dev libtiff-tools libwww-perl libxml-simple-perl make ncftp nfs-common ngrep ntp patch psmisc subversion unzip xpdf-utils zip zlib1g-dev
  • cpanm Digest::Bcrypt
  • cpanm Env::C
  • cpanm MIME::Entity

On Ubuntu Zesty or later do:

  • apt-get install libssl1.0-dev