1833753 Members
2692 Online
110063 Solutions
New Discussion

path export and terminal

 
Bruce Ordway
Advisor

path export and terminal

Hi,

I know this has been discussed a lot already, but I just don't seem to get this.

I installed the gnome destop recently and gcc. Now when I want to compile something from a terminal window, I have to either set the PATH or type it out completely i.e. /opt/gcc/bin/gcc ..

I've tried editing my .profile, the /etc/profile and /etc/PATH with no success.

Like I said, I know this has been covered a lot, but would one of you mind doing it one more time.. and in DETAIL .. for the slow ones like myself. Thanks, Bruce
8 REPLIES 8
Steven Sim Kok Leong
Honored Contributor

Re: path export and terminal

Hi,

Have you updated .dtprofile?

Hope this helps. Regards.

Steven Sim Kok Leong
Bruce Ordway
Advisor

Re: path export and terminal

No I haven't but I'll give it a try.
Do you think it will work with the gnome desktop?

Re: path export and terminal

Hi Bruce,

Open the .dtprofile in $HOME after you login and uncomment the last line in that file which is :
DTSOURCEPROFILE=true. Exit the session and login again. It works.
If it still does not work, try . $HOME/.profile

Hope this helps,
Raghu.
Unix is not for those who donot love Unix!
Bruce Ordway
Advisor

Re: path export and terminal

Still not working.
I've don't the /home/bruce/.dtprofile, /home/bruce/.profile and /etc/PATH

What could I be missing?

Do any of you have samples of your files? Maybe mine are wrong.
Steven Sim Kok Leong
Honored Contributor

Re: path export and terminal

Hi,

Put this in your $HOME/.dtprofile:

DTSOURCEPROFILE=true
PATH=$PATH:/opt/gcc/bin
export PATH

Hope this helps. Regards.

Steven Sim Kok Leong
K.Vijayaragavan.
Respected Contributor

Re: path export and terminal

find / -name "*profile" | xargs grep PATH

It will list all the PATH setting defined in profiles files including .dtporfile ,$HOME/.profile and /etc/profile.

By seeing the output of above command ,we can decide where all to change the path.

Note one more thing that if you are using csh (c shell) then you have to edit the files /etc/csh.login , $HOME/.cshrc and $HOME/.login files as cshell will not mind profile file.

In these files also we can see the path set like,

set path = ($path)
or
set path = (/usr/bin /usr/contrib/bin)
Hope this helps you.

-K.Vijay.
"Let us fine tune our knowledge together"
Bruce Ordway
Advisor

Re: path export and terminal

/etc/d.profile
/etc/skel/.profile
/etc/profile
/usr/newconfig/etc/skel/.profile
/usr/newconfig/etc/profile
/usr/newconfig/.profile
/usr/dt/config/sys.dtprofile
/opt/gnome/share/abisource/AbiWord/system.profile
/opt/gnome/share/gnome-print/0.25/profiles/PostscriptOptimized.profile
/opt/gnome/share/gnome-print/0.25/profiles/pdf.profile
/.dtprofile
/home/bruce/.profile
/home/bruce/.dtprofile
/home/lauri/.profile
/home/.dtprofile
/.profile
Bruce Ordway
Advisor

Re: path export and terminal

Thankyou all for trying to help me. I never did get this to work. I was starting to get a little irritated so
I've given up on it for now. It's easy enough for me to type type the full path. Some afternoon I'll try again.

It's the simple things that drive me crazy sometimes.