YUM - Can't install it!
Sorry, wrong forum!
:newbie: 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) |
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 |
Hey thanks!!!
I'm gonna try that now! :) tim |
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 |
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.) ;) |
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 |
Yum Dependencies Downloads
Hello Tim,
Go to the following web sites for your rpm downloads: http://rpmfind.net/linux/RPM/dag/red...h9.rf.i386.htm ftp://fr.rpmfind.net/linux/rpm.org/r...4.2-1.i386.rpm Good Luck, John |
Thanks for all your help folks!!! All is working now!
:p I'm so thankful!!!!! :p Tim |
All times are GMT -5. The time now is 10:09 PM. |