I don't honestly know. It sounds like it's not reading from the SUPATH entry in /etc/default/su? Is the directory showing up when you type: echo $PATH in a terminal?
You have to change two different things, the SUPATH for root (which is in /usr/default/su), and the PATH for the user. The settings for root are adjusted in /etc/default/su, the PATH settings for users are set either in ~/.profile, ~/.bashrc, or /etc/default/login. Also if you log into your console as root, it won't read the SUPATH; I think you'll need to have the directory you want listed in the PATH entry in /etc/default/su. (I never play around with what the login/console PATH for root is- so I'm not sure on that one). Also, make sure you're only setting your PATH in one place. If you set PATH for users in /etc/default/login _and_ have a PATH setting in your .bashrc then when you log in the path set in .bashrc will overwrite the other one. This is because when you log in the last things to be read are the dotfiles in your home directory (.profile, .bashrc, etc) and whatever is in them will replace whatever you set up in /etc. Lastly, you have to add some sort of parameter when you run gcc, otherwise you'll just get the 'no input file' message. "/usr/sfw/bin/gcc -v" will show you what version you're running (and will demonstrate wether gcc works or not in the process). This message posted from opensolaris.org _______________________________________________ opensolaris-discuss mailing list [email protected]
