0% found this document useful (0 votes)
164 views1 page

How To Install Python 2.5 On Ubuntu

The document provides steps to install Python 2.5.5 on Ubuntu 10.04 by downloading the source code from Python's website, compiling and installing it, and adding a shortcut to launch it. Key commands include using apt-get to install build tools, downloading and extracting the Python source tarball, running configure, make, and make install commands, and linking the python2.5 binary to /usr/bin to make it available system-wide. Additional instructions are given to create a launcher icon for Python 2.5.5 in the applications menu.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
164 views1 page

How To Install Python 2.5 On Ubuntu

The document provides steps to install Python 2.5.5 on Ubuntu 10.04 by downloading the source code from Python's website, compiling and installing it, and adding a shortcut to launch it. Key commands include using apt-get to install build tools, downloading and extracting the Python source tarball, running configure, make, and make install commands, and linking the python2.5 binary to /usr/bin to make it available system-wide. Additional instructions are given to create a launcher icon for Python 2.5.5 in the applications menu.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Howto: Install Python 2.5.5 on Ubuntu 10.

04 Lucid Lynx
So, you're a Python developer and like to use the 2.5.x track instead of the 2.6.x or the 3.x track. Well, never fear! Despite the fact that 2.5.5 is not installed in 10.04, or available in the repositories, you can still install it into your system. The following steps will show you how. Open your terminal and type the following commands line by line:
sudo apt-get install build-essential gcc cd Downloads wget http://www.python.org/ftp/python/2.5.6/Python-2.5.6.tgz tar -xvzf Python-2.5.6.tgz cd Python-2.5.6 ./configure --prefix=/usr/local/python2.5 make make test sudo make install sudo ln -s /usr/local/python2.5/bin/python /usr/bin/python2.5

There you have it! Python 2.5.5 is installed. Now if you want to run it, you can either type python2.5 from the terminal, or you can make a shortcut for it by doing the following: 1. 2. 3. 4. 5. 6. 7. Right-click on Applications. Select Edit Menus. Click Programming Click New Item Type "Python (v2.5)" in the Name Box Type "python2.5" in the Command Box Type any comments (optional) in the comments box or just click Ok

Now it should show up in your programming menu. Have fun with Python 2.5.5! Note: after the ./configure open your Makefile and find the line with LDFLAGS = edit to LDFLAGS = -L/usr/lib//i386-linux-gnu and make

You might also like