This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: help needed on config/install gcc 3.0
- To: Cheng Yan <cyan_01 at hotmail dot com>
- Subject: Re: help needed on config/install gcc 3.0
- From: Frank Schafer <frank dot schafer at setuza dot cz>
- Date: Thu, 04 Oct 2001 06:25:38 +0200
- CC: help-gcc at gnu dot org
- Organization: SETUZA a.s.
- References: <F40b0SulnJ2IKkVmkLb000037fb@hotmail.com>
- Reply-To: frank dot schafer at setuza dot cz
Cheng Yan wrote:
> Dear Sir,
>
> I have recently tried installed gcc 3.0 on a Solaris 2.7 box. I got the
> following error:
>
> =========================================
> 75 => /opt/local/gnu/gcc-3.0/configure
> Configuring for a sparc-sun-solaris2.7 host.
> Created "Makefile" in /usr/gnubin using "mh-frag"
> /usr/ucb/cc: language optional software package not installed
> *** The command 'cc -o conftest -g conftest.c' failed.
> *** You must set the environment variable CC to a working compiler.
> =========================================
>
> I know I have /usr/ucb/cc installed. But I don't know how to set
> theenvironment variable CC. Certainly I know how to set an env variable. But
> what value do I need to give to the environment variable CC?
>
> Your help is highly appreciated.
>
> Sincerely,
> >
> >Cheng Yan
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Hi Cheng,
If You have a C-compiler installed in /some/dir/someC, You should:
# export CC=/some/dir/someC
For the case, that /some/dir is in Your path
# export CC=someC
should be sufficient.
Hope this helps
Frank
begin:vcard
n:Schafer;Frank
x-mozilla-html:FALSE
org:SETUZA a.s.;IT
adr:;;;;;;
version:2.1
email;internet:frank.schafer@setuza.cz
title:Dipl. Ing.
note:System administrator
x-mozilla-cpt:;0
fn:Frank Schafer
end:vcard