Solved

Install python2.5 in liniux

Posted on 2009-07-10
2
285 Views
Last Modified: 2013-12-15
Hi,

I want to install the executable for python in /usr/local/bin/python2.5.

I have python 2.6 install and is executed by typing "python" in the shell.

I would like to start python2.5 by executing python2.5 and the shell.  So...how do I do that?

And to make sure I hand execute !#//usr/local/bin/python2.5.

Do I install like this?  Is this correct? ./configure --prefix=/usr/local/bin/python2.5


0
Comment
Question by:dmontgom
2 Comments
 
LVL 8

Expert Comment

by:LunarNRG
ID: 24827284
No, you probably meant something more like this ...

./configure --prefix=/usr/local

... however, I would probably configure this way instead (seems cleaner to me) ...

./configure --prefix=/usr/local/python2.5

... and then execute python with

$ /usr/local/python2.5/bin/python

... or with this she-bang

#!/usr/local/python2.5/bin/python

Then after you've run 'make' and 'make install', you can add '/usr/local/python2.5/bin' to your PATH env variable so you can type python2.5 on it's own (without it's full path) to run the interactive shell. For example,

export PATH=$PATH:/usr/local/python2.5/bin

HTH, Good Luck!
0
 
LVL 9

Accepted Solution

by:
zaghaghi earned 250 total points
ID: 25132115
you can install python2.5 without any change and after installation was complete, you can change symbolic links in /usr/local/bin

you can add a symbolic link by this:


cd /usr/local/bin
sudo ln -s /usr/local/python2.5/bin/python python2.5
sudo ln -s /usr/local/python2.6/bin/python python2.6
sudo ln -s /usr/local/python2.6/bin/python python

Open in new window

0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Flask is a microframework for Python based on Werkzeug and Jinja 2. This requires you to have a good understanding of Python 2.7. Lets install Flask! To install Flask you can use a python repository for libraries tool called pip. Download this f…
Article by: Swadhin
Introduction of Lists in Python: There are six built-in types of sequences. Lists and tuples are the most common one. In this article we will see how to use Lists in python and how we can utilize it while doing our own program. In general we can al…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question