configure: error: C compiler cannot create executables
FedoraThis forum is for the discussion of the Fedora Project.
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.
First of all, check where you are trying to compile the program. Do you have execution rights in that partition. A globally writable partition may be mounted with the "noexec" option, which is a good thing.
If you saved the tarball in your home directory then the answer is yes.
Second, check the output of: gcc -v
look for "libexecdir=" and see if it matches.
The tarball was extracted to my home dir so yes I have write permissions. The output of gcc -v is as follows, there is no mention of "libexecdir="? I take it this should be set? How do you set this if it needs to be? I removed and reinstalled gcc via yum but it made no difference.
Have you ben able to successfully compile a package before? Is this the currect gcc version for your distro? The package should have been build with the --libexedir= value already, unless your value would be the default and so building gcc with this "./configure" option would be redundant. Check the location of the "cc1" program using the rpm from your install disk. rpm -q --filesbypkg <full/path/name/to/the/gcc/rpm/use/auto/completion/gcc-<version>.rpm> | grep cc1 or examine the package in kpackage.
I'm sorry, on my system, this file is provided by the cpp package.
Hello every one..
I am trying to configure libetpan but I am getting the same problem.. configure error: C compiler cannot create executables.. pls help me..
I m using Fedora 16 .. gcc an g++ both installed in /usr/local/ccache..
it is not solved by doing apt-get install build=essential.. Showing no such commands apt-get
please help me..
Thanks in advance..
Last edited by yashdesai7; 02-22-2012 at 07:06 AM.
I came to know about apt after I posted.. do I need to install libetpan as a Root.. ??
I need to install it as a Local user..
I am able to configure libetpan but I am unable to Install it.. Is there any problem with dependencies??