Jump to content
 English      
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
     Forums advanced search
HP.com Home
IT Resource Center Forums > Linux > system administration

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

» 

IT Resource Center

» Login
» Register
» My profile
» Search knowledge base
» Forums
» Patch database
» Download drivers, software and firmware
» Warranty check
» Support Case Manager
» Software Update Manager
» Training and Education
» More maintenance and support options
» Online help
» Site map

Member icons
 
 HP moderator  HP moderator
 Expert in this area  Expert in this area
Member status
ITRC Pro ITRC Pro
250 points
ITRC Graduate ITRC Graduate
500 points
ITRC Wizard ITRC Wizard
1000 points
ITRC Royalty ITRC Royalty
2500 points
ITRC Pharaoh ITRC Pharaoh
7500 points
Olympian Olympian
20000 points
1-Star Olympian 1-Star Olympian
40000 points
2-Star Olympian 2-Star Olympian
80000 points
»  How to earn points
»  Support forums FAQs
Question status
Magical answer Magical answer
Message with a response that solved the author's question
Favorites status
Add to my favorites Add to my favorites
Delete from my favorites Delete from my favorites
This thread has been closed Thread closed
 

Content starts here
   Create a new message    Receive e-mail notification if a new reply is posted  Reply to this message
Author Subject: configure: error: no acceptable C compiler found in $PATH      Add to my favorites
Rohit Nagare
Nov 7, 2009 04:19:24 GMT   

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
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click here


Sort Answers By: Date or Points
Steven Schweda This member has accumulated 7500 or more points
Nov 7, 2009 05:35:37 GMT    Unassigned

Install a C compiler (GCC)?

      echo $PATH
Rohit Nagare
Nov 7, 2009 05:42:33 GMT    N/A: Question Author

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 This member has accumulated 7500 or more points
Nov 7, 2009 06:21:49 GMT    Unassigned

> [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-<version>.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
Nov 7, 2009 06:26:19 GMT    N/A: Question Author

Yes steven i have installed GCC

u i am also in the dout that $path is not set.What do You think.
Steven Schweda This member has accumulated 7500 or more points
Nov 7, 2009 16:08:02 GMT    Unassigned

> 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
Nov 7, 2009 23:03:04 GMT    Unassigned

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 This member has accumulated 500 or more points
Nov 8, 2009 16:42:24 GMT    Unassigned

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!!
 
Create a new message    Receive e-mail notification if a new reply is posted   Reply to this message
 
 
Printable version
Privacy statement Using this site means you accept its terms
© 2009 Hewlett-Packard Development Company, L.P.