On Monday 10 December 2007 18:33:41 Ben wrote:
> Hi all,
>
> I'm relatively new to OS, indeed I'm pretty new to any system that isn't
> Mac...
>
> I need to use the gcc compiler located under:
> /usr/sfw/libexec/gcc/i386-pc-solaris2.11/3.4.3
>
> How can I make this so I can issue the normal commands to use gcc?  I.e.
> gcc myFile.c -o myProgram
>
> Having done some research, I'm hearing about putting it on the PATH, but no
> one seems to say how to do that (just to refer to man pages I can't find).
>
> If anyone could help me get gcc up and running that would be super.  If
> it's any help, I'm using the Bash shell.
>
> Thanks,
>
> Ben
>  


Just be sure to set this in your path before the path where an older gcc 
compiler is, not sure if you have an older gcc installed 

do the following:

echo $PATH to check what your current path`s are.

export PATH=/usr/sfw/libexec/gcc/i386-pc-solaris2.11/3.4.3:/usr/sfw/bin:/( Etc 
you want in your PATH setup )

You can set the default PATH for root and regular users in:
/etc/default/login and /etc/default/su.
set PATH and SUPATH in both of those files to something useful like :

PATH=/opt/csw/bin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin 

Matt
-- 
Matthew Whittaker-Williams
Quanza Engineering B.V.
Van Diemenstraat 132
1013 CN Amsterdam
E: [EMAIL PROTECTED]
T: +31 20 530 1600
T: +31 20 530 1601
W: www.quanza.net
_______________________________________________
opensolaris-help mailing list
[email protected]

Reply via email to