Why I cannot override search path of dynamic libraries with LD_LIBRARY_PATH?
Edit: I resolved this issue, the solution is below. I am building a code in a shared computing cluster dedicated for scientific computing, thus I can only control files in my home folder. Although I am using fftw as an example, I would like to understand the specific reason, why my attempt to setup LD_LIBRARY_PATH does not work. I build the fftw and fftw_mpi libraries in my home folder like this ./configure --prefix=$HOME/install/fftw --enable-mpi --enable-shared make install It builds fine, but in install/fftw/lib, I find that the freshly built libfftw3_mpi.so links to wrong version of fftw