Install perl

From The Network People, Inc.

Jump to: navigation, search

The Mail Toaster framework is written almost entirely in Perl, so Perl must be installed. Certain programs (like SpamAssassin) require perl 5.8.1 or higher to function optimally. To determine what version of perl you are running:

perl -v

If you are using a version older than 5.8.1, you must update it. How you do this will vary based on your Operating System.


Contents

FreeBSD 5 or 6:

Install from FreeBSD ports:

cd /usr/ports/lang/perl5.8;
make install clean;

or packages:

pkg_add -r perl5.8

Installing the package is much faster. If you are running an older release of FreeBSD, you should update your ports tree and install the latest version in ports.

FreeBSD 4

FreeBSD 4 comes with perl 5.6 installed as part of the base install. After installing perl from ports (see above) you must tell your system to use the new port supplied version of perl. You do this by running the use.perl program.

use.perl port;


Darwin (Mac OS X)

Perl 5.8 is already included, and Apple is good about keeping it updated with the latest version during each major OS release. However, you do have two alternate tasks:

  • Install Developer Tools
  • Setting up CPAN (see below)


Linux

Make sure the latest version of Perl (5.8.5+) is installed. This will vary based on your distribution, so see the docs that came with your distro for the best way to do this. Many distros have CPAN pre-configured so you won't have to do that.

Other OS

You are on your own, but most UNIX-like platforms now include a modern (5.8.1+) version of perl which will work just fine.


CPAN

You will likely need perl's CPAN working for installing perl modules. You can insure it is configured by running:

perl -MCPAN -e shell

If that command does not give you a shell prompt, then you will be prompted to configure. You must do so as root, or via sudo (as shown).

sudo perl -MCPAN -e shell
exit

After configuration, you will return to a prompt and the command "exit" will get you back to your shell.


Proceed To Step 2

Personal tools