configure: error: C compiler cannot create executables
Hi,
Getting the following error trying to compile NZBGET: 'checking for C compiler default output... configure: error: C compiler cannot create executables' I've been through numerous threads posted on here for this but don't seem to be getting anywhere. config.log shows the following error: gcc: installation problem, cannot exec 'cc1': No such file or directory cc1 is present it lives here: /usr/libexec/gcc/i386-redhat-linux/4.0.0/cc1 any ideas how to fix this? |
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. |
thanks for the reply jschiwal.
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. [rich@mellow-yellow ~]$ gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --host=i386-redhat-linux Thread model: posix gcc version 4.0.2 20051125 (Red Hat 4.0.2-8) |
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.
<edit> I'm sorry, on my system, this file is provided by the cpp package. <edit/> Try looking at the output of "cpp -v" also. |
hey,
i had the same problem, i did that : apt-get install build-essential And it works, no more problems ;-) |
Quote:
I registered here just to say - Thank you a lot! I was starting to rip my hair out when trying to install Apache because of this error, but you tip solved it all! |
No problem man ;-)
|
Same Problem
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.. |
Post #8 , @ yashdesai7 : Welcome to LQ.
There is no "apt" anything in Fedora. The Fedora tool is 'yum'. Please read 'man yum'. To install a compiler and the dependencies, that make gcc usable, please do 1) su ; 2) yum install gcc-c++ ... And installing libetpan : yum install libetpan . |
Hi.
It may be useful in Fedora to look over the contents of a group: Code:
yum groupinfo "Development Tools" Best wishes ... cheers, makyo |
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?? |
#11.
OK, you can just download a Fedora 16 package for your architecture, 32bits ... http://archives.fedoraproject.org/pu....fc16.i686.rpm > libetpan-1.1-1.fc16.i686.rpm Or 64bits ... http://archives.fedoraproject.org/pu...c16.x86_64.rpm > libetpan-1.1-1.fc16.x86_64.rpm Unpack with : rpm2cpio <package> | cpio -idmv Copy the library "libetpan.so.16.0.0" to /home/<name>/lib/ .. and : ln -s libetpan.so.16.0.0 libetpan.so.16 P.S. : You will not be able to build the library yourself without a working compiler. PPS : This command will reply with your architecture : uname -m . |
it t
|
knudfl,
now I even not able to configure libetpan.. It gave me same configure error.. I have configured & Installed openssl and CyrusSASL which are dependencies of libetpan... please guide me.. |
you might want to start a new thread
seeing as this is NOT the "same problem" from 6 YEARS AGO the last post was in 2006 for libetpan on fedora there is NO need to build anything run Code:
su - but seeing as it looks like you replaced what was already installed ,ssl is installed by default. things might not work right |
All times are GMT -5. The time now is 04:47 AM. |