Sunday, March 2, 2008

Install Perl

Where can I find the current release of the Perl source code?
http://www.cpan.org/src/latest.tar.gz - (UNIX-style tar.gz)
http://www.cpan.org/src/latest.zip - (PC-style ZIP, with CR LF line endings).
http://www.cpan.org/src/index.html - A more detailed list of source code offerings.
----------
fix for the perl problems which are causing a lot of trouble with just about everything, including email.

Here is the copy/paste version I created:
ls -alh /root/.gnupg
(just make sure it exists)

cd /usr/local/src/
wget http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/libwww-perl-5.805.tar.gz
tar zxvf libwww-perl-5.805.tar.gz
cd libwww-perl-5.805
perl Makefile.PL
make
make install
cd ../

wget http://search.cpan.org/CPAN/authors/id/A/AN/ANDK/CPAN-1.83.tar.gz
tar zxvf CPAN-1.83.tar.gz
cd CPAN-1.83
perl Makefile.PL
make
make install

/usr/local/cpanel/bin/checkperlmodules
/scripts/updatenow
/scripts/rrdtoolinstall

Here is the cPanel email:

these are a few of the steps that you can take to ensure continued normal operation of your cPanel server.
1. Ensure that the directory /root/.gnupg exists.

The latest versions of CPAN are using Module::Signature by default. This module will check the GPG signature of modules during their installation. If your server is using Module::Signature and this directory does not exist, then the signature check will fail and the module will not be installed or updated. This will be handled automatically in all builds dated January 4th or later.

2. Ensure that the Perl's LWP is installed.

If LWP is not installed, and Net::FTP is not used (and it's often skipped), CPAN will attempt to fetch the Perl module using one of the system applications, such as wget. In this case, the module will be saved without its proper extension and the installation will exit shortly after downloading the module. You can install LWP manually using the following commands:

wget http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/libwww-perl-5.805.tar.gz
tar zxvf libwww-perl-5.805.tar.gz
cd libwww-perl-5.805
perl Makefile.PL
make
make install

When running "perl MakeFile.PL" you will be asked several questions.
It's safe to accept the default values.

3. Install the updated version of CPAN (1.82)

Updating CPAN will resolve both issues "1" and "2" for you as well as other issues. On productions systems (which almost always have a working LWP installed) this will occur automatically. To install CPAN manually, the steps are very similar to the above steps for LWP:

wget http://search.cpan.org/CPAN/authors/id/A/AN/ANDK/CPAN-1.82.tar.gz
tar zxvf CPAN-1.82.tar.gz
cd CPAN-1.82
perl Makefile.PL
make
make install

If you experienced problems with any recent installations and resolved them, then it is recommended that you run the following command:

/usr/local/cpanel/bin/checkperlmodules

This command is ran automatically by our update system. Running this command on new installs will ensure a proper Perl setup, otherwise it is optional.

No comments: