Solved

Install python2.5 in liniux

Posted on 2009-07-10
2
286 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction On September 29, 2012, the Python 3.3.0 was released; nothing extremely unexpected,  yet another, better version of Python. But, if you work in Microsoft Windows, you should notice that the Python Launcher for Windows was introduced wi…
Strings in Python are the set of characters that, once defined, cannot be changed by any other method like replace. Even if we use the replace method it still does not modify the original string that we use, but just copies the string and then modif…
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 …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

733 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