upgrade home : internet : mail : toaster : upgrade : upgrade Perl upgrade Mail::Toaster

Step 1: Upgrade Perl.

Certain features (like spam filtering) require perl 5.8.1 or higher to function fully. If perl -v reflects anything smaller than 5.8.1, it is recommended that you upgrade to the latest 5.8 version. You can do this via:

  • toaster_setup.pl -s perl

WARNING: Disable any cron jobs that run perl scripts *before* upgrading perl. When you upgrade perl, the installed modules get left behind and need to be re-installed. After upgrading perl and all the installed modules, test the cron jobs by running them on the command line before enabling them.

If you don't want to use toaster_setup.pl to upgrade perl, you can do it manually as follows:

  • cd /usr/ports/lang/perl5.8;
  • make -DENABLE_SUIDPERL install clean;
  • rehash; use.perl port;

You need Perl's CPAN working for installing perl modules so make sure it's configured. If the following command doesn't give you a prompt, then you'll be prompted to configure.

  • perl -MCPAN -e shell
  • exit

If you choose to install Perl 5.8, make sure you enable suidperl. You do this by adding -DENABLE_SUIDPERL as shown above or if using pkg* and friends, add the following line to the MAKE_ARGS of /usr/local/etc/pkgtools.conf:

  • 'lang/perl5.8' => 'ENABLE_SUIDPERL=yes',

After upgrading Perl, your installed Perl modules will not work with the new version of Perl. You'll want to update them. I find the easiest approach is something like this:

  • portupgrade -f `pkg_info | grep p5- | cut -d" " -f1`
  • portupgrade -f `pkg_info | grep rrdtool- | cut -d" " -f1`

Last modified on 4/9/05.