LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 01-24-2008, 04:14 PM   #1
NinetyFive
LQ Newbie
 
Registered: Jan 2008
Location: Nottinghamshire
Posts: 5

Rep: Reputation: 0
Unhappy Installing yum - Endless failed dependencies


Hi. Im a newbie, and im trying to install yum on a VPS that is running Centos4. I have a list of packages:

python-sqlite-1.1.7-1.2.1.i386.rpm
python-urlgrabber-2.9.8-2.noarch.rpm.1
yum-2.4.3-4.el4.centos.noarch.rpm
python-elementtree-1.2.6-5.el4.centos.i386.rpm
python-urlgrabber-2.9.8-2.noarch.rpm
sqlite-3.3.6-2.i386.rpm

When i run the command to install I get the following:

[root@9t5 yum]# rpm -Uvh *rpm
warning: python-elementtree-1.2.6-5.el4.centos.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
error: Failed dependencies:
libexpat.so.0 is needed by python-elementtree-1.2.6-5.el4.centos.i386
libreadline.so.4 is needed by sqlite-3.3.6-2.i386
libxml2-python is needed by yum-2.4.3-4.el4.centos.noarch
rpm-python is needed by yum-2.4.3-4.el4.centos.noarch
yum-metadata-parser is needed by yum-2.4.3-4.el4.centos.noarch
[root@9t5 yum]#

I then try and find these and install but they are always the wrong ones, or i just end up in an endless loop of missing dependencies. Can someone point me in the right direction at what I am doing wrong or let me know if there is a simpler way to install yum.

Im trying to install yum to update php4 -> 5 as well as various other out of date packages.
Thanks,
9t5.
 
Old 01-24-2008, 07:48 PM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
YUM should already be available by default on CentOS 4. You can check this by doing
Code:
rpm -qa | grep -i yum
 
Old 01-25-2008, 02:14 AM   #3
NinetyFive
LQ Newbie
 
Registered: Jan 2008
Location: Nottinghamshire
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for your reply. I tried that, but it found nothing:

[root@9t5~]# rpm -qa | grep -i yum
[root@9t5~]#
 
Old 01-25-2008, 04:02 AM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Are you sure you are running CentOS because as far as I know CentOS 4 did ship with YUM installed by default (unless your hosting provider uninstalled it). What is the output of doing "cat /etc/centos-release"?
 
Old 01-25-2008, 04:09 AM   #5
NinetyFive
LQ Newbie
 
Registered: Jan 2008
Location: Nottinghamshire
Posts: 5

Original Poster
Rep: Reputation: 0
Im guessing the ISP uninstalled it. How can I make sure all the dependencies are there so it can be installed?

Im pretty sure its CentOS4!

[root@9t5 ~]# cat /etc/centos-release
cat: /etc/centos-release: No such file or directory
[root@9t5 ~]#

Thanks.

Last edited by NinetyFive; 01-25-2008 at 04:10 AM.
 
Old 01-25-2008, 04:13 AM   #6
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Try
Code:
cat /etc/*-release
 
Old 01-25-2008, 04:17 AM   #7
NinetyFive
LQ Newbie
 
Registered: Jan 2008
Location: Nottinghamshire
Posts: 5

Original Poster
Rep: Reputation: 0
[root@9t5 ~]# cat /etc/*-release
CentOS release 4.5 (Final)
[root@9t5 ~]#

Phew! Please something was returned, and its CentOS!!
 
Old 01-25-2008, 12:04 PM   #8
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Whoever setup the server must have removed yum because I've used versions 4.x as well as 5.x and yum is there by default. Anyway to resolve your dependency problems, you need to download and install readline, rpm-python, libxml2-python, yum-metadata-parser and expat.
 
Old 01-25-2008, 01:18 PM   #9
NinetyFive
LQ Newbie
 
Registered: Jan 2008
Location: Nottinghamshire
Posts: 5

Original Poster
Rep: Reputation: 0
Ok, I found some of those packages but got stopped at the first hurdle. I need a c compiler to install the packages, but then I need a c compiler to install a c compiler. Why are these things so complicated?

All the websites that I have found on how to install a c compiler tell me to use yum. But im trying to install yum in the first place and thats why I need the c compiler.

To cut a long and frustrating story short, I get this:
Code:
[root@9t5 readline-5.2]# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu

Beginning configuration for readline-5.2 for x86_64-unknown-linux-gnu

checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
[root@9t5 readline-5.2]#
So, I know i need a c compiler, but how can I install one? Can someone point me in the right direction?

Here's my $PATH
//sbin://bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

Last edited by NinetyFive; 01-25-2008 at 01:23 PM. Reason: Added PATH
 
Old 01-26-2008, 11:02 AM   #10
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
You should have started a new thread because your question is not related to the original one. You need to install gcc using yum e.g. "yum install gcc". It seems like development tools were not installed when the system was setup.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OOo, yum, rpms....uninstall, reinstall, failed dependencies....HELP!!! kalico Linux - Software 17 07-11-2006 11:03 PM
Yum failed dependencies? jojojo Linux - Newbie 2 06-15-2006 02:02 PM
Failed dependencies installing MPlayer qwerty Linux - Software 7 10-24-2005 04:10 PM
failed dependencies k3b and yum for RHEL3 marcbachman Linux - Software 0 12-10-2004 06:05 AM
Failed dependencies installing samba haysdb Linux - Newbie 5 05-16-2003 02:24 PM


All times are GMT -5. The time now is 08:15 PM.

Main Menu
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