LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ./configure cant find a compiler (https://www.linuxquestions.org/questions/linux-software-2/configure-cant-find-a-compiler-103988/)

habitue 10-14-2003 07:21 PM

./configure cant find a compiler
 
Im sort of a newb, but I'm trying to compile a program, but when I do the ./configure command it tells me

checking for cc... no
checking for gcc... no
configure: error: no acceptable C compiler found in $PATH

at the end of a long list of checks.

Do I have to download a new compiler?
do I have to move this folder to a specific area before compiling?

linuXBOX 10-14-2003 07:25 PM

download gcc from here
http://gcc.gnu.org/

habitue 10-14-2003 07:45 PM

I downloaded the binary from there, but It's a weird file type Redhat 9 apparently doesnt know how to deal with. it has the extension .rpm4.tar.Z

what do I do to get this open?

linuXBOX 10-14-2003 07:52 PM

try this ftp link
ftp://mirrors.rcn.net/pub/sourceware...ses/gcc-3.3.1/

hw-tph 10-14-2003 07:52 PM

Get the Redhat package instead. It's on the CD-ROMs. You will probably have to install a lot of other packages gcc depends on in order to get a functional build environment.

If you don't have the CD's you can get it here: http://ftp.redhat.com/pub/redhat/lin...2.2-5.i386.rpm

Håkan

hw-tph 10-14-2003 07:55 PM

linuXBOX, are you trying to help or are you just being smart? Obviously he would need a compiler to compile the source for gcc, so going with a pre-packaged version (rpm) should be a lot easier.

Håk

linuXBOX 10-14-2003 08:02 PM

that's my bad i totally forgot about that, I seriously am trying to help or I wouldn't have replied to the thread in the first place.

habitue 10-14-2003 08:10 PM

LOL, here I am... downloading the file, and then when I unpack it Im thinking.. wait. Don't I need to compile this? How do I do that when this is the compiler!?!?! I came back here see what was going on and then I saw those posts.

anyway, no hard feelings, it was pretty funny when I realized it.

So where is the file on the cds?

habitue 10-14-2003 08:22 PM

ok, I found the file on the second cd, and it's (thankfully) an rpm, but when I try to run it, it says it's checking for package dependencies and shows a staus bar, but when the bar runs out, it just sort of gives up. Nothing happens

linuXBOX 10-14-2003 08:44 PM

I've found the gui rpm to be very touchy and irritating...try it from a command line

su
password
rpm -ivh -v "FILENAME"
(the double v gives more verbose information)

After it finishes, you can try to install it again and it should say "so-and-so is already installed".

habitue 10-14-2003 09:10 PM

wow, people weren't kidding when they said it was difficult to install things on linux...

oh well, whatever it takes, right?

linuXBOX 10-14-2003 09:13 PM

Once you get adjusted to linux, it becomes less and less difficult. It's like everything in this world!

habitue 10-14-2003 10:00 PM

oh boy, it's getting mighty convoluted now...

Let's go to the replay:

gcc-c++-3.2.2-5.i386.rpm wont run because it needs libstdc++-devel-3.3.1-6
libstdc++-devel-3.3.1-6.i386.rpm wont run because it needs libstdc++-3.3.1-6
libstdc++-3.3.1-6.i386.rpm wont run because it needs libgcc_s.so.1(GCC_3.3)
I'm not sure where to get that last file, but a hunch I have is that it's in this: libgcc-3.3.1-1.i386.rpm
however that won't run do to this error message: file /lib/libgcc_s.so.1 from install of libgcc-3.3.1-1 conflicts with file from package
libgcc-3.2.2-5


um... yeah.


Any suggestions? is there an rpm somewhere that maybe... I dont know... includes ALL of the files it requires to be installed?

linuXBOX 10-14-2003 10:15 PM

are those files in the disc? if so rpm all at once...

habitue 10-14-2003 10:22 PM

nope, I had to find them on RPM search... maybe some of the RPMs on the disk contain the files that I need, but I have no way of knowing.. also, I dont know how to rpm everything at once off the disk, and even if I did, I wouldn't want everything on the disk taking up my drive with stuff Ill never use... what did you do to get a compiler on your system? Did you have to go through this? did it get installed with the OS? what am I doing wrong here...

btw.. continuing this neverending chain of RPMs leads me (perhaps not too surprisingly) to find out that the end file that is required, requires one of the earlier files that depends on it. It's some big wacky loop of neverending headaches and logical impossibility...


All times are GMT -5. The time now is 12:06 PM.