Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
08-18-2005, 05:37 AM
|
#1
|
Member
Registered: Apr 2004
Location: Paris
Posts: 44
Rep:
|
configure: error: C++ compiler cannot create executables
i tried to compile aMule with my debian, but i get this problem,
i'm a noob and i just install my debian so there is not a lot of stuffs on it so maybe i need something else, but i dont know what
Thks for help.
Code:
dicou@debian:~/tmp/aMule-2.0.3$ ./configure
checking build system type... i686-pc-linuxlibc1
checking host system type... i686-pc-linuxlibc1
checking target system type... i686-pc-linuxlibc1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name... configure: error: C++ comp
iler cannot create executables
See `config.log' for more details.
|
|
|
08-18-2005, 05:40 AM
|
#2
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464
Rep:
|
You don't have a C++ compiler on there. You need to install the gcc-c++ package (while you're at it, install gcc as well if you haven't already). This can probably be done with apt-get, but I'm not sure how you use it.
|
|
|
05-04-2007, 08:23 PM
|
#3
|
LQ Newbie
Registered: May 2007
Posts: 3
Rep:
|
Compiler can be present.
this can be caused by many problems, as this error is probably meaning that output executable target file cannot be created for some reason.
In my case right now it was caused by wrong compiler parameter.
I use KDevelop for unix (c++ dev tool).
After output "see config.log" I went to look at it; I missed the correct one, as there was one in project directory, which is not the correct one; correct one for me was in /debug/ subdirectory, because I was building Debug target.
inside I searched for the error message, "cannot create executables" and I saw that I was compiling my program with command:
gcc -o target _UNIX -D _UNIX ... something more
problem in my case was the first "_UNIX", which is invalid parameter for compiler. I realized that I have entered it incorrectly into Linker flags in KDevelopment project options. After I removed it everything compiled allright. (second, -D _UNIX is correct, as it specifies something like #define _UNIX for compiler)
So I suggest to see the config.log for your project and find the problem inside it. It can take some time.
|
|
|
05-05-2007, 01:08 AM
|
#4
|
Member
Registered: Apr 2007
Distribution: Gentoo
Posts: 337
Rep:
|
mirex, if you look at the output of the configure script:
Quote:
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
|
|
|
|
05-05-2007, 02:47 AM
|
#5
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464
Rep:
|
Why on Earth did you drag up such an old thread?
|
|
|
05-07-2007, 02:19 AM
|
#6
|
LQ Newbie
Registered: May 2007
Posts: 3
Rep:
|
Hi
sorry for gravedigging, but this was first hit on google when I was looking for "compiler cannot create executables" problem. So I thought that it could help also others, who are looking for solution to this problem.
|
|
|
08-26-2007, 07:32 PM
|
#7
|
LQ Newbie
Registered: Aug 2007
Posts: 1
Rep:
|
Thanks Mirex
I was getting the same "cannot create executables" error while configuring Sopcast for Ubuntu 7.04.
Is it still the first hit off Google for this error message.
In my case I was missing the g++ compiler, and yes, checking config.log is helpful, even if it's not the friendliest thing in the world to read.
|
|
|
08-26-2007, 09:29 PM
|
#8
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824
|
If you're on Ubuntu or Debian as the OP is, install the build-essential package, either through Synaptic or with apt-get install build-essential.
|
|
1 members found this post helpful.
|
06-26-2008, 08:52 PM
|
#9
|
Member
Registered: Sep 2006
Location: Chicago
Distribution: Ubuntu 8.04 - Fedora 9 on an AMD 64bit Machine
Posts: 101
Rep:
|
Thanks, that was very helpful
Hi,
that was very helpful, and I am not sorry for digging it out again, as it is, still, the first hit on Google!
Noha
|
|
|
07-10-2008, 05:14 AM
|
#10
|
LQ Newbie
Registered: Jul 2008
Posts: 1
Rep:
|
Code:
configure: error: GNU gettext tools not found; required for intltool
i have encountered the same problems as the title stated, and the problem was solved...
But the new problem is occur now...
Can anyone tell me what should i do for next??
Thanks
|
|
|
12-22-2008, 05:32 PM
|
#11
|
LQ Newbie
Registered: Dec 2008
Posts: 1
Rep:
|
You can install gettext with the package manager or from the command line:
Quote:
sudo apt-get install gettext
|
|
|
|
05-01-2009, 12:33 PM
|
#12
|
LQ Newbie
Registered: Mar 2007
Posts: 5
Rep:
|
Hi,
Thanks for the help...
Code:
apt-get build-essential
solved this issue for me.
Code:
configure: error: C compiler cannot create executables
See `config.log' for more details.
|
|
|
03-17-2011, 08:16 AM
|
#13
|
Member
Registered: Oct 2007
Posts: 35
Rep:
|
Solved for me
Dear all
Maybe it is too late but i faced this problem today and i solved it by installing g++
sudo apt-get install g++
hope this help any one
Bye
|
|
|
03-17-2011, 09:05 AM
|
#14
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824
|
Yep, g++ is one of the things that installing build-essential will install.
|
|
|
08-10-2011, 08:33 AM
|
#15
|
LQ Newbie
Registered: Oct 2010
Posts: 6
Rep:
|
getting the compiler in CentOS
Hi, thought id share this, as the commands is for Debian, here's the CentOS command to get the compilers:
yum install gcc gcc-c++ kernel-devel
Thanks for the help!!!
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 11:58 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|