This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc install problem


sgtbob wrote:
Im using Ubuntu 7.10 and trying to install PYTHON, but here is what I see on
execution:

bob@XPS:~$ cd PYTHON
bob@XPS:~/PYTHON$ dir
Python-2.5.1 Python-2.5.1.tgz
bob@XPS:~/PYTHON$ cd Python-2.5.1
bob@XPS:~/PYTHON/Python-2.5.1$ dir
config.log configure.in Doc Include Lib Mac Misc Objects PC PCbuild8 Python RISCOS Tools
configure Demo Grammar install-sh LICENSE Makefile.pre.in Modules Parser PCbuild pyconfig.h.in README setup.py
bob@XPS:~/PYTHON/Python-2.5.1$ ./configure
checking MACHDEP... linux2
checking EXTRAPLATDIR... checking for --without-gcc... no
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.
bob@XPS:~/PYTHON/Python-2.5.1$


So then I DL and tried to install the latest gcc-4.2.3with these results:

bob@XPS:~$ cd GCC
bob@XPS:~/GCC$ dir
gcc-4.2.3 gcc-4.2.3.tar.bz2
bob@XPS:~/GCC$ cd gcc-4.2.3
bob@XPS:~/GCC/gcc-4.2.3$ ./configure
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.
bob@XPS:~/GCC/gcc-4.2.3$



Could someone show me where I'm going wrong? If I open synaptic package manager, it appears that GCC is install - more than one version - so why do I keep getting the above error messages? Help appreciated.

Bob



You need to have a compiler installed to build the compiler (kind of a chicken and egg thing). I am sure Ubuntu has a package you can install that has the compiler pre-built for you (apt-get gcc maybe??).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]