error while loading shared libraries: libimf.so

I am trying to install C/C++ compiler in SLURM environment. Using OpenMP, the process involves to add CC=oshcc to a script named “configure” arguments as follows:

./configure cc=oshcc 

I get the following error:

oshcc: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory 

what does it mean? and how to solve it?