Results 1 to 6 of 6

Thread: C compiler can't create executables

  1. #1
    Join Date
    Nov 2009
    Posts
    518

    C compiler can't create executables

    Hello ,
    I am a new guy to operate the Linux world (Red Hat 8.0 kernal 2.4.18-14 ) and when I would like to be able to use this system but when trying to install almost anything I got different error messages trying to configure.

    during running ./configure gives me these errors and it says that a local through auto header is missing and gcc isn't there and neither is cc and I am getting such error :

    configure: error: installation or configuration problem: C compiler cannot create executable's.

  2. #2
    Join Date
    Jan 2008
    Posts
    3,388

    C compiler can't create executables

    hey !
    You are running with linux (Red hat Linux ) and have you installed the build-essential package,The build-essential is capable to restrict this error.try this one and post me the contents generated by the "config.log".

    Now try to use this command as -

    Code:
    sudo apt-get install build-essential

  3. #3
    Join Date
    May 2008
    Posts
    4,085

    C compiler can't create executables

    I think also the same that you need to install the build-essential to get away from this error.If you are getting the same error then you need to take a look on the log file,which type of error it is generating.

    If your log file generate this content like -

    configure:559: checking for a BSD compatible install
    configure:612: checking whether build environment is sane
    configure:669: checking whether make sets ${MAKE}
    configure:715: checking for working aclocal
    configure:728: checking for working autoconf
    configure:741: checking for working automake
    configure:754: checking for working autoheader
    configure:767: checking for working makeinfo
    configure:785: checking for gcc
    configure:815: checking for cc


    Then you can use another utility called libc6-dev g++ gcc which takes the command form as follows -

    Code:
    apt-get install toolchain-source
    apt-get install gcc-4.0

  4. #4
    Join Date
    Apr 2008
    Posts
    3,267

    C compiler can't create executables

    Hello,
    I did a lot of search on the Internet to find the solution related to this error and got something which is quite easy and can help you to restrict the error.

    Add the following line into the source:
    Code:
    n -s /usr/bin/c++ /usr/bin/g++
    - Result: ln: "/usr/bin/g++": Filen finns
    ln -s /usr/bin/cc /usr/local/bin/gcc
    ln -s /usr/bin/c++ /usr/local/bin/g++
    ln -s /usr/bin/cc /usr/bin/gcc
    - Result: ln: "/usr/bin/gcc": Filen finns

  5. #5
    Join Date
    Nov 2009
    Posts
    518

    C compiler can't create executables

    I installed the gcc but getting some error during installation and implementation,would you tell me the exact way and if you have any possible solution to view this error.

    The error demo generated by the source like this -

    sudo apt-get install libc6-dev g++ gcc
    Password:
    Reading Package Lists... Done
    Building Dependency Tree... Done
    libc6-dev är redan den senaste versionen.
    g++ är redan den senaste versionen.
    gcc är redan den senaste versionen.
    0 uppgraderade, 0 nyinstallerade, 0 att ta bort och 0 ej uppgraderade.


    But ,there is nothing gonna happen after this and having the same problem as before.

  6. #6
    Join Date
    Apr 2008
    Posts
    3,295

    C compiler can't create executables

    Before executing the above suggested technique by the Solomon and now you are getting the same error then you should try to configure and declare the environmental variables.

    You need to define the environmental variable as suggested below to execute the Solomon script.Just define the variable from the prompt using export command -

    set the CC vble

    $export CC=gcc

Similar Threads

  1. Replies: 4
    Last Post: 19-11-2010, 07:34 AM
  2. Autorun CD using Batch file for Multiple Executables
    By DANIEL 602 in forum Windows Software
    Replies: 5
    Last Post: 19-01-2010, 09:54 PM
  3. How do I convert my C programs to executables?
    By Damien25 in forum Software Development
    Replies: 5
    Last Post: 16-01-2010, 08:29 PM
  4. error: C++ compiler cannot create executables
    By Unix'EM in forum Operating Systems
    Replies: 4
    Last Post: 15-09-2009, 06:27 PM
  5. Problem with running Executables
    By Suzane in forum Software Development
    Replies: 2
    Last Post: 17-04-2009, 03:34 PM

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,751,813,078.72742 seconds with 16 queries