Question:
What am I doing wrong: Compiling in Ubuntu?
Chris P
2008-01-23 23:09:36 UTC
loading cache ./config.cache
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
checking build system type... i686-pc-linux-gnulibc1
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.


This is the error I get any time I try to compile things from source. This is my first linux system, and I am clueless. I cant even compile a new C compiler to fix the problem... I am sure I am just thinking like a windows user and missing the picture. Can someone help me?
Three answers:
anonymous
2008-01-23 23:20:45 UTC
Typically, the process is



./configure ...

make

make install



The first step you might specify some additional options (like you want a specific library to be included).



The second step goes thru and uses the files created by the "configure" step to actually compile the program, its libraries, and then link them into one or more programs.



The third step installs the programs, libraries, configuration files, language files, etc. where they can be executed (typically under /usr/local). You usually need to sudo the last step so that you have permission to install into the system directories.



It looks like you're stuck at the first step. Are you running configure in a directory that you own and have write permissions in?
Sp II Guzzi
2008-01-24 07:47:49 UTC
System, adminstration, Synaptic Package Manager - and choose the software you want to install!



OR



www.google.com "ubuntu software package" and if you are lucky, the package is already compiled, and you simply follow the instructions on how to download and install.



Compile? Who needs that sinkin compiling? Not me, and I have been using Ubuntu for several years now!
?
2016-10-15 01:31:53 UTC
i think of you're interior the incorrect itemizing. try an 'ls' and notice if first.c is there. whether it is not, do 'cd /course/to/the place/report/is' and then run the gcc. (notice - the course to the report could be like /domicile/consumer/laptop no longer /domicile/consumer/laptop/first.c)


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...