I have some strange problem with a very simple script. I am setting LD_LIBRARY_PATH for a library. When I type this command in terminal:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/some/path
echo $LD_LIBRARY_PATH
Output from echo
showed the linker path is correctly added. But when I put the exact same command into a .sh file:
#!bin/bash
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/some/path
After execution, output from echo
showed the linker path is not added. The script has been set to executable, and executed from correct directory. Could someone let me know what may have gone wrong? Thank you!