setting env

I am trying to set up my compiler, but when I go to look for
gcc it not found but I get a message

that stayed (/usr/oasys/bin) and when I go into the dir
to set my env the following is type

cp : cannot creat //pref/.environ: no such file or directory
and I input ./setenv PATH= /usr/sbin:/usr/bin/:/usr/dt/bin

well depending on the shell your useing try,

export PATH=$PATH:any_path_you_want_to_add:another:another

using bash i usually type:

$ PATH=$PATH:/whatever:/whatever/whatever; export PATH

then you can use the export command to view all the environmental variables to make sure your new path is there...but your shell may be different

You could also put the above PATH statement into your profile (#home/.profile) and then the values you add would always be set for every telnet window you open.

alternativley you could put the command into a file and then 'source the file' (i.e.

$ . ./FileName

:slight_smile: