MacPorts on Tiger

I decided to install MacPorts on Tiger. I basically had two options: to use the .pkg installer or to install it from source. Since I’m new to MacPorts I decided to take the easier road and use the package installer.

This is the description of what the package installer does on the MacPorts site:

This procedure will place a fully-functional and default MacPorts installation on your host system, ready for usage. If needed your shell configuration files will be adapted by the installer to include the necessary settings to run MacPorts and the programs it installs, but you may need to open a new shell for these changes to take effect.

Fair enough.

So I mounted the image, double-clicked on the .pkg file and installed the software. That was easy. Then I opened the terminal and decided to run the following:

$ sudo port -v selfupdate

I got the “command not found” error. What gives? I thought the installer was supposed to make the necessary changes to my environment. Anyway, I found no .profile file in my home directory so I had to add the following lines to the end of my .bash_profile file manually:

# For MacPorts
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export MANPATH=/opt/local/share/man:$MANPATH
export DISPLAY=0.0

And that was it. Not a big deal I guess.