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

Posted on 2006-05-12
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
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

    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

    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

    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

    > 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

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

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
    I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    745 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now