gcc on Solaris 7

HUGO DE RELAND hderelan@cuscal.com.au
Wed Feb 2 22:06:00 GMT 2000


Hi,

I am trying to install gcc on Solaris 7 (fully patched)

I read in a few places that some environment variables need to be set for
configure   to work properly.

However, I cannot find what these vairables are exactly and what they need
to be set to.


Here is a quick overview of what is in the system 

/usr/admin/gcc-2.95.2  contain all of the gcc source

/usr/admin/gcc-obj  is the object directory 

and this is what I get:

	testswitch-syd0# PATH=$PATH:/usr/ucb
	
	testswitch-syd0# env
	HOME=/
	HZ=100
	LOGNAME=root
	
PATH=/usr/sbin:/usr/bin:/opt/SUNWlznb/man:/opt/lanman/man:/usr/admin/gcc-obj
:/usr/admin/gcc-2.95.2:/usr/ucb
	PS1=testswitch-syd0#
	SHELL=/sbin/sh
	TERM=ansi
	TZ=Australia/NSW
	
	testswitch-syd0# pwd
	/usr/admin/gcc-obj
	
	testswitch-syd0# /usr/admin/gcc-2.95.2/configure
	Configuring for a sparc-sun-solaris2.7 host.
	Created "Makefile" in /usr/admin/gcc-obj 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.
	
	testswitch-syd0# echo $PATH
	
/usr/sbin:/usr/bin:/opt/SUNWlznb/man:/opt/lanman/man:/usr/admin/gcc-obj:/usr
/admin/gcc-2.95.2:/usr/ucb
	
	testswitch-syd0# ls -l /usr/ucb/cc
	-r-xr-xr-x   1 bin      bin         3487 Sep  1  1998 /usr/ucb/cc

Is this enough information?

Your help will be much appreciated.

Thank you

Regards

Hugo de Réland
Senior Planning & Development Analyst
Group Information Services
Credit Union Services
Level 4, 51 Druitt Street
Sydney NSW 2000
PH  :  61  (02) 9333 7640
FAX:  61  (02) 9333 7138
E-mail: hderelan@cuscal.com.au



More information about the Gcc-help mailing list