Fedora: Dual Python Versions Installed System Not Picking Up NewerVersion

N

*nixtechno

I have a fedora box and just installed python 2.6.1 along with 2.5.2,
so here's my issue, if I removed the "systems" garbage RPM it would
uninstall all the other crap along with it, so I went ahead and
trunked in and ./configure, build && build install and built python
2.6.1 along with this. However how can I stipulate that I want the
WHOLE system to use Python 2.6.1 rather than 2.5.2? I know there is
something to do with PATH, which I tried under my /root/.cshrc file,
but to no avail it didn't work. So is there something special I should
do with getting the system to pick up this directy:

/usr/local/lib/python2.6/

Which the v2.6 binary is in:

/usr/local/bin/python.2.6

Rather than this:

/usr/lib64/python2.5/

Which the v2.5 binary is in:

/usr/bin/python

Perhaps it's Fedora not picking it up?

Here's my server's build:
# uname -rm
2.6.27.19-170.2.35.fc10.x86_64 x86_64

I've gone through and tried to figure it out, to no avail, so if
anyone is pretty familiar with this, because I do NOT want to
stipulate which binary to use in all my source files...
 
D

Doug Morse

I have a fedora box and just installed python 2.6.1 along with 2.5.2,
so here's my issue, if I removed the "systems" garbage RPM it would
uninstall all the other crap along with it, so I went ahead and
trunked in and ./configure, build && build install and built python
2.6.1 along with this. However how can I stipulate that I want the
WHOLE system to use Python 2.6.1 rather than 2.5.2? I know there is
something to do with PATH, which I tried under my /root/.cshrc file,
but to no avail it didn't work. So is there something special I should
do with getting the system to pick up this directy:

/usr/local/lib/python2.6/

Which the v2.6 binary is in:

/usr/local/bin/python.2.6

Rather than this:

/usr/lib64/python2.5/

Which the v2.5 binary is in:

/usr/bin/python

Perhaps it's Fedora not picking it up?

Here's my server's build:
# uname -rm
2.6.27.19-170.2.35.fc10.x86_64 x86_64

I've gone through and tried to figure it out, to no avail, so if
anyone is pretty familiar with this, because I do NOT want to
stipulate which binary to use in all my source files...

Hi,

One option would be to use the alternatives system, which RHL / Fedora install
by default. Run "man alternatives" for documentation and the contents of
/etc/alternatives for examples already in use on your system.

Hope this helps.

Cheers,
Doug
 
N

*nixtechno

Hi,

One option would be to use the alternatives system, which RHL / Fedora install
by default.  Run "man alternatives" for documentation and the contents of
/etc/alternatives for examples already in use on your system.

Hope this helps.

Cheers,
Doug

Greatly appreciated, I'm a do that now and check it out. Thanks for
the help!
 
A

Aahz

I have a fedora box and just installed python 2.6.1 along with 2.5.2,
so here's my issue, if I removed the "systems" garbage RPM it would
uninstall all the other crap along with it, so I went ahead and
trunked in and ./configure, build && build install and built python
2.6.1 along with this. However how can I stipulate that I want the
WHOLE system to use Python 2.6.1 rather than 2.5.2? I know there is
something to do with PATH, which I tried under my /root/.cshrc file,
but to no avail it didn't work. So is there something special I should
do with getting the system to pick up this directy:

This is a Bad Idea; some of the system scripts rely on the built-in
Python. You should either use a shell alias or explicitly specify the
full path to the 2.6.1 binary inside your scripts. I think virtualenv
might also be useful, but I haven't played with that myself yet.
--
Aahz ([email protected]) <*> http://www.pythoncraft.com/

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it." --Brian W. Kernighan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top