LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   RHEL 4 and YUM installation (https://www.linuxquestions.org/questions/linux-enterprise-47/rhel-4-and-yum-installation-670388/)

jo3c 09-16-2008 10:20 PM

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


Simon Bridge 09-16-2008 10:26 PM

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?

jo3c 09-17-2008 12:33 AM

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

Simon Bridge 09-17-2008 02:24 AM

Well then - I don't understand your problem.

born4linux 09-19-2008 04:27 AM

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


All times are GMT -5. The time now is 08:35 AM.