LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   compiler question... (https://www.linuxquestions.org/questions/linux-newbie-8/compiler-question-62852/)

toadbark 05-31-2003 07:20 AM

compiler question...
 
I've tried to install a couple of programs, but when I enter "./configure",
I get the following message...

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
creating target.h - canonical system defines
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for gawk... (cached) gawk
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

Any help is appreciated.

dorian33 05-31-2003 07:34 AM

It looks like you have no compiler installed or the environmental variable $PATH does not contain the path to the gcc.
Have you tried do 'configure' as root?

toadbark 05-31-2003 07:38 AM

...no I haven't.

I'll give that a shot.

Thanks. :D

toadbark 05-31-2003 07:53 AM

...hmmm...I get the same message...

Are there different compilers ?
How would I find and install one, or should there be one on my distro disk ?

( btw...thanks, dorian33, it was worth a try :) )

dorian33 05-31-2003 08:03 AM

generally almost everything (all general system and user utilities) should be installed as root;
regarding the RH9 (sorry, I don't remember too much :) look for .rpm file on your distro CDs with gcc in the name and just install it.

toadbark 05-31-2003 08:09 AM

Okay, I'll take a poke around on the CDs and see what I find.

Thanks.

fataldata 05-31-2003 04:52 PM

toadbark,
I am having a similar problem w/ my RH8 System. I have found an rpm called 'gcc-3.2-7.src.rpm' and have attempted to install it several times with 'rpm -ivf gcc-3.2-7.src.rpm'
My terminal echos 'gcc-3.2-7' and returns to the command prompt. However then I try to find it or try 'rpm -qa |grep gcc' it's not there? I also typed gcc -v and only get 'command not found'. I'm stumped. I did find the src rpm on my distro discs, so hopefully you will as well. Let me know if you make progress.
TIA

toadbark 05-31-2003 05:01 PM

I ran "Add/Remove Applications", and enabled the default packages in "Developement Tools".
This (apparantly) installed the .gcc thingies.
Worked for me.

Good luck :)

fataldata 05-31-2003 06:36 PM

Hate when i figure out my problem right after i post
 
Way to go toadbark,
I was rpm 'ing the src code for the compiler, instead of the binary for my RH version. Still working out some dependencies but I'm much closer.


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