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,
Then I source both .bashrc and .profile and echo the $PATH.
# 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.
bash: ./displayGeometry: No such file or directory
Any suggestion would be appreciate. Thanks.