Installing Python

Python is a high-level scripting language comparable to Tcl, Perl, Scheme, and JavaScript. It is used by a number of packages in this chapter and is included in most Linux and BSD derivatives. However, many Unix flavors don’t include it, so we show you how to install it here.

Download the most recent version of Python (currently 2.3.4) from here: http://www.python.org/download/. Copy the tar file to /usr/local/src and install like this:

bash$ cd /usr/local/src
bash$ gzip -d python-2.3.4.tar.gz
bash$ tar xvf python-2.3.4.tar
bash$ cd Python-2.3.4
bash$ ./configure
bash$ make
bash$ sudo make install

You should now have a running Python installation.

Get Slamming Spam: A Guide for System Administrators now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.