Perl install/reinstall

Here you can find tutorials and notes for server-side maintenance/configuration

Perl install/reinstall

Postby lik » Tue Dec 09, 2008 6:17 am

From the official cPanel FAQ:

Prior to upgrading Perl, it is a good idea to ensure that each module gets carried over to the update Perl version using the "autobundle" CPAN feature. You will need to execute this command via root in SSH:

Code: Select all
perl -MCPAN -e 'autobundle'


Once this is complete, you should have the the following outputted before returning to the shell:
Code: Select all
'Wrote bundle file /home/.cpan/Bundle/Snapshot_2007_08_16_00.pm'


Make a note of the filename before proceeding with the update.

- To update to Perl 5.8.8 on Linux based servers:

Code: Select all
cd /root
wget http://layer1.cpanel.net/perl588installer.tar.gz
tar -zxf perl588installer.tar.gz
cd perl588installer
./instal
l

- To update to Perl 5.8.8 on FreeBSD based servers:

Code: Select all
cd /usr/ports/lang/perl5
make && make install


Once the update is complete, you can restore all the previously installed modules from the CPAN bundle that was created by executing:

Code: Select all
perl -MCPAN -e 'install Bundle::Snapshot_2007_08_16_00'


Make sure that you replace the bundle name with the one that was generated earlier.

We should now make sure that all modules required by cPanel 11 are installed and restart cPanel:

Code: Select all
/usr/local/cpanel/bin/checkperlmodules
/usr/local/cpanel/startup


Sometimes, it`s preferable to bypath step with "Snapshot" to avoid unconditional errors. Be noticed, that cPanel uses it`s own perl, so do not try to install perl with help of "yum".))
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Return to Server Side Actions

 


  • Related topics
    Replies
    Views
    Last post
cron