Installing python 2.4.2 on Centos 4.3?

If it doesn't fit in another category, ask it here.
Post Reply
gsieb
Posts: 1
Joined: 2006/06/16 16:15:52
Location: Holmdel, NJ
Contact:

Installing python 2.4.2 on Centos 4.3?

Post by gsieb » 2006/06/16 16:21:34

Hello! I'm playing around with a CentOS 4.3 box here, and one of my users has asked for python 2.4.2, so he can try out things that he's doing on another box (running a different distro) which has py2.4.2. So, I downloaded the RPMs, and tried to manually add them:

# yum localinstall python24-2.4.2-2.i386.rpm python24-devel-2.4.2-2.i386.rpm python24-tools-2.4.2-2.i386.rpm tkinter24-2.4.2-2.i386.rpm
Setting up Local Package Process
Examining python24-2.4.2-2.i386.rpm: python24 - 2.4.2-2.i386
Examining python24-devel-2.4.2-2.i386.rpm: python24-devel - 2.4.2-2.i386
Examining python24-tools-2.4.2-2.i386.rpm: python24-tools - 2.4.2-2.i386
Examining tkinter24-2.4.2-2.i386.rpm: tkinter24 - 2.4.2-2.i386
Marking python24-2.4.2-2.i386.rpm to be installed
Marking python24-devel-2.4.2-2.i386.rpm to be installed
Marking python24-tools-2.4.2-2.i386.rpm to be installed
Marking tkinter24-2.4.2-2.i386.rpm to be installed
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package python24-devel.i386 0:2.4.2-2 set to be updated
---> Package python24-tools.i386 0:2.4.2-2 set to be updated
---> Package tkinter24.i386 0:2.4.2-2 set to be updated
---> Package python24.i386 0:2.4.2-2 set to be updated
--> Running transaction check
Setting up repositories
Reading repository metadata in from local files
--> Processing Dependency: python2 for package: system-config-rootpassword
--> Processing Dependency: /usr/bin/python for package: PyXML
--> Processing Dependency: python2 for package: system-config-keyboard
--> Processing Dependency: python2 >= 2.3 for package: pyorbit
--> Processing Dependency: python >= 2.3 for package: rpm-python
--> Processing Dependency: /usr/bin/python2 for package: system-config-nfs
--> Processing Dependency: /usr/bin/python for package: bluez-utils
--> Processing Dependency: libcrypto.so.5 for package: python24
--> Processing Dependency: /usr/bin/python for package: kernel-utils
--> Processing Dependency: /usr/bin/python2 for package: firstboot
--> Processing Dependency: /usr/lib/python2.3 for package: libxml2-python
Importing Additional filelist information for dependency resolution
filelists.xml.gz 100% |=========================| 383 kB 00:02
update : ################################################## 122/122
Added 122 new packages, deleted 0 old in 3.90 seconds
filelists.xml.gz 100% |=========================| 1.7 MB 00:02
base : ################################################## 1450/1450
Added 1450 new packages, deleted 0 old in 13.48 seconds
filelists.xml.gz 100% |=========================| 150 B 00:00
Added 0 new packages, deleted 0 old in 0.00 seconds
filelists.xml.gz 100% |=========================| 146 kB 00:00
extras : ################################################## 204/204
Added 204 new packages, deleted 0 old in 1.84 seconds
--> Processing Dependency: /usr/bin/python2 for package: system-config-securitylevel
--> Processing Dependency: /usr/bin/python for package: vnc-server
--> Processing Dependency: python >= 2.3 for package: rhpl
--> Processing Dependency: /usr/bin/python for package: up2date
--> Processing Dependency: libdb-4.3.so for package: python24
--> Processing Dependency: python2 for package: system-logviewer
--> Processing Dependency: python-abi = 2.3 for package: gnome-python2
--> Processing Dependency: libtix8.1.8.4.so for package: tkinter24
--> Processing Dependency: python2 for package: system-config-securitylevel
--> Processing Dependency: python2 for package: system-config-language
--> Processing Dependency: /usr/bin/python for package: comps-extras
--> Processing Dependency: python2 for package: system-config-nfs
--> Processing Dependency: python >= 2.2.2 for package: up2date
--> Processing Dependency: libreadline.so.5 for package: python24
--> Processing Dependency: python for package: 4Suite
--> Processing Dependency: /usr/bin/python for package: gettext
--> Processing Dependency: /usr/bin/python for package: system-config-printer-gui
--> Processing Dependency: python for package: system-config-packages
--> Processing Dependency: python for package: system-config-printer
--> Processing Dependency: /usr/bin/python2 for package: system-config-date
--> Processing Dependency: /usr/bin/python for package: authconfig-gtk
--> Processing Dependency: python2 for package: system-config-date
--> Processing Dependency: /usr/bin/python for package: libxml2-python
--> Processing Dependency: /usr/bin/python for package: kudzu
--> Processing Dependency: python for package: rhnlib
--> Processing Dependency: /usr/bin/python for package: rhpl
--> Processing Dependency: /usr/bin/python for package: system-config-printer
--> Processing Dependency: Distutils for package: 4Suite
--> Processing Dependency: /usr/bin/python for package: system-config-mouse
--> Processing Dependency: /usr/bin/python for package: python-urlgrabber
--> Processing Dependency: python-abi = 2.3 for package: system-config-printer
--> Processing Dependency: python >= 2.3 for package: system-config-lvm
--> Processing Dependency: /usr/bin/python2 for package: system-config-display
--> Processing Dependency: /usr/bin/python for package: python24-tools
--> Processing Dependency: python2 >= 2.3 for package: pygtk2
--> Processing Dependency: python2 for package: system-config-users
--> Processing Dependency: python-abi = 2.3 for package: pyparted
--> Processing Dependency: python for package: pyOpenSSL
--> Processing Dependency: python for package: system-config-network-tui
--> Processing Dependency: /usr/bin/python2 for package: system-config-rootpassword
--> Processing Dependency: /usr/bin/python for package: system-config-services
--> Processing Dependency: /usr/bin/python for package: system-config-language
--> Processing Dependency: python-abi = 2.3 for package: alchemist
--> Processing Dependency: python2 for package: system-config-soundcard
--> Processing Dependency: python-abi = 2.3 for package: python-elementtree
--> Processing Dependency: python >= 2.2.1 for package: rhn-applet
--> Processing Dependency: /usr/bin/python for package: rhn-applet
--> Processing Dependency: /usr/bin/python for package: up2date-gnome
--> Processing Dependency: /usr/bin/python for package: diskdumputils
--> Processing Dependency: /usr/bin/python for package: yum
--> Processing Dependency: /usr/bin/python for package: alchemist
--> Processing Dependency: python2 for package: system-config-mouse
--> Processing Dependency: python for package: yum
--> Processing Dependency: /usr/bin/python2 for package: system-config-lvm
--> Processing Dependency: libssl.so.5 for package: python24
--> Processing Dependency: python for package: firstboot
--> Processing Dependency: /usr/bin/python2 for package: system-config-soundcard--> Processing Dependency: /usr/bin/python2 for package: system-config-users
--> Processing Dependency: python >= 2.3 for package: authconfig
--> Processing Dependency: python2 for package: pyxf86config
--> Processing Dependency: python for package: PyXML
--> Processing Dependency: python2 for package: system-config-display
--> Processing Dependency: /usr/bin/python for package: system-config-keyboard
--> Processing Dependency: /usr/bin/python for package: system-config-network-tui
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for tix to pack into transaction set.
tix-8.1.4-98.i386.rpm 100% |=========================| 39 kB 00:00
---> Package tix.i386 1:8.1.4-98 set to be updated
--> Running transaction check
--> Processing Dependency: python2 for package: system-config-rootpassword
--> Processing Dependency: /usr/bin/python for package: PyXML
--> Processing Dependency: python2 for package: system-config-keyboard
--> Processing Dependency: python2 >= 2.3 for package: pyorbit
--> Processing Dependency: python >= 2.3 for package: rpm-python
--> Processing Dependency: /usr/bin/python2 for package: system-config-nfs
--> Processing Dependency: /usr/bin/python for package: bluez-utils
--> Processing Dependency: libcrypto.so.5 for package: python24
--> Processing Dependency: /usr/bin/python for package: kernel-utils
--> Processing Dependency: /usr/bin/python2 for package: firstboot
--> Processing Dependency: /usr/lib/python2.3 for package: libxml2-python
Importing Additional filelist information for dependency resolution
--> Processing Dependency: /usr/bin/python2 for package: system-config-securitylevel
--> Processing Dependency: /usr/bin/python for package: vnc-server
--> Processing Dependency: python >= 2.3 for package: rhpl
--> Processing Dependency: /usr/bin/python for package: up2date
--> Processing Dependency: libdb-4.3.so for package: python24
--> Processing Dependency: python2 for package: system-logviewer
--> Processing Dependency: python-abi = 2.3 for package: gnome-python2
--> Processing Dependency: /usr/bin/python for package: system-config-language
--> Processing Dependency: python2 for package: system-config-securitylevel
--> Processing Dependency: python2 for package: system-config-language
--> Processing Dependency: /usr/bin/python for package: comps-extras
--> Processing Dependency: python2 for package: system-config-nfs
--> Processing Dependency: python >= 2.2.2 for package: up2date
--> Processing Dependency: libreadline.so.5 for package: python24
--> Processing Dependency: python for package: 4Suite
--> Processing Dependency: /usr/bin/python for package: gettext
--> Processing Dependency: /usr/bin/python for package: system-config-printer-gui
--> Processing Dependency: python for package: system-config-packages
--> Processing Dependency: python for package: system-config-printer
--> Processing Dependency: /usr/bin/python2 for package: system-config-date
--> Processing Dependency: /usr/bin/python for package: authconfig-gtk
--> Processing Dependency: python2 for package: system-config-date
--> Processing Dependency: /usr/bin/python for package: libxml2-python
--> Processing Dependency: /usr/bin/python for package: kudzu
--> Processing Dependency: python for package: rhnlib
--> Processing Dependency: /usr/bin/python for package: rhpl
--> Processing Dependency: /usr/bin/python for package: system-config-printer
--> Processing Dependency: Distutils for package: 4Suite
--> Processing Dependency: /usr/bin/python for package: system-config-mouse
--> Processing Dependency: /usr/bin/python for package: python-urlgrabber
--> Processing Dependency: python-abi = 2.3 for package: system-config-printer
--> Processing Dependency: python >= 2.3 for package: system-config-lvm
--> Processing Dependency: /usr/bin/python2 for package: system-config-display
--> Processing Dependency: /usr/bin/python for package: python24-tools
--> Processing Dependency: python2 >= 2.3 for package: pygtk2
--> Processing Dependency: python2 for package: system-config-users
--> Processing Dependency: python-abi = 2.3 for package: pyparted
--> Processing Dependency: python for package: pyOpenSSL
--> Processing Dependency: python for package: system-config-network-tui
--> Processing Dependency: /usr/bin/python2 for package: system-config-rootpassword
--> Processing Dependency: /usr/bin/python for package: system-config-services
--> Processing Dependency: python-abi = 2.3 for package: alchemist
--> Processing Dependency: python2 for package: system-config-soundcard
--> Processing Dependency: python-abi = 2.3 for package: python-elementtree
--> Processing Dependency: python >= 2.2.1 for package: rhn-applet
--> Processing Dependency: /usr/bin/python for package: rhn-applet
--> Processing Dependency: /usr/bin/python for package: up2date-gnome
--> Processing Dependency: /usr/bin/python for package: diskdumputils
--> Processing Dependency: /usr/bin/python for package: yum
--> Processing Dependency: /usr/bin/python for package: alchemist
--> Processing Dependency: python2 for package: system-config-mouse
--> Processing Dependency: python for package: yum
--> Processing Dependency: /usr/bin/python2 for package: system-config-lvm
--> Processing Dependency: libssl.so.5 for package: python24
--> Processing Dependency: python for package: firstboot
--> Processing Dependency: /usr/bin/python2 for package: system-config-soundcard--> Processing Dependency: /usr/bin/python2 for package: system-config-users
--> Processing Dependency: python >= 2.3 for package: authconfig
--> Processing Dependency: python2 for package: pyxf86config
--> Processing Dependency: python for package: PyXML
--> Processing Dependency: python2 for package: system-config-display
--> Processing Dependency: /usr/bin/python for package: system-config-keyboard
--> Processing Dependency: /usr/bin/python for package: system-config-network-tui
--> Finished Dependency Resolution
Error: Missing Dependency: python2 is needed by package system-config-rootpassword
Error: Missing Dependency: /usr/bin/python is needed by package PyXML
Error: Missing Dependency: python2 is needed by package system-config-keyboard
Error: Missing Dependency: python2 >= 2.3 is needed by package pyorbit
Error: Missing Dependency: python >= 2.3 is needed by package rpm-python
Error: Missing Dependency: /usr/bin/python2 is needed by package system-config-nfs
Error: Missing Dependency: /usr/bin/python is needed by package bluez-utils
Error: Missing Dependency: libcrypto.so.5 is needed by package python24
Error: Missing Dependency: /usr/bin/python is needed by package kernel-utils
Error: Missing Dependency: /usr/bin/python2 is needed by package firstboot
Error: Missing Dependency: /usr/lib/python2.3 is needed by package libxml2-python
Error: Missing Dependency: /usr/bin/python2 is needed by package system-config-securitylevel
Error: Missing Dependency: /usr/bin/python is needed by package vnc-server
Error: Missing Dependency: python >= 2.3 is needed by package rhpl
Error: Missing Dependency: /usr/bin/python is needed by package up2date
Error: Missing Dependency: libdb-4.3.so is needed by package python24
Error: Missing Dependency: python2 is needed by package system-logviewer
Error: Missing Dependency: python-abi = 2.3 is needed by package gnome-python2
Error: Missing Dependency: python2 is needed by package system-config-securitylevel
Error: Missing Dependency: python2 is needed by package system-config-language
Error: Missing Dependency: /usr/bin/python is needed by package comps-extras
Error: Missing Dependency: python2 is needed by package system-config-nfs
Error: Missing Dependency: python >= 2.2.2 is needed by package up2date
Error: Missing Dependency: libreadline.so.5 is needed by package python24
Error: Missing Dependency: python is needed by package 4Suite
Error: Missing Dependency: /usr/bin/python is needed by package gettext
Error: Missing Dependency: /usr/bin/python is needed by package system-config-printer-gui
Error: Missing Dependency: python is needed by package system-config-packages
Error: Missing Dependency: python is needed by package system-config-printer
Error: Missing Dependency: /usr/bin/python2 is needed by package system-config-date
Error: Missing Dependency: /usr/bin/python is needed by package authconfig-gtk
Error: Missing Dependency: python2 is needed by package system-config-date
Error: Missing Dependency: /usr/bin/python is needed by package libxml2-python
Error: Missing Dependency: /usr/bin/python is needed by package kudzu
Error: Missing Dependency: python is needed by package rhnlib
Error: Missing Dependency: /usr/bin/python is needed by package rhpl
Error: Missing Dependency: /usr/bin/python is needed by package system-config-printer
Error: Missing Dependency: Distutils is needed by package 4Suite
Error: Missing Dependency: /usr/bin/python is needed by package system-config-mouse
Error: Missing Dependency: /usr/bin/python is needed by package python-urlgrabber
Error: Missing Dependency: python-abi = 2.3 is needed by package system-config-printer
Error: Missing Dependency: python >= 2.3 is needed by package system-config-lvm
Error: Missing Dependency: /usr/bin/python2 is needed by package system-config-display
Error: Missing Dependency: /usr/bin/python is needed by package python24-tools
Error: Missing Dependency: python2 >= 2.3 is needed by package pygtk2
Error: Missing Dependency: python2 is needed by package system-config-users
Error: Missing Dependency: python-abi = 2.3 is needed by package pyparted
Error: Missing Dependency: python is needed by package pyOpenSSL
Error: Missing Dependency: python is needed by package system-config-network-tuiError: Missing Dependency: /usr/bin/python2 is needed by package system-config-rootpassword
Error: Missing Dependency: /usr/bin/python is needed by package system-config-services
Error: Missing Dependency: /usr/bin/python is needed by package system-config-language
Error: Missing Dependency: python-abi = 2.3 is needed by package alchemist
Error: Missing Dependency: python2 is needed by package system-config-soundcard
Error: Missing Dependency: python-abi = 2.3 is needed by package python-elementtree
Error: Missing Dependency: python >= 2.2.1 is needed by package rhn-applet
Error: Missing Dependency: /usr/bin/python is needed by package rhn-applet
Error: Missing Dependency: /usr/bin/python is needed by package up2date-gnome
Error: Missing Dependency: /usr/bin/python is needed by package diskdumputils
Error: Missing Dependency: /usr/bin/python is needed by package yum
Error: Missing Dependency: /usr/bin/python is needed by package alchemist
Error: Missing Dependency: python2 is needed by package system-config-mouse
Error: Missing Dependency: python is needed by package yum
Error: Missing Dependency: /usr/bin/python2 is needed by package system-config-lvm
Error: Missing Dependency: libssl.so.5 is needed by package python24
Error: Missing Dependency: python is needed by package firstboot
Error: Missing Dependency: /usr/bin/python2 is needed by package system-config-soundcard
Error: Missing Dependency: /usr/bin/python2 is needed by package system-config-users
Error: Missing Dependency: python >= 2.3 is needed by package authconfig
Error: Missing Dependency: python2 is needed by package pyxf86config
Error: Missing Dependency: python is needed by package PyXML
Error: Missing Dependency: python2 is needed by package system-config-display
Error: Missing Dependency: /usr/bin/python is needed by package system-config-keyboard
Error: Missing Dependency: /usr/bin/python is needed by package system-config-network-tui

