Install ports

From The Network People, Inc.

Jump to: navigation, search

Contents

[edit] Step 3. Install Ports

bin/toaster_setup.pl -s ports

On systems that have a port or package management system, using them is preferred. Many applications can be build from ports simply by setting their version to "port" in toaster-watcher.conf.

Support is included for FreeBSD and Darwin ports. Support for other port mechanisms can be added by coding a Platform.pm module that has methods for updating the ports tree and installing software packages.

[edit] FreeBSD

FreeBSD ports are an optional install when you install FreeBSD and you should choose to install them.

Before beginning to build all the applications your Mail Toaster needs, you should update your ports tree. You can do this by following the instructions in the excellent FreeBSD handbook, or use the highly automated method built into Mail Toaster.

bin/toaster_setup.pl -s ports

The "-s ports" target will also install the portupgrade package. To upgrade any ports or packages that are already installed on your system, run portupgrade in automatic mode:

portupgrade -a

[edit] Darwin (Mac OS X)

Install Darwin Ports by following the directions at the Darwin Ports web site. Begin by installing the latest binary version from the Darwin Ports web site.

Once completed, DarwinPorts should work.

port sync

You can keep your ports tree updated with port sync or by using the Mail Toaster build script with the ports target:

bin/toaster_setup.pl -s ports

Last, you want to update your path so that the port supplied version of perl is found before the system supplied version. If your shell is bash, that is done for you by the DarwinPorts installer. Otherwise, add a line like this to /etc/bashrc:

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

When you open a new terminal session and type "perl -v" the result should be perl 5.8.8, which is the port supplied version. The system supplied version in Tiger is perl 5.8.6.

[edit] Linux

Skip this step...


Personal tools