Setting environment variables in ubuntu
Posted on 2006-04-06
I'm trying to permanently set some environment variables in ubuntu. I want to set CPATH and LD_LIBRARY_PATH. So, I go to /etc/profile and add in the following commands:
export LD_LIBRARY_PATH = "/mypath"
I restart Linux, and when I type echo $CPATH on the bash terminal, my specified path does not appear. The variable is empty.
So, I have to keep typing export CPATH="/mypath" everytime I open up a bash window. How do I set these variables permanently?