What is the best way to upgrade python?

Y

yinglcs

Hi,

i am using red hat enterprise 4. It has python 2.3 installed. What is
the best way to upgrade to python 2.4?

I think one way is to compile python 2.4 from the source, but I can't
remove the old one since when i do 'rpm -e python', i get error like
'failed dependencies'.

Thank you for any idea.
 
Y

ying lcs

Have you tried to upgrade the current python RPM?

rpm -Uvh ....

You can also build from source. Once you get Python 2.4 up and running I am
pretty sure you can do a symbolic link on the python 2.3 application (either
in /usr/bin or /usr/sbin) and point it to the 2.4 python file.


I get '$rpm -Uvh python'
error: open of python failed: no such file or directory

but when I do '$rpm -q python ' , I get python -2.3.4-14.1


 
Y

ying lcs

Yeah, sorry I should have added more data.
You will need to go to rhn.redhat.com and either download the RPM or get the
url.

So you would do:
(1) download the rpm to your home directory
rpm -Uvh nameOfRPM

or
(2) grab the url
rpm -Uvh http://urlOfRPM

either way should update your python. Dont be distressed if you need to
update or install new RPMs.

Thanks. I went to rhn.redhat.com, but they only have python 2.3.4 for RHEL4.


Have you tried to upgrade the current python RPM?

rpm -Uvh ....

You can also build from source. Once you get Python 2.4 up and running I am
pretty sure you can do a symbolic link on the python 2.3 application (either
in /usr/bin or /usr/sbin) and point it to the 2.4 python file.


I get '$rpm -Uvh python'
error: open of python failed: no such file or directory

but when I do '$rpm -q python ' , I get python -2.3.4-14.1
 
B

Bruno Desthuilliers

(e-mail address removed) a écrit :
Hi,

i am using red hat enterprise 4. It has python 2.3 installed. What is
the best way to upgrade to python 2.4?

I think one way is to compile python 2.4 from the source, but I can't
remove the old one since when i do 'rpm -e python', i get error like
'failed dependencies'.

Not really a python-related problem by itself, but anyway: you probably
have other packages depending on this version of Python, so better to
keep it. Now nothing prevents you from having multiple Python versions.
Just build from sources (preferably giving /usr/local as prefix to
../configure since it's not the 'system' version), and install in a
different location (IIRC there's a make altinstall rule - anyway all
this is documented in the source directory).
 
J

John Nagle

Upgrade to a current RHEL?

Fedora 6 is shipping with Python 2.4. It's getting to 2.5

John Nagle
 
P

Paul Boddie

Hi,

i am using red hat enterprise 4. It has python 2.3 installed. What is
the best way to upgrade to python 2.4?

By installing a version from the source packages available from
python.org.
I think one way is to compile python 2.4 from the source, but I can't
remove the old one since when i do 'rpm -e python', i get error like
'failed dependencies'.

That's because various administrative programs (and perhaps others)
depend on Python 2.3 - unless Red Hat provide versions of these for
Python 2.4 (which I suppose they don't in RHEL 4), then you can't
remove Python 2.3 from your system.

Either configure the source package choosing --prefix as something
other than /usr (the default is /usr/local) and then install using
"make install", or choose --prefix as /usr and do a "make altinstall".
Using package management tools to build custom packages which can then
be installed via the system tools might be an even better solution,
since you can then manage what you've done and uninstall if necessary,
but I can't tell you how that's done on Red Hat (with RPMs and so on).

Paul
 
F

Facundo Batista

i am using red hat enterprise 4. It has python 2.3 installed. What is
the best way to upgrade to python 2.4?

I think one way is to compile python 2.4 from the source, but I can't
remove the old one since when i do 'rpm -e python', i get error like
'failed dependencies'.

Install Py2.4 and actually start using it, are two different animals.

For example, I have installed Py2.4 and Py2.5 in my laptop. They
coexist, and there's no problem about this.

Telling all your installed applications to use the newer, it's not so
easy, mainly because you don't have the power to test and change every
installed application.

So let them be. Just install the new version, and use it.

Regards,
 
J

jim-on-linux

Install Py2.4 and actually start using it, are
two different animals.

For example, I have installed Py2.4 and Py2.5
in my laptop. They coexist, and there's no
problem about this.

Telling all your installed applications to use
the newer, it's not so easy, mainly because you
don't have the power to test and change every
installed application.

So let them be. Just install the new version,
and use it.

Regards,

--
. Facundo
.
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/


I recently installed py 2.5 and I used the local
user option. Now I build programs on 2.5 but I
left the system with the original 2.4? since it
worked just fine.

Look in the instructions on how to build for local
users and you 'll save yourself from encountering
the unexpected.


jim-on-linux
http://www.inqvista.com
 

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,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top