Programming

A base LFS system can be used as a development platform, however the base system only includes language support for C, C++ and Perl. This chapter provides instructions to build many popular programming environments to greatly expand your system's development capabilities.

Python-2.4

Introduction to Python

The Python package contains the Python development environment. This is useful for object-oriented programming, writing scripts, prototyping large programs or developing entire applications.

Package information

Python dependencies

Installation of Python

If you have Berkeley DB installed and wish to utilize it, apply the following patch:

patch -Np1 -i ../Python-2.4-db43-1.patch

Install Python by running the following commands:

patch -Np0 -i ../patch.txt &&
patch -Np1 -i ../Python-2.4-gdbm-1.patch &&
./configure --prefix=/usr --enable-shared &&
make

Now, as the root user:

make install

Contents

Installed Programs: pydoc, python, smtpd.py and optionally if Tk is installed, idle
Installed Libraries: libpython2.4.so and numerous modules installed in /usr/lib/python2.4/lib-dynload
Installed Directories: /usr/include/python2.4 and /usr/lib/python2.4

Short Descriptions

idle

is a wrapper script that opens a Python aware GUI editor.

pydoc

is the Python documentation tool.

python

is an interpreted, interactive, object-oriented programming language.

smtpd.py

is an SMTP proxy implemented in Python.