1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Compiling source code

  1. Apr 26, 2009 #1
    Whenever i try to compile source code of programs in linux (MINT) it tells me that it cannot compile executables. Can someone help me?
     
  2. jcsd
  3. Apr 26, 2009 #2

    mgb_phys

    User Avatar
    Science Advisor
    Homework Helper

    What is the command line you are typing?
     
  4. Apr 29, 2009 #3

    mgb_phys

    User Avatar
    Science Advisor
    Homework Helper

    'configure' is a special command script that works out what kind of Unix you have and builds a makefile.
    I've never heard of that error - can you post the exact error message?
    Did you write the config script - where was it from
     
  5. Apr 30, 2009 #4
    This is the error message:

    checking build system type... i686-pc-linux-gnulibc1
    checking host system type... i686-pc-linux-gnulibc1
    checking for gcc... gcc
    checking for C compiler default output file name...
    configure: error: C compiler cannot create executables
    See `config.log' for more details.
     
  6. Apr 30, 2009 #5

    mgb_phys

    User Avatar
    Science Advisor
    Homework Helper

    Check the command in config.log
    It could be that you don't have write permission to the dir that you are running this in.
    Other people suggested that it occurs if you don't have gcc AND g++ installed, or have a faulty install.
    On ubuntu/debian try "apt-get install build-essentials"
     
  7. May 3, 2009 #6
    Did you try running it as a superuser (using sudo) ?
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Compiling source code
Loading...