System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

configure: error: no acceptable C compiler found in $PATH

Rohit Nagare
Frequent Advisor

configure: error: no acceptable C compiler found in $PATH

Hi,
I am Installing Mondo Tool in Red Hat Linux 4.

[root@red mondo-2.2.9]# ./config
config.guess config.sub configure
[root@red mondo-2.2.9]# ./config
config.guess config.sub configure
[root@red mondo-2.2.9]# ./config
config.guess config.sub configure
[root@red mondo-2.2.9]# ./configure
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 a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/software/mondo-2.2.9':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.


I get The configure: error: no acceptable C compiler
Please help.
Thanks Regards
Rohit
7 REPLIES
Steven Schweda
Honored Contributor

Re: configure: error: no acceptable C compiler found in $PATH

Install a C compiler (GCC)?

echo $PATH
Rohit Nagare
Frequent Advisor

Re: configure: error: no acceptable C compiler found in $PATH

Hi Steven,

I Have installed GCC.

[root@red software]# rpm -qa | grep gcc
libgcc-3.4.3-9.EL4

and after that same erroe is coming.

configure: error: no acceptable C compiler found in $PATH


regards
Rohit

Steven Schweda
Honored Contributor

Re: configure: error: no acceptable C compiler found in $PATH

> [root@red software]# rpm -qa | grep gcc
> libgcc-3.4.3-9.EL4

I doubt that "libgcc" is the whole compiler
kit. I'd look for something like
"gcc-.something".

If a command like "gcc -V" doesn't work for
you interactively, then either you don't have
the compiler installed, or else your PATH
misses it. Either way, a "configure" script
may be expected to fail.

> echo $PATH

Still wondering. (But if "libgcc" is as
close as you get to "gcc", then I'd worry
about the PATH last, after you've installed
the compiler.)
Rohit Nagare
Frequent Advisor

Re: configure: error: no acceptable C compiler found in $PATH

Yes steven i have installed GCC

u i am also in the dout that $path is not set.What do You think.

Steven Schweda
Honored Contributor

Re: configure: error: no acceptable C compiler found in $PATH

> Yes steven i have installed GCC

You may believe that, but I see no evidence
of it.

> u i am also in the dout that $path is not
> set.What do You think.

I think that I have twice asked for the
result of "echo $PATH", and gotten no
response. On my Debian system:

debi# type gcc
gcc is /usr/bin/gcc

so, as I said, I'd worry less about PATH than
I would about getting the compiler installed.


A Google search for "libgcc-3.4.3-9.EL4", for
example, found this:

http://rpm2html.osmirror.nl/white-box-linux/4/en/os/i386/WhiteBox/RPMS/libgcc-3.4.3-9.EL4.i386.html

Which says this about this kit:

This package contains GCC shared
support library which is needed e.g.
for exception handling support.

Do _you_ see "compiler" in there? I don't.
macosta
Trusted Contributor

Re: configure: error: no acceptable C compiler found in $PATH

What Steven is telling you is spot on. You need to install gcc. You may need other dependencies installed as well, which "configure" will tell you as well. It clearly says no gcc, no cc, and no cl.exe.

On my RHEL4 system, this is what I see when I run the same rpm query:
--
$ rpm -qa |grep cc
libgcc-3.4.6-11
gcc-3.4.6-11
--

Please listen to Steven, or lacking that, provide the information he requested (the contents of $PATH.) I also don't think it's just a PATH issue, because configure found binaries in both /bin and /usr/bin, but if you're going to say that isn't the issue, take the few moments to run the command and prove it.

After all that, install gcc.
Nido
Trusted Contributor

Re: configure: error: no acceptable C compiler found in $PATH

Rohit,Kaise ho?

>>>configure: error: no acceptable C compiler found in $PATH
libgcc is a shared support library for running gcc. You don;t have gcc installed properly.
Install gcc either from the media or download it. Take referrence in the below output On My system:

]# rpm -qa |grep -i gcc
gcc-3.4.6-11
compat-gcc-32-3.2.3-47.3
libgcc-3.4.6-11
compat-libgcc-296-2.96-132.7.2
gcc-c++-3.4.6-11
gcc-g77-3.4.6-11
gcc-java-3.4.6-11
compat-gcc-32-c++-3.2.3-47.3
2) # which gcc
/usr/bin/gcc
3)]# gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-11)


Cheers!!
" Let Villagers Be Happy!! "