Shared problem

Hello everyone, Im trying to compile my program, but it gives this error. I’m using pg90 and mpif90.
Can someone help me to solve it please ?

mpif90 -c -g -O0 -mcmodel=medium -I…/…/include -module …/…/…/lib cube_topo.f90
/clusterfs/pgi/Linux_aarch64/20.7/comm_libs/openmpi/openmpi-3.1.5/bin/.bin/mpif90: error while loading shared libraries: cannot open shared object file: No such file or directory
make[1]: *** [Makefile:34: cube_topo.o] Error 127

Thank you very much

Hi Lucci,

You’ll want to set the environment’s LD_LIBRARY_PATH variable to include the compiler runtime libraries. Something like:

export LD_LIBRARY_PATH=/clusterfs/pgi/Linux_aarch64/20.7/compilers/lib:$LD_LIBRARY_PATH

Hope this helps,

1 Like