[Sunhelp] How do you add /usr/ucb to your PATH
Jarrett Carver
solarboyz1 at hotmail.com
Wed Oct 25 11:39:45 CDT 2000
Unless you bought the Sun C compiler the cc in /usr/ucb is useless. It is
simply a shell script, that is of little good with out the "language
optional software package" installed.
I suggest going to sunfreeware.com and downloading a precomiled version of
GCC and install it. It should intall to /usr/local/bin, so make sure you add
/usr/local/bin to your path, also /usr/ccs/bin.
Example: PATH=$PATH:/usr/local/bin:/usr/ccs/bin; export PATH
You may need to 'CC=/usr/local/bin/gcc; export CC' also.
And here is a tip, I just discovered after many failures compiling
something. You should download the latest source code for GCC and compile it
with the precompiled GCC you installed earlier. Apparently some of the
prepackaged compilers are linked to old libraries.
Hope this helps.
>From: "Glover, Duke" <duke.glover at verizon.com>
>Reply-To: sunhelp at sunhelp.org
>To: Greg <gonufer at yahoo.com>
>CC: sunhelp at sunhelp.org
>Subject: RE: [Sunhelp] How do you add /usr/ucb to your PATH
>Date: Wed, 25 Oct 2000 10:40:12 -0500
>
>Thank you for your response. I realized after I sent the Email that I left
>out a lot of pertinent information. As I'm sure you can tell I am new to
>this OS. My reason for wanting to do this is as follows: I am trying to
>install an application and the INSTALL file tells me I need to run
>./configure. Well, when I do this it tells me "checking for gcc... no"
>
>"checking for cc... no"
>
>"configure: error: no acceptable cc found in $PATH"
>
>So I did a find / -name cc -print and found cc in /usr/ucb. My assumption
>(I know what assuming does) was that the ./configure command can't find cc
>because it's not in the PATH and therefore I need to add it to the PATH.
>What am I doing wrong ?
>
>AtDhVaAnNkCsE,
>
>Duke Glover
>
>
>-----Original Message-----
>From: Greg [mailto:gonufer at yahoo.com]
>Sent: Tuesday, October 24, 2000 11:37 PM
>To: Glover, Duke
>Subject: Re: [Sunhelp] How do you add /usr/ucb to your PATH
>
>
> > I need to add /usr/ucb to my PATH. How can I do this ?
>
>You should _never_ add /usr/ucb to your PATH. That directory only
>contains deprecated commands intended to be used by Solaris 1.x
>programs running on Solaris 2.x in the compatability environment.
>If you accidentally use /usr/ucb/cc or /usr/ucb/ld when compiling
>programs you can end up with buggy executables. Are you _sure_
>you want to do that?
>
>-greg
>
>_______________________________________________
>SunHELP maillist - SunHELP at sunhelp.org
>http://www.sunhelp.org/mailman/listinfo/sunhelp
Jarrett Carver http://www.geocities.com/solarboyz1
solarboyz1 at hotmail.com Unix/NT Systems Administrator
___________________________________________________________
"In theory, there is no difference between theory and
practice. But, in practice, there is. "
- Jan L.A. van de Snepscheut
____________________________________________________________
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
More information about the SunHELP
mailing list