This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Installing GCC: Configuration
- From: Ralf Corsepius <corsepiu at faw dot uni-ulm dot de>
- To: GCC List <gcc at gcc dot gnu dot org>
- Date: 13 Nov 2002 10:50:38 +0100
- Subject: Re: Installing GCC: Configuration
- References: <009001c28ae9$544a3e40$1710018a@pc0003>
Am Mit, 2002-11-13 um 08.50 schrieb operator:
> Hi Tech,
> Problem encountered when I installing gcc :
>
> root@sunsvr01 # sh /opt/gcc/configure
> Configuring for a sparc-sun-solaris2.8 host.
> Created "Makefile" in /opt/gcc_objdir using "mh-frag"
> /opt/gcc/configure: cc: not found
> *** The command 'cc -o conftest -g conftest.c' failed.
> *** You must set the environment variable CC to a working compiler.
> root@sunsvr01 #
>
>
> Any hint ?
As the error message says, you need to have a functional cc installed.
As you seem to be using a sun, the configure script probably detects
Sun's /usr/ucb/cc stub (It's a shell script returning an error status)
and correctly aborts.
So, you either need to install a functional cc or, if you already have
one installed, to adjust your $PATH.
Ralf