Link to home
Start Free TrialLog in
Avatar of lagooy
lagooy

asked on

Sparc Solaris 10: Installed packages not found in default PATH !!

I'm trying to install FreeRADIUS on Solaris 10 (Sparc, Sunfire v100), which requires following packages on OS:
gcc, gmake, glibc, binutils, gawk

All these packages were installed by default when installing solaris 10
but while installing FreeRADIUS it can't see these packages when I run the commands

no gcc
no gmake
found in default path.

I even downloaded & installed these packages from sunfreeware.com
I'm a beginner to Sun OS, but it seems to me that it has something to do with setting the right path.

Avatar of arthurjb
arthurjb

Yes, the path to those should be /opt/sfw/bin

type "echo $SHELL" (without the quotes)
this should tell you the shell that you are using.

If its sh or ksh then these are the commands;
PATH=$PATH:/opt/sfw/bin
export PATH

For csh it is;
set path = ($path /opt/sfw/bin)
Avatar of lagooy

ASKER

Thanks arthurjb,
PATH=$PATH:/opt/sfw/bin
export PATH
it worked ... just one more concern with setting the path
everytime I reboot the sun machine ... the exported path returns back to default ...
how can I save the PATH for every user as well as root so that PATH remains same even after reboot.
Thanks in advance....
ASKER CERTIFIED SOLUTION
Avatar of arthurjb
arthurjb

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
> everytime I reboot the sun machine ... the exported path returns back to default
I would recommend that you change the path setting for your personal environment instead of system wide (/etc/profile)

for Csh
~/.cshrc (or ~/.login)
set path = ($PATH /opt/sfw/bin /usr/local/bin)

For sh
~/.profile
export PATH=$PATH:/opt/sfw/bin:/usr/local

for bash
~/.bashrc (or ~/.profile)
export PATH=$PATH:/opt/sfw/bin:/usr/local
Avatar of Arty K
I aggree with arthurjb, it's preferrable (in this case) to change system wide /etc/profile than user-local profiles.