Possible Duplicate:
How to add a directory to my path?
I need to use a program in my job. I followed the installation instructions of this PROGRAM. However, when I try to run it the message appears - program_that_I_want_to_run:Command not found
I know that it is a $PATH problem, but I tried the command line described in the instructions and it did not work.
Set environment variable CONFIG_PATH
export CONFIG_PATH=/my_path_to_PROGRAM/PROGRAM/config/
I am sure that I indicated correctly the path to access the config directory. No typing errors.
Help?
12 Answers
Firstly, check your original path:
echo $PATHIt should show something like this:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/gamesNow add your program to that path, ensuring your using the entire path all the way from / to your program.
export PATH=$PATH:/path/to/my/programThis sets your PATH variable to the existing PATH plus what you add to the end. Check that it has been added (Caveat: it presist only in the current session of the terminal):
echo $PATH 3 Add this line to ~/.bashrc (you use PATH rather then CONFIG_PATH)
export PATH=$PATH:/path/to_directory_containing_program
export CONFIG_PATH=/my_path_to_PROGRAM/PROGRAM/config/ 4