Red Hat This forum is for the discussion of Red Hat Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-03-2005, 05:20 PM
|
#1
|
LQ Newbie
Registered: May 2005
Posts: 5
Rep:
|
YUM - Can't install it!
Sorry, wrong forum!
Hello! I am running plesk on a virtual server with RH9 and have access only via ssh. In order to update my php & mysql versions I've read that yum works like magic....
I've spent about 25 hours over 2 days trying to install it!!!
I would very much appreciate if somebody could lend a little hand as I'm no linux expert. Here's an example of one of my attempts:
# rpm -i yum-2.0.3-0.fdr.1.rh90.noarch.rpm
The result was:
warning: yum-2.0.3-0.fdr.1.rh90.noarch.rpm: V3 DSA signature: NOKEY, key ID 8df56d05
error: Failed dependencies:
libxml2-python is needed by yum-2.0.3-0.fdr.1.rh90
rpm-python >= 0:4.1.1 is needed by yum-2.0.3-0.fdr.1.rh90
So far, fine. This means libxml2-python & rpm-python are required, right?
So, just gotta install them and everything should work.
Attempting to install libxml2-python turned out to be impossible:
# rpm -i libxml2-python-2.6.19-1.i386.rpm
The result:
warning: libxml2-python-2.6.19-1.i386.rpm: V3 DSA signature: NOKEY, key ID 30c9ecf8
error: Failed dependencies:
/usr/lib/python2.4 is needed by libxml2-python-2.6.19-1
libc.so.6(GLIBC_2.3.4) is needed by libxml2-python-2.6.19-1
libxml2 = 2.6.19 is needed by libxml2-python-2.6.19-1
python(abi) = 2.4 is needed by libxml2-python-2.6.19-1
But I have python-2.4.1 . . . . .
. . . . and libxml2-2.6.19
Didn't get anywhere trying this, so I tried installing it using a python package.
I unpacked the package (libxml2-python) ... and, having never installed or used anything with python, figured That I had to do the following:
# ./setup.py build
...and the result is:
running build
running build_py
not copying libxml2.py (output up-to-date)
not copying drv_libxml2.py (output up-to-date)
not copying libxslt.py (output up-to-date)
running build_ext
Traceback (most recent call last):
File "./setup.py", line 238, in ?
data_files=data_files,
File "/usr/lib/python2.2/distutils/core.py", line 138, in setup
dist.run_commands()
File "/usr/lib/python2.2/distutils/dist.py", line 893, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.2/distutils/dist.py", line 913, in run_command
cmd_obj.run()
File "/usr/lib/python2.2/distutils/command/build.py", line 107, in run
self.run_command(cmd_name)
File "/usr/lib/python2.2/distutils/cmd.py", line 330, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.2/distutils/dist.py", line 913, in run_command
cmd_obj.run()
File "/usr/lib/python2.2/distutils/command/build_ext.py", line 231, in run
customize_compiler(self.compiler)
File "/usr/lib/python2.2/distutils/sysconfig.py", line 139, in customize_compiler
(cc, opt, ccshared, ldshared, so_ext) = \
File "/usr/lib/python2.2/distutils/sysconfig.py", line 421, in get_config_vars
func()
File "/usr/lib/python2.2/distutils/sysconfig.py", line 326, in _init_posix
raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open /usr/lib/python2.2/config/Makefile (No such file or directory)
From what I've understood, it requires python 2.2.
I have python 2.4.1, and could not find a version of libxml2-python. It seems that any version I've tried (libxml2-python-2.6.15) requires python 2.2.
Now I'm really stuck! I would be very grateful if someone could straighten me out a little and give me a hint on what I'm doing wrong!
Thanks,
Tim (irlkersten)
Last edited by irlkersten; 05-03-2005 at 06:09 PM.
|
|
|
05-06-2005, 02:56 PM
|
#2
|
Member
Registered: Aug 2003
Location: Richardson, Texas
Distribution: Debian/Fedora/Tiny Core/Android
Posts: 93
Rep:
|
You may want to try installing yum-2.0.5-0.9.2.legacy.noarch.rpm which works well on RH 9. It can be found at http://fedora.server4you.net/fedoral...y-utils/i386/.
This yum version has dependencies as shown and if you need anything else, let me know which rpms you need and I can help with those:
Requires :
/usr/bin/python
rpmlib(CompressedFileNames) <= 3.0.4-1
rpm-python => 4.1.1
/bin/sh
python
libxml2-python
/bin/bash
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
config(yum) = 0:2.0.5-0.9.2.legacy
/sbin/chkconfig
/sbin/service
Good Luck and let me know if you need anything else,
John
|
|
|
05-06-2005, 04:22 PM
|
#3
|
LQ Newbie
Registered: May 2005
Posts: 5
Original Poster
Rep:
|
Hey thanks!!!
I'm gonna try that now! 
tim
|
|
|
05-06-2005, 04:29 PM
|
#4
|
LQ Newbie
Registered: May 2005
Posts: 5
Original Poster
Rep:
|
Hi John,
I've just tried that:
# rpm -i yum-2.0.5-0.9.2.legacy.noarch.rpm
warning: yum-2.0.5-0.9.2.legacy.noarch.rpm: V3 DSA signature: NOKEY, key ID 731002fa
error: Failed dependencies:
libxml2-python is needed by yum-2.0.5-0.9.2.legacy
rpm-python >= 4.1.1 is needed by yum-2.0.5-0.9.2.legacy
So, looks like I need a hand with libxml2-python, rpm-python!
May I take up your offer to help me?  I would really appreciate it!
Thanks!
Tim
|
|
|
05-06-2005, 06:00 PM
|
#5
|
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187
|
You might want to "boot" the YUM problem and look at APT-GET for Red Hat Linux.
If you install that (and it doesn't have the same dependency problems) you could then use it to get YUM and all its dependents.
(One nice thing about Linux is that there is often more than one way to solve a problem.) 
|
|
|
05-06-2005, 06:06 PM
|
#6
|
LQ Newbie
Registered: May 2005
Posts: 5
Original Poster
Rep:
|
Oh great!!!! I'll try just that!
I had considered the possibility to use APT-GET to update the system, but decided not to use it because as far as I could see it wouldn't be able to update the php/plesk setup. I never considered trying to install yum with it. Thanks!
Tim
|
|
|
05-07-2005, 10:11 AM
|
#7
|
Member
Registered: Aug 2003
Location: Richardson, Texas
Distribution: Debian/Fedora/Tiny Core/Android
Posts: 93
Rep:
|
Yum Dependencies Downloads
|
|
|
05-07-2005, 08:34 PM
|
#8
|
LQ Newbie
Registered: May 2005
Posts: 5
Original Poster
Rep:
|
Thanks for all your help folks!!! All is working now!
 I'm so thankful!!!!!
Tim
|
|
|
All times are GMT -5. The time now is 02:06 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|