LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   configure: error: C compiler cannot create executables (https://www.linuxquestions.org/questions/fedora-35/configure-error-c-compiler-cannot-create-executables-418898/)

richlawson 02-23-2006 07:14 PM

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?

jschiwal 02-23-2006 08:03 PM

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.

richlawson 02-23-2006 08:45 PM

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)

jschiwal 02-24-2006 04:29 PM

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.

dicou 03-07-2006 03:15 PM

hey,
i had the same problem,
i did that :

apt-get install build-essential

And it works,
no more problems ;-)

NewToasted 03-19-2006 09:40 AM

Quote:

Originally Posted by dicou
hey,
i had the same problem,
i did that :

apt-get install build-essential

And it works,
no more problems ;-)


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!

dicou 03-19-2006 05:01 PM

No problem man ;-)

yashdesai7 02-22-2012 07:04 AM

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..

knudfl 02-22-2012 07:18 AM

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

.

makyo 02-22-2012 09:10 AM

Hi.

It may be useful in Fedora to look over the contents of a group:
Code:

yum groupinfo "Development Tools"
in case you need additional tools, and perhaps man yum

Best wishes ... cheers, makyo

yashdesai7 02-22-2012 09:25 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??

knudfl 02-22-2012 11:44 AM

#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

.

yashdesai7 02-22-2012 10:21 PM

it t

yashdesai7 02-22-2012 10:35 PM

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..

John VV 02-22-2012 10:45 PM

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 -
yum search libetpan

/* then from that list install*/

yum install libetpan

yum will take care of things like ssl
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.