470,580 Members | 2,244 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,580 developers. It's quick & easy.

What is the best way to upgrade python?

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.

Mar 8 '07 #1
8 2233
On 3/8/07, Sick Monkey <si************@gmail.comwrote:
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
On 8 Mar 2007 13:13:13 -0800, yi*****@gmail.com <yi*****@gmail.com wrote:
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.

--
http://mail.python.org/mailman/listinfo/python-list

Mar 8 '07 #2
yi*****@gmail.com 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).

Mar 8 '07 #3
On 3/8/07, Sick Monkey <si************@gmail.comwrote:
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.
>
On 3/8/07, ying lcs <yi*****@gmail.comwrote:
On 3/8/07, Sick Monkey <si************@gmail.comwrote:
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
On 8 Mar 2007 13:13:13 -0800, yi*****@gmail.com <yi*****@gmail.com >
wrote:
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.

--
http://mail.python.org/mailman/listinfo/python-list

>
>

Mar 8 '07 #4
ying lcs wrote:
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?
Upgrade to a current RHEL?

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

John Nagle
Mar 9 '07 #5
On 8 Mar, 22:13, "ying...@gmail.com" <ying...@gmail.comwrote:
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

Mar 9 '07 #6
yi*****@gmail.com wrote:

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,

--
.. Facundo
..
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
Mar 22 '07 #7
On Thursday 22 March 2007 15:18, Facundo Batista
wrote:
yi*****@gmail.com wrote:
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,

--
. 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







Mar 22 '07 #8
Facundo Batista wrote:
yi*****@gmail.com wrote:
>>i am using red hat enterprise 4. It has python 2.3 installed. What is
the best way to upgrade to python 2.4?
Very carefully.

All the C libraries that work with Python are version-dependent.

John Nagle
Mar 23 '07 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Charlie | last post: by
4 posts views Thread by Fabian Braennstroem | last post: by
4 posts views Thread by fdu.xiaojf | last post: by
2 posts views Thread by yinglcs | last post: by
7 posts views Thread by tinnews | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.