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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.