Name: chis Date: October 30, 2001 at 04:02:27 Pacific Subject: Need help of Setting PATH on solaris 8
Comment:
Hi guys, I set up Intel Solaris 8 but the gcc compiler doesn't work. I have downloaded the gcc compiler from Unix freeware and use pkgadd and it seems to be Ok but ... I now need to set the PATH. I login a root user and want to set the path, can someone please shows me how to edit the PATH... Which file should I edit and put in the PATH I want.
But I login as a ROOT user how can I use .profile file? I tried to look for the .profile before and I could not find it. Do I need to login as a ROOT user? Because I want to compile MySQL and PHP using gcc. I read the MySQL document and it said I need a ROOT user to compile and install it.
You probably need to write a file named .profile. Look for .dtprofile in the ROOT user home directory and view that. There's a lot of information in there that will help.
I don't usually recomment doing any work logged in as ROOT - better to log in as your user ID, then su to root as and if you need to. Safer that way!
You can also make changes to PATH in /etc/profile -- this file is run before the .profile of anyone that logs in.
A word of caution: Putting $HOME first in PATH reduces the security of your machine -- if someone is able to get into your $HOME directory, they will be able to put executables in your directory that you will run without knowing that you're running them. For instance, I could write a new version of "ls" that will somehow damage your system (such as "rm -r *"), put it in your $HOME, and then, next time you run "ls", you will erase everything in your $HOME directory instead of listing contents of a directory. It's a good idea not to put $HOME anywhere in PATH.
I had to change my path in /etc/profile to that to get gcc to work properly. Plus you might need autoconf/m4 and make installed also. The LD_library is for the GTK libraries. I switched out Gnome (beta) for CDE. So now I can just compile gaim or xchat or whatever else you want.
I have down loaded GCC compiler for solaris 8.0. when i compile it say stdio_iso.h file missing but in the header file it is present. please suggest me how do i move forward.
I've also been having some issues with setting of the path. Wierd thing, I use to use the default shell for root, and recently changed it to bash. It seems now, when I log into CDE my path is not set properly (from /etc/profile). But when I login through telnet, no problem good path. Any ideas?