Wednesday, July 1, 2009

Build Python 2.6 on CentOS 5.3

Build Python 2.6 on CentOS 5.3

download python 2.6.2 tarball
extract python 2.6.2 tarball to /usr/src
E.g., tar -xvjf /share/download/Python-2.6.2.tar.bz2 -C /usr/src

> cd /usr/src/Python-2.6.2
> ./configure
> make

make a symbolic link in /usr/bin for the python 2.6.2 interpreter
> ln -s /usr/src/Python-2.6.2/python /usr/bin/python26

verify that the correct python interpreter is executed
> python26

verify that python 2.6.2 appears in the heading

3 comments:

Fabio Varesano said...

Thanks for the guide. We'll try this soon.

Anyway I think that to run python 2.6, following you procedure you will need to run "python26" not "python 26"

mark said...

Thanks Fabio. Corrected the typo.

Maniraj said...

Use active python to solve this problem.