Compiling Source Code on Linux (MINT) - Assistance Needed!

  • Thread starter Thread starter okwatia
  • Start date Start date
  • Tags Tags
    Code Source
Click For Summary

Discussion Overview

The discussion revolves around issues encountered while compiling source code on Linux Mint, specifically focusing on an error message indicating that the C compiler cannot create executables. Participants are seeking assistance with troubleshooting this compilation problem.

Discussion Character

  • Technical explanation, Debate/contested, Homework-related

Main Points Raised

  • One participant reports an error message during compilation, specifically stating that the C compiler cannot create executables.
  • Another participant asks for the command line being used to compile the code, indicating a need for more information to assist.
  • A third participant explains the role of the 'configure' script in generating a makefile and requests the exact error message to better understand the issue.
  • The error message provided indicates a failure in creating executables, prompting suggestions to check the config.log file for more details.
  • Some participants suggest potential causes for the error, including lack of write permissions in the directory, absence of gcc and g++ installations, or a faulty installation.
  • One participant recommends installing build-essential packages on Ubuntu/Debian systems as a possible solution.
  • Another participant inquires if the user has attempted to run the compilation command as a superuser using sudo.

Areas of Agreement / Disagreement

Participants present multiple potential causes for the compilation issue, indicating that there is no consensus on the exact problem or solution at this time.

Contextual Notes

Limitations include the lack of specific details regarding the user's environment, such as permissions and installed packages, as well as the absence of information from the config.log file.

Who May Find This Useful

Users experiencing similar compilation issues on Linux Mint or other Debian-based systems, as well as those interested in troubleshooting compilation errors related to C programming.

okwatia
Messages
15
Reaction score
0
Whenever i try to compile source code of programs in linux (MINT) it tells me that it cannot compile executables. Can someone help me?
 
Physics news on Phys.org
What is the command line you are typing?
 
'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
 
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.
 
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"
 
Did you try running it as a superuser (using sudo) ?
 

Similar threads

Replies
7
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
6
Views
3K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 29 ·
Replies
29
Views
3K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
7
Views
3K
Replies
59
Views
9K