[SOLVED] cannot set LD_LIBRARY_PATH in ~/.profile, /etc/profile
I am using Ubuntu 10.04 64bit. I got problems when trying to add LD_LIBRARY_PATH as a global environment variable.
I tried adding the above line to ~/.profile and /etc/profile, logged out and in, but neither of them worked.
Actually I want to run a program from the graphical environment which needs to find the shared library from /usr/local/Coin/lib.
Adding the above line to ~/.bashrc or /etc/bash.bashrc can make the LD_LIBRARY_PATH visible in the command line, but not global. So the program wouldn't see the path and wouldn't start.
I can start the program from the command line to get around this problem. But just curious why that happened and how we can fix it?
It seems that the LD_LIBRARY_PATH is either reset during the system startup , or ignored in ~/.profile and /etc/profile.
Any idea about this? Thank you very much.