LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-03-2005, 05:20 PM   #1
irlkersten
LQ Newbie
 
Registered: May 2005
Posts: 5

Rep: Reputation: 0
Question 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.
 
Old 05-06-2005, 02:56 PM   #2
j_75080
Member
 
Registered: Aug 2003
Location: Richardson, Texas
Distribution: Fedora/Tiny Core/Android
Posts: 93

Rep: Reputation: 15
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
 
Old 05-06-2005, 04:22 PM   #3
irlkersten
LQ Newbie
 
Registered: May 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Hey thanks!!!
I'm gonna try that now!
tim
 
Old 05-06-2005, 04:29 PM   #4
irlkersten
LQ Newbie
 
Registered: May 2005
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 05-06-2005, 06:00 PM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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.)
 
Old 05-06-2005, 06:06 PM   #6
irlkersten
LQ Newbie
 
Registered: May 2005
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 05-07-2005, 10:11 AM   #7
j_75080
Member
 
Registered: Aug 2003
Location: Richardson, Texas
Distribution: Fedora/Tiny Core/Android
Posts: 93

Rep: Reputation: 15
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
 
Old 05-07-2005, 08:34 PM   #8
irlkersten
LQ Newbie
 
Registered: May 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for all your help folks!!! All is working now!

I'm so thankful!!!!!

Tim
 
  


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
FC4: "yum update libcddb" fails -- missing dependancy problem: MattCrypto Fedora 2 07-28-2005 06:47 PM
yum update and SpamAssassin dependancy vara Red Hat 1 05-17-2005 09:55 PM
Fast Yum Mirror Settings For Yum ( RH9 ) fortezza Red Hat 1 06-11-2004 04:24 PM
Can I install Wine using YUM in RH9? gulo Red Hat 1 04-20-2004 02:53 PM
xmms install/dependancy problems cdavidson Linux - Newbie 1 02-17-2004 01:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:09 AM.

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
Open Source Consulting | Domain Registration