Results 1 to 4 of 4

Thread: Problem installing GCC compiler

  1. #1
    Join Date
    Nov 2009
    Posts
    9

    Problem installing GCC compiler

    I am not able to install a C compiler. When I try to install it from the source code, I get the response:

    *** The command 'cc -o conftest -g conftest.c' failed.
    *** You must set the environment variable CC to a working compiler.
    [root@localhost gcc]#

    I am struggling to get my machine to accept/recognize/find/install a c compiler. But the things are not going my way. Then I tried installing precompiled versions. It ended with command:
    'apt-get install gcc',
    which seemed to work. However, upon re-trying to install openbox, it still failed the c compiler check.

    I don't get it. Any suggestions? Are there other compilers that I can get?

  2. #2
    Join Date
    Nov 2005
    Posts
    1,323

    re: Problem installing GCC compiler

    I would like to suggest you to try this :

    rpm -qa | grep gcc.

    This command will show you the Version of GCC. Also it will tell you whether GCC is on your boxen. You have to just plugin anything that you want and if it is already installed this command will find it. The command

    rpm -qi gcc

    will give you more details about GCC.

  3. #3
    Join Date
    Oct 2005
    Posts
    2,393

    re: Problem installing GCC compiler

    Your output seems like you are missing the library. This "The command 'cc -o conftest -g conftest.c' failed" is failing because the compiler is not able to compile the program. For this you will need to figure out what this Library is and where to insert that library so that Compiler can find it. You can also try to add library and include directory to the project options.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    re: Problem installing GCC compiler

    Even I was having the similar issue. When I googled I found some stuff mentioning that the development kit should have valid license code, because you need native C compiler to build GCC compiler. I know this thing doesn't make much sense. Try to import your files from the library correctly. Otherwise do fresh installation of C.

Similar Threads

  1. ifort compiler problem
    By betty john in forum Software Development
    Replies: 4
    Last Post: 16-12-2010, 06:28 PM
  2. ifort compiler problem under Ubuntu
    By Freeza 2 in forum Software Development
    Replies: 6
    Last Post: 25-09-2010, 09:10 PM
  3. Replies: 6
    Last Post: 25-09-2010, 07:27 PM
  4. problem installing intel fortran compiler on Mac Pro
    By Hibiscus5 in forum Motherboard Processor & RAM
    Replies: 3
    Last Post: 22-09-2010, 01:41 PM
  5. Best C Compiler
    By kyosang in forum Software Development
    Replies: 3
    Last Post: 30-12-2009, 09:18 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,271,811.15963 seconds with 17 queries