I tried what you suggested and it printed out the value of LD_LIBRARY_PATH correctly. Unfortunately, this does not help to solve my problem. I need to use the eclipse IDE to debug some program. Setting LD_LIBRARY_PATH in /etc/bash.bashrc will only affect the variable within a bash terminal. If I launch eclipse from a desktop launcher, the LD_LIBRARY_PATH seen by eclipse is still blank. That's why I tried to set it in /etc/profile. And up till now I still cannot find a way to set this value correctly for a program executed from a desktop launcher.
Hi teju,
I tried what you suggested and it printed out the value of LD_LIBRARY_PATH correctly. Unfortunately, this does not help to solve my problem. I need to use the eclipse IDE to debug some program. Setting LD_LIBRARY_PATH in /etc/bash.bashrc will only affect the variable within a bash terminal. If I launch eclipse from a desktop launcher, the LD_LIBRARY_PATH seen by eclipse is still blank. That's why I tried to set it in /etc/profile. And up till now I still cannot find a way to set this value correctly for a program executed from a desktop launcher.