LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 09-16-2008, 11:20 PM   #1
jo3c
LQ Newbie
 
Registered: Jan 2008
Posts: 3

Rep: Reputation: 0
RHEL 4 and YUM installation


Hi all
Im trying to install yum on the newly installed RHEL 4.. but it doesn't work
wget
python-elementtree-1.2.6-5.el4.centos.i386.rpm
python-sqlite-1.1.7-1.2.1.i386.rpm
python-urlgrabber-2.9.8-2.noarch.rpm
sqlite-3.3.6-2.i386.rpm
yum-2.4.3-4.el4.centos.noarch.rpm
yum-metadata-parser-1.0-8.el4.centos.i386.rpm
Code:
rpm -ivh *.rpm
[root@localhost]# yum
Code:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   /usr/lib/python2.3/site-packages/cElementTree.so: cannot open shared object file: No such file or directory

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.3.4 (#1, Feb 18 2008, 17:16:53)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-9)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq
in python
[root@localhost]# python
Quote:
Python 2.3.4 (#1, Feb 18 2008, 17:16:53)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Quote:
>>> import yum
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "__init__.py", line 35, in ?
File "groups.py", line 3, in ?
File "comps.py", line 4, in ?
ImportError: /usr/lib/python2.3/site-packages/cElementTree.so: cannot open shared object file: No such file or directory

Last edited by jo3c; 09-16-2008 at 11:23 PM.
 
Old 09-16-2008, 11:26 PM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
You really should ask a question. Otherwise we have to guess what you want.

You are hoping to install yum to RHEL (which is not designed for it last I looked, so I'd expect trouble). If you want to use yum, I'd strongly urge you use CentOS (RHEL - only Free). If you want non-commercial support it would eem logical to use a non-commercial distro, otherwise ... what's wrong with up2date?


You get a "No such file or directory" error.
/usr/lib/python2.3/site-packages/cElementTree.so
... does this file exist?
 
Old 09-17-2008, 01:33 AM   #3
jo3c
LQ Newbie
 
Registered: Jan 2008
Posts: 3

Original Poster
Rep: Reputation: 0
nothing is wrong with up2date, i actually went with up2date after yum installation troubles

so i am running up2date right now.

no the file doesn't exist at /usr/lib/python2.3/site-packages/cElementTree.so
 
Old 09-17-2008, 03:24 AM   #4
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Well then - I don't understand your problem.
 
Old 09-19-2008, 05:27 AM   #5
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
i had that problem when, in a 64 bit rhel4 installation, i installed the i386 packages
needed by yum.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
yum and RHEL 5.1 bic Red Hat 3 06-12-2008 09:39 AM
YUM on RHEL 4.0?? ajeetraina Linux - Newbie 1 06-02-2008 10:34 AM
Yum on RHEL Atmchicago Red Hat 2 07-29-2006 06:12 PM
RHEL 4 and yum? inc0gs Red Hat 7 09-24-2005 04:09 PM
Yum in RHEL 4 IcoNyx Linux - Software 2 09-19-2005 05:00 PM


All times are GMT -5. The time now is 11:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration