I use Opensuse 11, and I build some C++ target under,
There are several programs under /opt/MyTools/bin I want to use directly from Bash (I don't want to type the full path but just the name of the program anywhere from Bash). I try to set the environment variable for the $PATH in .bashrc and .profile below,
Code:
export $PATH=$PATH:/opt/MyTools/bin
Then I source both .bashrc and .profile and echo the $PATH.
Code:
# source .bashrc
# source .profile
# echo $PATH
It seems the $PATH has been changed correctly; however, from the bash it can't find the program...I even try to create a .bash_profile but it doesn't work as well.
Code:
bash: ./displayGeometry: No such file or directory
Any suggestion would be appreciate. Thanks.