Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 8th, 2007, 09:25 PM
yinglcs@gmail.com
Guest
 
Posts: n/a
Default 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.

  #2  
Old March 8th, 2007, 10:15 PM
ying lcs
Guest
 
Posts: n/a
Default Re: What is the best way to upgrade python?

On 3/8/07, Sick Monkey <sickcodemonkey@gmail.comwrote:
Quote:
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


Quote:
On 8 Mar 2007 13:13:13 -0800, yinglcs@gmail.com <yinglcs@gmail.com wrote:
Quote:
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
>
>
  #3  
Old March 8th, 2007, 10:25 PM
Bruno Desthuilliers
Guest
 
Posts: n/a
Default Re: What is the best way to upgrade python?

yinglcs@gmail.com a écrit :
Quote:
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).

  #4  
Old March 8th, 2007, 10:35 PM
ying lcs
Guest
 
Posts: n/a
Default Re: What is the best way to upgrade python?

On 3/8/07, Sick Monkey <sickcodemonkey@gmail.comwrote:
Quote:
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.


Quote:
>
On 3/8/07, ying lcs <yinglcs@gmail.comwrote:
Quote:
On 3/8/07, Sick Monkey <sickcodemonkey@gmail.comwrote:
Quote:
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
Quote:
Quote:
pretty sure you can do a symbolic link on the python 2.3 application
(either
Quote:
Quote:
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


Quote:
On 8 Mar 2007 13:13:13 -0800, yinglcs@gmail.com <yinglcs@gmail.com >
wrote:
Quote:
Quote:
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

>
>
>
>
  #5  
Old March 9th, 2007, 03:15 AM
John Nagle
Guest
 
Posts: n/a
Default Re: What is the best way to upgrade python?

ying lcs wrote:
Quote:
Quote:
Quote:
Hi,

i am using red hat enterprise 4. It has python 2.3 installed.
>What is
Quote:
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
  #6  
Old March 9th, 2007, 12:05 PM
Paul Boddie
Guest
 
Posts: n/a
Default Re: What is the best way to upgrade python?

On 8 Mar, 22:13, "ying...@gmail.com" <ying...@gmail.comwrote:
Quote:
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.
Quote:
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

  #7  
Old March 22nd, 2007, 08:25 PM
Facundo Batista
Guest
 
Posts: n/a
Default Re: What is the best way to upgrade python?

yinglcs@gmail.com wrote:

Quote:
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/


  #8  
Old March 22nd, 2007, 09:45 PM
jim-on-linux
Guest
 
Posts: n/a
Default Re: What is the best way to upgrade python?

On Thursday 22 March 2007 15:18, Facundo Batista
wrote:
Quote:
yinglcs@gmail.com wrote:
Quote:
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



















  #9  
Old March 23rd, 2007, 01:15 AM
John Nagle
Guest
 
Posts: n/a
Default Re: What is the best way to upgrade python?

Facundo Batista wrote:
Quote:
yinglcs@gmail.com wrote:
>
>
>
Quote:
>>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
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles