Solved

Install python2.5 in liniux

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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 modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

760 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

21 Experts available now in Live!

Get 1:1 Help Now