Compiling source code

  • Thread starter okwatia
  • Start date
  • #1
15
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?
 

Answers and Replies

  • #2
mgb_phys
Science Advisor
Homework Helper
7,819
15
What is the command line you are typing?
 
  • #3
mgb_phys
Science Advisor
Homework Helper
7,819
15
'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
 
  • #4
15
0
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.
 
  • #5
mgb_phys
Science Advisor
Homework Helper
7,819
15
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"
 
  • #6
1
0
Did you try running it as a superuser (using sudo) ?
 

Related Threads on Compiling source code

  • Last Post
Replies
16
Views
3K
Replies
7
Views
3K
  • Last Post
Replies
7
Views
7K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
1
Views
4K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
14
Views
5K
  • Last Post
Replies
4
Views
858
Replies
1
Views
17K
Replies
2
Views
13K
Top