# SMOKE shared libraries error

**URL:** <https://forum.cmascenter.org/t/smoke-shared-libraries-error/1035>\
**Category:** Run Errors and Warnings\
**Created:** [October 11, 2019, 12:29pm UTC](https://forum.cmascenter.org/t/smoke-shared-libraries-error/1035 "2019-10-11T12:29:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![NRiceKYDAQ](https://avatars.discourse-cdn.com/v4/letter/n/3e96dc/32.png) [@NRiceKYDAQ](https://forum.cmascenter.org/u/NRiceKYDAQ)\
**Post date:** [October 11, 2019, 12:29pm UTC](https://forum.cmascenter.org/t/smoke-shared-libraries-error/1035/1 "2019-10-11T12:29:21Z")

</div>

I am new to SMOKE and emissions modeling in general and I am having an issue trying to run the test case in SMOKE. I am getting the error below. Any help would be greatly appreciated. Thank you!

/home/nrice/smoke//subsys/smoke/Linux2\_x86\_64ifort/smkinven: error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory  
0.000u 0.000s 0:00.00 0.0% 0+0k 0+0io 0pf+0w  
/home/nrice/smoke//subsys/smoke/Linux2\_x86\_64ifort/spcmat: error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory  
0.000u 0.000s 0:00.00 0.0% 0+0k 0+0io 0pf+0w  
/home/nrice/smoke//subsys/smoke/Linux2\_x86\_64ifort/grdmat: error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory  
0.000u 0.000s 0:00.00 0.0% 0+0k 0+0io 0pf+0w  
/home/nrice/smoke//subsys/smoke/Linux2\_x86\_64ifort/smkreport: error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory  
0.000u 0.000s 0:00.00 0.0% 0+0k 0+0io 0pf+0w  
Running part 2, for 20050710 …  
Running part 4, for 20050710…  
/home/nrice/smoke//subsys/smoke/Linux2\_x86\_64ifort/temporal: error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory  
0.000u 0.000s 0:00.00 0.0% 0+0k 0+0io 0pf+0w  
/home/nrice/smoke//subsys/smoke/Linux2\_x86\_64ifort/smkmerge: error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory  
0.000u 0.000s 0:00.00 0.0% 0+0k 0+0io 0pf+0w  
/home/nrice/smoke//subsys/smoke/Linux2\_x86\_64ifort/smkreport: error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory  
0.000u 0.000s 0:00.00 0.0% 0+0k 0+0io 0pf+0w

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [October 13, 2019, 7:40pm UTC](https://forum.cmascenter.org/t/smoke-shared-libraries-error/1035/2 "2019-10-13T19:40:58Z")

</div>

Do your compile and link flags have `-qopenmp` in them? If not, add it and see what happens.

---

<div class="post-metadata">

**Author:** ![epenning](https://avatars.discourse-cdn.com/v4/letter/e/da6949/32.png) [@epenning](https://forum.cmascenter.org/u/epenning)\
**Post date:** [November 20, 2019, 8:48pm UTC](https://forum.cmascenter.org/t/smoke-shared-libraries-error/1035/3 "2019-11-20T20:48:53Z")

</div>

@NRiceKYDAQ Did you resolve this issue? I’m getting the same error trying to run the test case with SMOKE v4.7.  
@cjcoats Do I add “-qopenmp” to the Makeinclude file at $SMK\_HOME/subsys/smoke/src/, then do “make clean” and then “make”?

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [November 20, 2019, 10:31pm UTC](https://forum.cmascenter.org/t/smoke-shared-libraries-error/1035/4 "2019-11-20T22:31:00Z")

</div>

Alternatively, this might be a `LD_LIBRARY_PATH` problem. Go to the directory where the Intel compilers are installed, and find the directory where _libiomp_ lives (`find . -name 'libiomp.*'`) and make sure that this directory is in it: if this directory is `/foo/intel/lib`, then

`setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:/foo/intel/lib"`

and try _make_ for SMOKE again.

---

<div class="post-metadata">

**Author:** ![NRiceKYDAQ](https://avatars.discourse-cdn.com/v4/letter/n/3e96dc/32.png) [@NRiceKYDAQ](https://forum.cmascenter.org/u/NRiceKYDAQ)\
**Post date:** [January 6, 2020, 1:17pm UTC](https://forum.cmascenter.org/t/smoke-shared-libraries-error/1035/5 "2020-01-06T13:17:59Z")

</div>

@epenning I was using a fresh install of Ubuntu and did not have the /opt/intel directory installed. I installed Intel Parallel Studio XE with root permission and it fixed this issue.

---

<div class="post-metadata">

**Author:** ![xiaoyu](https://avatars.discourse-cdn.com/v4/letter/x/b9e5f3/32.png) [@xiaoyu](https://forum.cmascenter.org/u/xiaoyu)\
**Post date:** [April 7, 2020, 11:51pm UTC](https://forum.cmascenter.org/t/smoke-shared-libraries-error/1035/6 "2020-04-07T23:51:10Z")

</div>

@epenning @NRiceKYDAQ Sorry, I am new to SMOKE. How to add “-qopenmp” to the Makeinclude file? Thanks in advance.
