I have the following at the end of my .profile file on Ubuntu 18.04:
export PATH=$PATH:/home/tom/Desktop/PACS/moos-ivp/bin
export LD_LIBRARY_PATH=/home/tom/Programs/or-tools_Ubuntu-18.04-64bit_v7.2.6977/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/MATLAB/MATLAB_Runtime/v95/sys/os/glnxa64
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/MATLAB/MATLAB_Runtime/v95/bin/glnxa64
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/MATLAB/MATLAB_Runtime/v95/runtime/glnxa64
export matlabroot=/usr/local/MATLAB/MATLAB_Runtime/v95
PATH and matlabroot are available to my session after logging in, however, LD_LIBRARY_PATH always returns empty. Unless I source the file manually.
What am I doing wrong?