Some programs I use for work are installed on /opt/454, and the executables are in /opt/454/bin. The installation instructions also suggest adding that directory to the PATH for obvious reasons, which I usually do. With my latest installation (since installing F16, I think), however, that doesn't seem to work. I added /opt/454/bin to my .bash_profile file, and the directory is in the PATH, but when I try to call any of those programs, it doesn't work. Instead, I have to add the directory to the PATH every time I want to use one of those programs if I haven't done it since the last time I opened terminal.
Here is my .bash_profile file:
Code:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin:opt/454/bin
export PATH
And here is what I get when I check the PATH:
Code:
[AT@AT ~]$ echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/AT/.local/bin:/home/AT/bin:opt/454/bin
Yet, to use one of the programs at that location, I have to
Code:
[AT@AT ~]$ PATH=$PATH:/opt/454/bin
[AT@AT ~]$ export $PATH
bash: export: `/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/AT/.local/bin:/home/AT/bin:opt/454/bin:/opt/454/bin': not a valid identifier
And now those programs will work until I close the terminal and/or open a new terminal.
Any idea why this is, and how I can make it work properly?