Elliott C. Back: Internet & Technology

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

Posted in Code, Computers & Technology, Linux by Elliott Back on September 14th, 2008.

If you get the following command when trying to build a package from source on linux (Fedora 8 in my case), chances are you don’t have GCC installed:

configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

The solution is simple, run one of the following commands to install a C compiler:

CentOS: yum -y install gcc
Fedora: up2date -i gcc

For me, this installed a few additional helper packages to get me started compiling C-code:

Installing:
 gcc                 x86_64      4.1.2-33             fedora              5.3 M
Installing for dependencies:
 cpp                 x86_64      4.1.2-33             fedora              2.9 M
 glibc-devel         x86_64      2.7-2                fedora              2.4 M
 glibc-headers       x86_64      2.7-2                fedora              599 k
 kernel-headers      x86_64      2.6.26.3-14.fc8      updates-newkey      746 k

This entry was posted on Sunday, September 14th, 2008 at 1:42 pm and is tagged with fedora up2date, fedora 2, c compiler, glibc, fedora 5, c code, cpp, devel, yum, kernel, linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback.

17 Responses to “configure: error: no acceptable C compiler found in $PATH”

  1. Cucu says:

    Thank you so much! This helped me!

  2. ESalcedo says:

    Thanks for the info, yum -y install gcc worked in my Fedora14…

  3. Shiki says:

    Thanks. Good thing this is on top of Google search.

  4. Fabián says:

    Yeah! It worked for me :D

  5. Ketan Vijayvargiya says:

    Great piece of info.. Thanks a ton!

  6. gbs says:

    It not works!

    Loading “rhnplugin” plugin
    Loading “security” plugin
    This system is not registered with RHN.
    RHN support will be disabled.
    Setting up Install Process
    Parsing package install arguments
    No package gcc available.
    Nothing to do

  7. CyberMax says:

    Yes, it works :)

  8. jason says:

    wow… thanks been looking everywhere for this!! much appreciated.

  9. Tom says:

    yum -y install gcc

    This command worked great for me on Fedora

    Thanks

  10. cabletelcom says:

    It works for me CentOS

  11. Info Gaptek says:

    Thanks Elliot!
    It works for me on CentOS.

  12. Newbie says:

    i get this error no acceptable c compiler found in $PATH

    then i tried using
    yum -y install gcc

    its says :
    cannot find valid base URL for repo: update

  13. kodegeek says:

    I’m extremely new on fedora. i tried to execute following
    “up2date -i gcc”

    but it shows following error
    “bash: up2date: command not found”
    can you help?

    Thanks

  14. Lucky says:

    Good information! I'm new to linux.. :)
    I'm using yum for fedora, it works too!
    is there any way to install gcc without yum or up2date? (i mean manually install it)

    thanx!

  15. Peter says:

    Thanks , man !
    This information been really handy to me .

Leave a Reply

Powered by WP Hashcash