Hi all,
I've defined and exported LD_LIBRARY_PATH from .bash_profile. It is built as follows (lets assume it's user1):
Code:
EVN1=${HOME}/version
export ENV1
ENV2=$/home/user2/version
export ENV2
LD_LIBRARY_PATH=${ENV1}/lib:${ENV2}/lib:/usr/local/lib
export LD_LIBRARY_PATH
Everything works well, until I su (no -). After switching to super-user, the environment variables ENV1 and ENV2 are proper:
ENV1 == /home/user1/version
ENV2 == /home/user2/version
However, LD_LIBRARY_PATH is not defined (the bash does not recognize it). I assume the shell treats LD_LIBRARY_PATH in a special way, but I'm not sure how to override it.
Anyone has any ideas?
thanks,