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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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 08: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??