Linux - NewbieThis 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!
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.
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
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.
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"?
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.
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:
[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.
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
Last edited by NinetyFive; 01-25-2008 at 01:23 PM.
Reason: Added PATH
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.