# Shared problem

**URL:** <https://forums.developer.nvidia.com/t/shared-problem/155613>\
**Category:** Legacy PGI Compilers (archived)\
**Created:** [September 26, 2020, 12:25pm UTC](https://forums.developer.nvidia.com/t/shared-problem/155613 "2020-09-26T12:25:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lucci](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Lucci](https://forums.developer.nvidia.com/u/Lucci)\
**Post date:** [September 26, 2020, 12:25pm UTC](https://forums.developer.nvidia.com/t/shared-problem/155613/1 "2020-09-26T12:25:49Z")

</div>

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: libnvcpumath.so: cannot open shared object file: No such file or directory  
make[1]: \*\*\* [Makefile:34: cube\_topo.o] Error 127

Thank you very much

---

<div class="post-metadata">

**Author:** ![MatColgrove](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/matcolgrove/32/14047_2.png) [@MatColgrove](https://forums.developer.nvidia.com/u/MatColgrove)\
**Post date:** [September 26, 2020, 8:25pm UTC](https://forums.developer.nvidia.com/t/shared-problem/155613/2 "2020-09-26T20:25:58Z")

</div>

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,  
Mat
