I am trying to get gcc command to work out of the box in Solaris10. But the shell gives the message:
$ gcc prg1.cpp -o prg1.exe
bash: gcc: command not found
So, I have put in the file:
#.!/export/home/threader/local.profile
PATH=$PATH:/usr/local/bin:/usr/ccs/bin/:/usr/sfw/bin/; export PATH
then, 'reboot' to see how it goes. When then I tried again to run gcc, the same happens:
$ gcc prg1.cpp -o prg1.exe
bash: gcc: command not found
It only works if every time after restarting the computer I run on terminal:
$ PATH=$PATH:/usr/local/bin:/usr/ccs/bin/:/usr/sfw/bin/; export PATH
Any hints or suggestion on how to make it automatic?
Thanks Folks!