Software Archive
Read-only legacy content
17061 Discussions

error while loading shared libraries libmpifort.so.12 on MIC

Wentao_Z_
Beginner
4,181 Views

Hi,

I was trying to run my executable natively on MIC but obtained the following error:

[wzhang80@xpacc-serv-03-mic0 plascomcm]$ ./bin/plascomcm.mic 
./bin/plascomcm.mic: error while loading shared libraries: libmpifort.so.12: cannot open shared object file: No such file or directory

I realized that the runtime libraries should be copied to the MIC cards. I did that and added the location of the library to the PATH:

[wzhang80@xpacc-serv-03-mic0 plascomcm]$ echo $PATH
/usr/bin:/usr/sbin:/bin:/sbin:/home/wzhang80/impi/5.0.2.044/mic/lib/
[wzhang80@xpacc-serv-03-mic0 plascomcm]$ which libmpifort.so.12
/home/wzhang80/impi/5.0.2.044/mic/lib/libmpifort.so.12

But I still got the same error:

[wzhang80@xpacc-serv-03-mic0 plascomcm]$ ./bin/plascomcm.mic 
./bin/plascomcm.mic: error while loading shared libraries: libmpifort.so.12: cannot open shared object file: No such file or directory

Ant suggestions? Thanks!

Best regards,
    Wentao

0 Kudos
1 Reply
Wentao_Z_
Beginner
4,182 Views

This issue is solved by setting the locations of library in LD_LIBRARY_PATH.

Best regards,
    Wentao

 

 

0 Kudos
Reply