gcc gives error C compiler cannot create executables
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
gcc gives error C compiler cannot create executables
Hi,
I wanted to install apache on my Kubuntu linux system. But when i ran ./configure it siad
/home/len/httpd-2.0.53
len@laptop:~/httpd-2.0.53$ ./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.6
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
and config.log sais:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.59. Invocation command line was
configure:1618: checking for chosen layout
configure:1620: result: Apache
configure:2413: checking for working mkdir -p
configure:2429: result: yes
configure:2446: checking build system type
configure:2464: result: i686-pc-linux-gnulibc1
configure:2472: checking host system type
configure:2486: result: i686-pc-linux-gnulibc1
configure:2494: checking target system type
configure:2508: result: i686-pc-linux-gnulibc1
configure:2537: checking for APR
configure:2597: result: reconfig
Hi,
i was having the same kind of problem while installing gcc compiler on xandros system, it needs a cc compiler to create a new gcc compiler (for generation of executables). ADD, I think you will need a ANCI C compiler as at "http://httpd.apache.org/docs/2.2/install.html", they say under the requirement section:
"ANSI-C Compiler and Build System
Make sure you have an ANSI-C compiler installed. The GNU C compiler (GCC) from the Free Software Foundation (FSF) is recommended. If you don't have GCC then at least make sure your vendor's compiler is ANSI compliant. In addition, your PATH must contain basic build tools such as make. ".
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
Quote:
Originally Posted by ADD
already tried does not work it says that there are no installable verisions
ADD
Open /etc/apt/sources.list with your favourite text editor. You will need to start it using sudo. Find the lines refering to the "Universe" repositories, and remove the # sign at the front. Save and exit, and run
Also if you need to compile in the future I believe you need the binutils package but to make it real simple just install the build-essential package that should get you all the basics needed to compile.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.