PDA

View Full Version : setting up gcc


cherryos
November 4th, 2005, 02:30 PM
Hi, i'm setting up gcc and i got this error,

root@ubuntu:/usr/gcc/gccbuild# /usr/gcc/gcc-4.0.2/configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
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.

I was wondering how to get rid of it.

rock freak
November 4th, 2005, 03:04 PM
you should just be able to download gcc from the synapatic package manager just search for gcc

and dont forget the gcc lib called libgcc i belive. that should install it for you.


to test if its worked just open ypu the terminal and type gcc and you should get this

gcc: no input files

hope this works/helps

Ollie

mo_x
November 4th, 2005, 03:08 PM
Are you trying to compile the compiler without a compiler?
Just install the build-essential package.
sudo apt-get install build-essential

cherryos
November 4th, 2005, 03:45 PM
yeah, you were both right, i used the synaptic package manager to install apache and apt-get for gcc. but now, how do i access apache, where is the directory for it? when i type localhost into the address bar i get the apache successfully installed page.

rock freak
November 4th, 2005, 04:44 PM
excellent gald i could help. In regards to the apache im not sure cant rember i had it installed but neva got round to using it as got a websever i use!