PDA

View Full Version : How do you compile- On Ubuntu?



erikpiper
December 29th, 2005, 05:02 AM
What do I need to apt-get? Thanks. (Here is what I get when I ./configure)

loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... no
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for c++... no
checking for g++... no
checking for gcc... gcc
checking whether the C++ compiler (gcc ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.


----------------------------------------------------------
After uninstalling my 3 versions of gcc (But not base libs):
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... no
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH

darth_vector
December 29th, 2005, 05:06 AM
sudo apt-get install build-essential

eriqk
December 29th, 2005, 05:11 AM
What have you apt-getted (apt-gotten?) until now?
I have build-essentials, automake and gcc3.4 (maybe other bits and pieces).
./configure
make
sudo make install
usually just works. Sometimes I need to automake, but I haven't had any problems with that, either.

You could try and apt-get everything configure says is missing.

Groet, Erik

erikpiper
December 29th, 2005, 05:24 AM
Thanks!

New install, apt getted GGC4.0
Uninstalled, and followed your instructions.
(I am new to this.. Bear with me!)

Now, I get error 1 after make AND make install while trying to compile: "TUXEDO T. PENGUIN: A QUEST FOR HERRING. "

eriqk
December 29th, 2005, 05:41 AM
Before make gives you error 1, you'll see one or more errors. The line above those will probably tell you there's a file missing. Is this correct?

Groet, Erik

erikpiper
December 29th, 2005, 10:27 PM
Ok.. What is a known good file I can test compiling?


Thanks!

shin
December 29th, 2005, 10:32 PM
Test compiling? What for?
There is no such thing.

If something doesn't compile - check error log. It provides useful informations. For real. Probably some lib is missing.

And please use search function. There is like 1 question about compiling per hour.

xequence
December 29th, 2005, 10:46 PM
Test compiling? What for?
There is no such thing.

If something doesn't compile - check error log. It provides useful informations. For real. Probably some lib is missing.

And please use search function. There is like 1 question about compiling per hour.


They mean where can they get a good working program they can test their compiling ability on.