Python-2.6.2
Installation of Python
Install Python by running the
following commands:
sed -i "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" \
setup.py &&
./configure --prefix=/usr --enable-shared &&
make
To test the results, issue: make
test. Note that if you have an existing
Python installation which includes
the PyXML module, the tests could
produce a segmentation fault.
Now, as the root user:
make install
There is no documentation installed using the instructions above.
See the Doc/README.txt file in the
source distribution for instructions on how to create the html.
Alternatively, you can download preformatted documentation from
http://docs.python.org/download.html.
In order to use the help
('name_string') feature of the python interpreter with some
statements and keywords, you must download (or create) the optional
HTML documentation and install it. If you downloaded the HTML docs,
issue the following commands as the root user:
install -v -m755 -d /usr/share/doc/Python-2.6.2/html &&
tar --strip-components=1 \
--no-same-owner \
--no-same-permissions \
-C /usr/share/doc/Python-2.6.2/html \
-xvf ../python-2.6-docs-html.tar.bz2
Command Explanations
sed -i "s/ndbm_libs = ..."
setup.py: This command is used to fix a build
problem with the GDBM library.
Configuring Python
In order for python
to find the installed documentation, you must add the following
environment variable to individual user's or the system's profile:
export PYTHONDOCS=/usr/share/doc/Python-2.6.2/html
Contents
Installed Programs:
2to3, pydoc, python, python-config,
python2.6, python2.6-config, smtpd.py, and optionally if
Tk is installed, idle
Installed Libraries:
libpython2.6.so and numerous modules
installed in /usr/lib/python2.6/lib-dynload
Installed Directories:
/usr/include/python2.6,
/usr/lib/python2.6, and /usr/share/doc/python-2.6.2
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.
|
|
python2.6
|
is a version-specific name for the python program.
|
|
smtpd.py
|
is an SMTP proxy implemented in Python.
|
Last updated on 2009-08-01 06:29:35 +0000