Click to See Complete Forum and Search --> : Error using rpm - i
sfingerh
07-29-2002, 10:26 PM
Hi,
I'm trying to install gcc/cc/cpp etc on my RedHat7.3 because it's not installed.
I downloaded a lot of packages that I'm suposed to use (dependencies).
Now to my problem
As root, I write rpm -i gcc-3.2-0.1.src.rpm
and get
error: cannot create %sourcedir /usr/src/redhat/SOURCES
What does it mean?
Is there another not so complicated (for a newbie) way to install gcc/cpp/c++ etc on RedHat.
Someone said it's not installed as default with RH7.3.
Thanks
finger
fancypiper
07-29-2002, 10:32 PM
Welcome to dependency heck. :)
I suggest downloading and installing Red Carpet (http://www.ximian.com/products/ximian_red_carpet/download.html) and use it for easier package management as it does a fair to good job of resolving dependencies.
endoalpha
07-29-2002, 11:14 PM
Do you have the install cds for RH 7.3? Why don't you use those and install the binary versions of gcc? You are fooling with the source rpm. I am willing to bet you will never get gcc3.2 to successfully compile, so you are better off using the gcc that came with your cds.
The error you report means that /usr/src/redhat/SOURCES directory can not be created. Maybe I am brilliant, but I thought it was rather obvious.
sfingerh
07-29-2002, 11:29 PM
Thanks.
I'm trying RedCarpet
To the 2nd post. How can I install the binary?
All my trouble :-( begun when I tried to install mutella using ./configure
I get this messages:
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
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 cc found in $PATH
And that's why I'm trying rpm.
I'm beginner and maybe I'm wrong from the beginning.
Thanks
finger
fancypiper
07-29-2002, 11:37 PM
You didn't install the developmental packages when you installed, so you can't compile programs.
Stick to red carpet for package management until you get a handle on Linux.
If you are just getting started, maybe it would be easier if you did an expert install and choose the development packages on install.
If you got a fast connection though, stick with what you have and install through red carpet.
mdwatts
07-30-2002, 06:02 AM
As endoalpha posted, you are attempting to install the source (src.rpm) rpm package and not the binary (i386.rpm).
You can most likely restart the Redhat install, select upgrade and then select the 'development packages'.