Solved

Install python2.5 in liniux

Posted on 2009-07-10
2
283 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now