Ok.. is it me, or is this being particularly obtuse. I'm trying to update /usr/bin/python dangitall! :-)

I'm pretty new to the whole RPM world, but not necessarily new to the concept of packages and package systems. So this seems like a lot of packages for me to have to de-install and then re-install after the upgrade. Is there some way I can "fool" the system into just doing the install?

I appreciate your help in advance. Thank you all!

Best,
--Glenn

moongloom
Posts: 2
Joined: 2006/06/17 00:15:56

Re: Installing python 2.4.2 on Centos 4.3?

Post by moongloom » 2006/06/17 00:22:32

The problem is that a lot of the system tools use python, for instance yum. So you will have to rebuild yum and assorted other programs from their srpms using python 2.4.2. That is a major pain though, what I ended up doing was just installing python 2.4.3 but not removing python 2.3. I kept the symbolic link between python and python2.3. Then anytime I want to run programs using python 2.4.3 I just call them with python2.4 instead of python. It's kind of a crappy hack, but it seems to work ok, since I only wanted python 2.4 for one program. Search the forums for python 2.4 there are some threads about how to rebuild the srpms.

Lenard
Posts: 2283
Joined: 2005/11/29 02:35:25
Location: Indiana

Re: Installing python 2.4.2 on Centos 4.3?

Post by Lenard » 2006/06/17 13:25:10

Using binary rpm packages meant for a different distro is also not a good idea, if you want to install the python-2.4.2 binary rpm packages build them from the source, try downloading the python-2.4.2-3.2.1.src.rpm file from FC5 updates to build;

http://download.fedora.redhat.com/pub/fedora/linux/core/updates/5/

z00dax
Posts: 220
Joined: 2004/11/30 22:04:52
Location: London - UK
Contact:

Installing python 2.4.2 on Centos 4.3?

Post by z00dax » 2006/07/03 19:38:58

using rpms from a different distro is a really bad idea. and specially something like python - you are going to cause your machine a lot of harm by just getting the rpms from elsewhere ( even if its built locally on the machine ).

you are much better off using a repo that has these packages included ( even though they might not be supported by the distro . eg. py-vault )

make sure you understand the implications of doing this before you go off and shoot yourself in the foot.

highleaf
Posts: 6
Joined: 2005/03/27 11:47:11
Contact:

Re: Installing python 2.4.2 on Centos 4.3?

Post by highleaf » 2006/07/28 01:54:09

Install from source, Check the installing manual. There are options to install several python version without breaking system.

Post Reply

Return to “CentOS 4 - Miscellaneous Questions”