<---- template headericclude ----->
Search Path for compiler executable
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2010
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Search Path for compiler executable

    Hi everybody. I installed codeblocks - a cross-platform IDE which requires a C/C++ compiler. The GCC GNU compiler was detected. But when I tried to run the program, many lines were displayed in the terminal window out of which one particular line was disturbing:can't find compiler executable in your search path(GNU GCC compiler)

    Where is the gcc compiler located?

    Any help would be highly appreciated.

  2. #2
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,903
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Code:
    BASH:~/-> which gcc
    /usr/bin/gcc

  3. #3
    Join Date
    Jan 2010
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have searched in the path /usr/bin/. There is no gcc folder there.
    One more thing, while trying to run the configure command, I got a message as under:
    looking for gcc ...no gcc
    looking for cc ... no cc.
    Does that mean there is no gcc compiler installed?

  4. #4
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,903
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Yes, that most certainly means you do not have ggc (the C compiler) installed. You can install it with:
    Code:
    yum install gcc
    I would suggest:
    Code:
    yum install gcc libgcc gcc-c++ compat-gcc-34 compat-gcc-c++-34 compat-libgcc-296
    One way to check whether a package is installed, if you know the package name, is with using rpm:
    Code:
    rpm -q gcc
    gcc-4.4.2-20.fc12.i686
    If the package is installed, it will display the name-version.arch as shown above. If it's not installed, it will tell you:
    Code:
    rpm -q foo
    package foo is not installed

Similar Threads

  1. no acceptable C compiler found in $PATH
    By Drkonafa in forum Using Fedora
    Replies: 2
    Last Post: 17th March 2013, 06:01 AM
  2. Replies: 6
    Last Post: 8th July 2009, 02:18 PM
  3. Search path in KDE
    By staham in forum Using Fedora
    Replies: 3
    Last Post: 15th January 2007, 08:59 PM
  4. Executable search paths
    By jsmaye in forum Using Fedora
    Replies: 3
    Last Post: 6th April 2005, 04:14 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]