Results 1 to 5 of 5
I'm having difficulties adding stuff to my path.
I've edited /etc/profile and added these lines:
Code:
JAVA_HOME=/usr/java/j2sdk1.4.2_08
CATALINA_HOME=/usr/local/tomcat
OX_HOME=/usr/local/ox
export PATH PS1 USER LOGNAME MAIL HOSTNAME INPUTRC NLSPATH
export HISTCONTROL ...
- 06-18-2005 #1
PATH Problems
I'm having difficulties adding stuff to my path.
I've edited /etc/profile and added these lines:
I know the first bit is working because I can go echo $CALATINA_HOME from a konsole and it shows the path.Code:JAVA_HOME=/usr/java/j2sdk1.4.2_08 CATALINA_HOME=/usr/local/tomcat OX_HOME=/usr/local/ox export PATH PS1 USER LOGNAME MAIL HOSTNAME INPUTRC NLSPATH export HISTCONTROL HISTSIZE export JAVA_HOME CATALINA_HOME PATH OX_HOME PATH=$PATH:$JAVA_HOME/bin:$CATALINA_HOME/bin:$OX_HOME/bin:$OX_HOME/sbin
However, I can't start applications in /usr/local/ox simply by typing the name of the application from any directory. I still have to type /usr/local/ox/---application name.
What's wrong with my path?
- 06-18-2005 #2
I'm not realy sure what you are doing exactly, but if I want to add anything to my $PATH I
and if I want to keep it I put it into my ~/.bashrc file.Code:PATH=$PATH:/new/path
Why can't you justand then save that in your ~/.bashrc file ?Code:PATH=$PATH:/usr/java/j2sdk1.4.2_08/bin/:/usr/local/tomcat/bin/:/usr/local/ox/bin/:/usr/local/ox/sbin/
- 06-18-2005 #3
- 07-08-2005 #4Just Joined!
- Join Date
- Oct 2004
- Location
- Nottinghamshire
- Posts
- 2
The PATH=$PATH:....... comes after the export PATH bit.
Therefore the newly set PATH is not being exported.
Or have I missed something there ?
- 07-08-2005 #5Both seem to work, with or without the export.
Originally Posted by Boney


Reply With Quote
