Learn how to a build a cloud-first strategyRegister Now


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

Posted on 2006-05-12
Medium Priority
Last Modified: 2013-12-27
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.

Question by:lagooy
LVL 14

Expert Comment

ID: 16668563
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;
export PATH

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

Author Comment

ID: 16668903
Thanks arthurjb,
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....
LVL 14

Accepted Solution

arthurjb earned 1500 total points
ID: 16669624
You can edit /etc/profile  there will be a path statement just add a colon and your path to it.

Also take note that the path is looked at in order so if you have the same named command in 2 different places in the path, only the first one will be executed.
So if you notice a command behaving a little differently. it could be that you are executing a slightly different version.
LVL 38

Expert Comment

ID: 16670703
> 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
export PATH=$PATH:/opt/sfw/bin:/usr/local

for bash
~/.bashrc (or ~/.profile)
export PATH=$PATH:/opt/sfw/bin:/usr/local
LVL 27

Expert Comment

ID: 16679166
I aggree with arthurjb, it's preferrable (in this case) to change system wide /etc/profile than user-local profiles.

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month21 days, 2 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question