Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
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.
every time i try and run a ./configure file after uncompressing a tarball, i get this error: "checking for C compiler default output... configure: error: C compiler cannot create executables"
What is the output of "echo $CC"
Is it gcc? Maybe this is a permissions problem. Are you trying to compile software as a regular user in a directory you don't have write permission in?
I did those commands, and it had no effect, im still getting the same error that the gcc compiler cannot create executables. Heres the ./configure output....
[root@localhost httpd-2.0.49]# ./configure
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
Configuring Apache Portable Runtime library ...
checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
Configuring APR library
Platform: i686-pc-linux-gnulibc1
checking for working mkdir -p... yes
APR Version: 0.9.5
checking for chosen layout... apr
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
configure failed for srclib/apr
[root@localhost httpd-2.0.49]#
This is just a guess but in the kernel configuration there are two options, one for creating a.out executables, and one for creating ELF binaries. Perhaps this is the problem.
If you are using a custom kernel go into the top-level source and run:
Code:
cat .config | grep ELF
You should see:
Code:
CONFIG_KCORE_ELF=y
CONFIG_BINFMT_ELF=y
If you do not see these you may need to recompile your kernel. Again though...this is just a guess. It would seem odd that you have gcc installed but it cannot create executables.
Another thought: you may need the kernel headers installed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.