My question is so simple but took me two days with no success. For installing a program (WRF model), I need to define MPI path. I already tried two ways:
setenv LDFLAGS -L$DIR/mpi/lib
setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH":""/home/32/bt305632/software/Build_WRF/LIBRARIES/mpi/lib"
But it does not stop following error
/usr/bin/ld: cannot find -lmpifort /usr/bin/ld: cannot find -lmpi collect2: error: ld returned 1 exit status
I am also aware of this response usr/bin/ld: cannot find -l<nameOfTheLibrary>
g++ -L/home/user/myDir -lxyz myprog.cpp -o myprog
But I do not know how to implement it for my case since I am using ./configure and ./compile
Any help is highly appreciated.