Find the answer to your Linux question:
Results 1 to 5 of 5
I'm trying to install something and I get this error: configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. I've read that gcc is used, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Posts
    2

    C compiler problems


    I'm trying to install something and I get this error:
    configure: error: no acceptable C compiler found in $PATH
    See `config.log' for more details.

    I've read that gcc is used, however, when I go to install it I get this message:
    # urpmi gcc
    The following packages can't be installed because they depend on packages
    that are older than the installed ones:
    glibc-devel-2.4-7mdv2007.0
    gcc-4.1.1-3mdk
    Continue installation anyway? (Y/n)

    What should I do then?

  2. #2
    Linux User tech_man's Avatar
    Join Date
    Jan 2007
    Location
    USA
    Posts
    385
    Press "y" and hit enter?
    'Tis better to be silent and be thought a fool, than to speak and remove all doubt.'
    --Abraham Lincoln

  3. #3
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    Did you setup the various main, contrib, updates and plf repos listed at easyurpmi for the version of Mandriva you are running? If so, then you have all the required sources and entering the commands below may help,
    Code:
    #urpmi.update -a
    #urpmi --auto-select --auto
    #urpmi gcc

  4. $spacer_open
    $spacer_close
  5. #4
    IO3
    IO3 is offline
    Just Joined! IO3's Avatar
    Join Date
    Jun 2006
    Posts
    67
    Try installing from the install DVD.

  6. #5
    Linux Newbie
    Join Date
    Jul 2005
    Posts
    180
    The following packages can't be installed because they depend on packages
    that are older than the installed ones:
    glibc-devel-2.4-7mdv2007.0
    gcc-4.1.1-3mdk
    That is interesting-- the warning in a round about way told you that gcc is already installed!

    I would do this

    Code:
     which gcc
    If it says /usr/bin/gcc for instance, then /usr/bin better be in your PATH.

    Code:
    echo $PATH
    Is one of the paths correspond to the directory where gcc is? If not you can add the directory to your profile globally and permanently by editing /etc/profile or locally in your .bashrc file which should be in your home directory. You just add another colon and then the path on the line
    Code:
    PATH=blah
    .

    For instance if it says
    Code:
    PATH=/usr/sbin
    then change it to
    Code:
    PATH=/usr/sbin:/usr/bin
    . This will mostly likely be in /etc/profile.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •