# help regarding installation of current develop branch 0.7.1

**URL:** <https://openmc.discourse.group/t/help-regarding-installation-of-current-develop-branch-0-7-1/179>\
**Category:** User Support\
**Created:** [November 9, 2015, 6:23am UTC](https://openmc.discourse.group/t/help-regarding-installation-of-current-develop-branch-0-7-1/179 "2015-11-09T06:23:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![khurrum](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@khurrum](https://openmc.discourse.group/u/khurrum)\
**Post date:** [November 9, 2015, 6:23am UTC](https://openmc.discourse.group/t/help-regarding-installation-of-current-develop-branch-0-7-1/179/1 "2015-11-09T06:23:21Z")

</div>

Hello everyone.

I have run into problem while installing current develop branch. prior to current changes regarding hdf5 only output, i used these commands to install openmc with parallel hdf5

export FC=/opt/phdf5/1.8.15-gnu/bin/h5pfc

cmake -H. -Bbuild  
make -s -C build -j

now i installed parallel hdf5 version 1.8.15 in the path shown above. and set FC=h5pfc (bin directory of HDF5 placed in my path variable). i get this error

– The Fortran compiler identification is GNU  
– Check for working Fortran compiler: /opt/phdf5/1.8.15-gnu/bin/h5pfc  
– Check for working Fortran compiler: /opt/phdf5/1.8.15-gnu/bin/h5pfc – works  
– Detecting Fortran compiler ABI info  
– Detecting Fortran compiler ABI info - done  
– Checking whether /opt/phdf5/1.8.15-gnu/bin/h5pfc supports Fortran 90  
– Checking whether /opt/phdf5/1.8.15-gnu/bin/h5pfc supports Fortran 90 – yes  
– Found HDF5: /opt/phdf5/1.8.15-gnu/lib/libhdf5hl\_fortran.so;/opt/phdf5/1.8.15-gnu/lib/libhdf5\_hl.so;/opt/phdf5/1.8.15-gnu/lib/libhdf5\_fortran.so;/opt/phdf5/1.8.15-gnu/lib/libhdf5.so;-ldl;-lm (found version “1.8.15”)  
CMake Error at CMakeLists.txt:78 (message):  
Parallel HDF5 must be used with MPI.

– Configuring incomplete, errors occurred!  
See also “/home/osboxes/Work/openmc/build/CMakeFiles/CMakeOutput.log”.

i have also tried using FC=mpif90. now the cmake executes successfully. output is given below

– The Fortran compiler identification is GNU  
– Check for working Fortran compiler: /opt/mpich/3.1.3-gnu/bin/mpif90  
– Check for working Fortran compiler: /opt/mpich/3.1.3-gnu/bin/mpif90 – works  
– Detecting Fortran compiler ABI info  
– Detecting Fortran compiler ABI info - done  
– Checking whether /opt/mpich/3.1.3-gnu/bin/mpif90 supports Fortran 90  
– Checking whether /opt/mpich/3.1.3-gnu/bin/mpif90 supports Fortran 90 – yes  
– Detected MPI wrapper: /opt/mpich/3.1.3-gnu/bin/mpif90  
– Found HDF5: /opt/phdf5/1.8.15-gnu/lib/libhdf5hl\_fortran.so;/opt/phdf5/1.8.15-gnu/lib/libhdf5\_hl.so;/opt/phdf5/1.8.15-gnu/lib/libhdf5\_fortran.so;/opt/phdf5/1.8.15-gnu/lib/libhdf5.so;-ldl;-lm (found version “1.8.15”)  
– Using parallel HDF5  
– Found PythonInterp: /usr/bin/python (found version “2.7.6”)  
– Configuring done  
– Generating done  
– Build files have been written to: /home/osboxes/Work/openmc/build

then use the “make -s -C build -j” command. it runs successfully. then i use the "make install " which also happens successfully. but when i use “openmc --version” i get an error

openmc: error while loading shared libraries: libhdf5hl\_fortran.so.10: cannot open shared object file: No such file or directory

can you please help me out with this. what i need to do to sort this error. and now should we use FC=mpif90??

---

<div class="post-metadata">

**Author:** ![paulromano](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/paulromano/32/486_2.png) [@paulromano](https://openmc.discourse.group/u/paulromano)\
**Post date:** [November 9, 2015, 4:17pm UTC](https://openmc.discourse.group/t/help-regarding-installation-of-current-develop-branch-0-7-1/179/2 "2015-11-09T16:17:20Z")

</div>

Yes, in the upcoming release, if you are using MPI (whether in combination with parallel HDF5 or not), you should use FC=mpif90. CMake now handles finding HDF5 and setting the appropriate compiler/linker flags rather than relying on the h5fc/h5pfc wrappers.

As to the error you’re receiving, you need to make sure that the library directory for HDF5 is on your LD\_LIBRARY\_PATH environment variable. So, adding the following to your profile should fix it (assuming you are using bash):

export LD\_LIBRARY\_PATH=/opt/phdf5/1.8.15-gnu/lib:$LD\_LIBRARY\_PATH

Best,  
Paul

---

<div class="post-metadata">

**Author:** ![khurrum](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@khurrum](https://openmc.discourse.group/u/khurrum)\
**Post date:** [November 10, 2015, 3:36pm UTC](https://openmc.discourse.group/t/help-regarding-installation-of-current-develop-branch-0-7-1/179/3 "2015-11-10T15:36:21Z")

</div>

Thanks Paul. I was not able to try it today. Will try it first thing tomorrow and let you know. Thanks for your help.

---

<div class="post-metadata">

**Author:** ![Derek\_Gaston](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@Derek\_Gaston](https://openmc.discourse.group/u/Derek_Gaston)\
**Post date:** [November 10, 2015, 4:47pm UTC](https://openmc.discourse.group/t/help-regarding-installation-of-current-develop-branch-0-7-1/179/4 "2015-11-10T16:47:23Z")

</div>

Paul,

Just a heads up that on the newest version of Mac OSX (El Capitan, 10.11) you can’t count on DYLD\_LIBRARY\_PATH (the equivalent to LD\_LIBRARY\_PATH for OSX).

They have essentially removed it for security reasons.

Instead, you must use rpaths to embed the path to dynamic libraries into your application binary at compile time.

Basically: the time for LD\_LIBRARY\_PATH and DYLD\_LIBRARY\_PATH are at an end.

I haven’t noticed any problems yet with OpenMC due to this, but your email here reminded me about it (we just struggled through this on my own project). So, just thought I would give you guys a heads up.

Derek

---

<div class="post-metadata">

**Author:** ![paulromano](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/paulromano/32/486_2.png) [@paulromano](https://openmc.discourse.group/u/paulromano)\
**Post date:** [November 10, 2015, 5:06pm UTC](https://openmc.discourse.group/t/help-regarding-installation-of-current-develop-branch-0-7-1/179/5 "2015-11-10T17:06:39Z")

</div>

Thanks for pointing that out, Derek! At least for the version of CMake that I am using, it looks like the HDF5 library directory is given as an rpath, so no LD\_LIBRARY\_PATH or DYLD\_LIBRARY\_PATH hacks should be necessary.

King- if you could try the following and give the output of the linker line, that might be helpful in figuring out what’s going on in your case:

cmake -DCMAKE\_VERBOSE\_MAKEFILE=on _sourcedir_  
make

---

<div class="post-metadata">

**Author:** ![khurrum](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@khurrum](https://openmc.discourse.group/u/khurrum)\
**Post date:** [November 11, 2015, 3:47am UTC](https://openmc.discourse.group/t/help-regarding-installation-of-current-develop-branch-0-7-1/179/6 "2015-11-11T03:47:28Z")

</div>

Dear Paul,

It worked! using the LD\_LIBRARY\_PATH for HDF5 fixed the problem. the same solution had to be applied again for libmpifort.so.12 so had to add mpich/lib to LD\_LIBRARY\_PATH also. i am also placing the output of cmake -DCMAKE\_VERBOSE\_MAKEFILE=on here for reference

cmake -H. -Bbuild -DCMAKE\_VERBOSE\_MAKEFILE=on  
– The Fortran compiler identification is GNU  
– Check for working Fortran compiler: /opt/mpich/3.1.3-gnu/bin/mpif90  
– Check for working Fortran compiler: /opt/mpich/3.1.3-gnu/bin/mpif90 – works  
– Detecting Fortran compiler ABI info  
– Detecting Fortran compiler ABI info - done  
– Checking whether /opt/mpich/3.1.3-gnu/bin/mpif90 supports Fortran 90  
– Checking whether /opt/mpich/3.1.3-gnu/bin/mpif90 supports Fortran 90 – yes  
– Detected MPI wrapper: /opt/mpich/3.1.3-gnu/bin/mpif90  
– Found HDF5: /opt/phdf5/1.8.15-gnu/lib/libhdf5hl\_fortran.so;/opt/phdf5/1.8.15-gnu/lib/libhdf5\_hl.so;/opt/phdf5/1.8.15-gnu/lib/libhdf5\_fortran.so;/opt/phdf5/1.8.15-gnu/lib/libhdf5.so;-ldl;-lm (found version “1.8.15”)  
– Using parallel HDF5  
– Found PythonInterp: /usr/bin/python (found version “2.7.6”)  
– Configuring done  
– Generating done  
– Build files have been written to: /home/osboxes/Work/openmc/build  
osboxes@osboxes:~/Work/openmc$ make -s -C build -j  
Scanning dependencies of target fox\_fsys  
[1%] [2%] [3%] Building Fortran object src/xml/fox/fsys/CMakeFiles/fox\_fsys.dir/fox\_m\_fsys\_abort\_flush.F90.o  
Building Fortran object src/xml/fox/fsys/CMakeFiles/fox\_fsys.dir/fox\_m\_fsys\_realtypes.f90.o  
Building Fortran object src/xml/fox/fsys/CMakeFiles/fox\_fsys.dir/fox\_m\_fsys\_array\_str.F90.o  
[7%] [7%] [7%] [7%] [7%] Building Fortran object src/xml/fox/fsys/CMakeFiles/fox\_fsys.dir/fox\_m\_fsys\_count\_parse\_input.F90.o  
Building Fortran object src/xml/fox/fsys/CMakeFiles/fox\_fsys.dir/fox\_m\_fsys\_string.F90.o  
Building Fortran object src/xml/fox/fsys/CMakeFiles/fox\_fsys.dir/fox\_m\_fsys\_parse\_input.F90.o  
Building Fortran object src/xml/fox/fsys/CMakeFiles/fox\_fsys.dir/fox\_m\_fsys\_format.F90.o  
[8%] Building Fortran object src/xml/fox/fsys/CMakeFiles/fox\_fsys.dir/fox\_m\_fsys\_string\_list.F90.o  
Building Fortran object src/xml/fox/fsys/CMakeFiles/fox\_fsys.dir/fox\_m\_fsys\_varstr.F90.o  
Linking Fortran static library …/…/…/…/lib/libfox\_fsys.a  
/usr/bin/ar cr …/…/…/…/lib/libfox\_fsys.a CMakeFiles/fox\_fsys.dir/fox\_m\_fsys\_realtypes.f90.o CMakeFiles/fox\_fsys.dir/fox\_m\_fsys\_abort\_flush.F90.o CMakeFiles/fox\_fsys.dir/fox\_m\_fsys\_array\_str.F90.o CMakeFiles/fox\_fsys.dir/fox\_m\_fsys\_count\_parse\_input.F90.o CMakeFiles/fox\_fsys.dir/fox\_m\_fsys\_format.F90.o CMakeFiles/fox\_fsys.dir/fox\_m\_fsys\_parse\_input.F90.o CMakeFiles/fox\_fsys.dir/fox\_m\_fsys\_string.F90.o CMakeFiles/fox\_fsys.dir/fox\_m\_fsys\_string\_list.F90.o CMakeFiles/fox\_fsys.dir/fox\_m\_fsys\_varstr.F90.o  
/usr/bin/ranlib …/…/…/…/lib/libfox\_fsys.a  
[8%] Built target fox\_fsys  
Scanning dependencies of target fox\_utils  
[9%] [10%] Building Fortran object src/xml/fox/utils/CMakeFiles/fox\_utils.dir/fox\_m\_utils\_uri.F90.o  
Building Fortran object src/xml/fox/utils/CMakeFiles/fox\_utils.dir/fox\_m\_utils\_mtprng.F90.o  
[11%] Building Fortran object src/xml/fox/utils/CMakeFiles/fox\_utils.dir/fox\_m\_utils\_uuid.F90.o  
[11%] Building Fortran object src/xml/fox/utils/CMakeFiles/fox\_utils.dir/FoX\_utils.f90.o  
Linking Fortran static library …/…/…/…/lib/libfox\_utils.a  
/usr/bin/ar cr …/…/…/…/lib/libfox\_utils.a CMakeFiles/fox\_utils.dir/FoX\_utils.f90.o CMakeFiles/fox\_utils.dir/fox\_m\_utils\_mtprng.F90.o CMakeFiles/fox\_utils.dir/fox\_m\_utils\_uri.F90.o CMakeFiles/fox\_utils.dir/fox\_m\_utils\_uuid.F90.o  
/usr/bin/ranlib …/…/…/…/lib/libfox\_utils.a  
[11%] Built target fox\_utils  
Scanning dependencies of target fox\_common  
[13%] [13%] [13%] Building Fortran object src/xml/fox/common/CMakeFiles/fox\_common.dir/m\_common\_error.F90.o  
Building Fortran object src/xml/fox/common/CMakeFiles/fox\_common.dir/m\_common\_charset.F90.o  
Building Fortran object src/xml/fox/common/CMakeFiles/fox\_common.dir/m\_common\_content\_model.F90.o  
[14%] Building Fortran object src/xml/fox/common/CMakeFiles/fox\_common.dir/m\_common\_notations.F90.o  
[15%] [16%] Building Fortran object src/xml/fox/common/CMakeFiles/fox\_common.dir/m\_common\_namecheck.F90.o  
Building Fortran object src/xml/fox/common/CMakeFiles/fox\_common.dir/m\_common\_entities.F90.o  
[17%] Building Fortran object src/xml/fox/common/CMakeFiles/fox\_common.dir/m\_common\_element.F90.o  
[19%] [19%] Building Fortran object src/xml/fox/common/CMakeFiles/fox\_common.dir/m\_common\_attrs.F90.o  
Building Fortran object src/xml/fox/common/CMakeFiles/fox\_common.dir/m\_common\_struct.F90.o  
[20%] [20%] [21%] [22%] [23%] Building Fortran object src/xml/fox/common/CMakeFiles/fox\_common.dir/m\_common\_elstack.F90.o  
Building Fortran object src/xml/fox/common/CMakeFiles/fox\_common.dir/m\_common\_buffer.F90.o  
[24%] Building Fortran object src/xml/fox/common/CMakeFiles/fox\_common.dir/m\_common\_entity\_expand.F90.o  
Building Fortran object src/xml/fox/common/CMakeFiles/fox\_common.dir/FoX\_common.F90.o  
Building Fortran object src/xml/fox/common/CMakeFiles/fox\_common.dir/m\_common\_namespaces.F90.o  
Building Fortran object src/xml/fox/common/CMakeFiles/fox\_common.dir/m\_common\_io.F90.o  
Linking Fortran static library …/…/…/…/lib/libfox\_common.a  
/usr/bin/ar cr …/…/…/…/lib/libfox\_common.a CMakeFiles/fox\_common.dir/FoX\_common.F90.o CMakeFiles/fox\_common.dir/m\_common\_attrs.F90.o CMakeFiles/fox\_common.dir/m\_common\_buffer.F90.o CMakeFiles/fox\_common.dir/m\_common\_charset.F90.o CMakeFiles/fox\_common.dir/m\_common\_content\_model.F90.o CMakeFiles/fox\_common.dir/m\_common\_element.F90.o CMakeFiles/fox\_common.dir/m\_common\_elstack.F90.o CMakeFiles/fox\_common.dir/m\_common\_entities.F90.o CMakeFiles/fox\_common.dir/m\_common\_entity\_expand.F90.o CMakeFiles/fox\_common.dir/m\_common\_error.F90.o CMakeFiles/fox\_common.dir/m\_common\_io.F90.o CMakeFiles/fox\_common.dir/m\_common\_namecheck.F90.o CMakeFiles/fox\_common.dir/m\_common\_namespaces.F90.o CMakeFiles/fox\_common.dir/m\_common\_notations.F90.o CMakeFiles/fox\_common.dir/m\_common\_struct.F90.o  
/usr/bin/ranlib …/…/…/…/lib/libfox\_common.a  
[24%] Built target fox\_common  
Scanning dependencies of target fox\_sax  
Scanning dependencies of target fox\_wxml  
[26%] [26%] Building Fortran object src/xml/fox/wxml/CMakeFiles/fox\_wxml.dir/m\_wxml\_escape.F90.o  
Building Fortran object src/xml/fox/sax/CMakeFiles/fox\_sax.dir/m\_sax\_xml\_source.F90.o  
[27%] Building Fortran object src/xml/fox/wxml/CMakeFiles/fox\_wxml.dir/m\_wxml\_core.F90.o  
[28%] Building Fortran object src/xml/fox/sax/CMakeFiles/fox\_sax.dir/m\_sax\_reader.F90.o  
[29%] Building Fortran object src/xml/fox/sax/CMakeFiles/fox\_sax.dir/m\_sax\_types.F90.o  
[30%] Building Fortran object src/xml/fox/sax/CMakeFiles/fox\_sax.dir/m\_sax\_tokenizer.F90.o  
[31%] Building Fortran object src/xml/fox/wxml/CMakeFiles/fox\_wxml.dir/m\_wxml\_overloads.F90.o  
[32%] Building Fortran object src/xml/fox/sax/CMakeFiles/fox\_sax.dir/m\_sax\_parser.F90.o  
[33%] Building Fortran object src/xml/fox/wxml/CMakeFiles/fox\_wxml.dir/FoX\_wxml.f90.o  
Linking Fortran static library …/…/…/…/lib/libfox\_wxml.a  
/usr/bin/ar cr …/…/…/…/lib/libfox\_wxml.a CMakeFiles/fox\_wxml.dir/FoX\_wxml.f90.o CMakeFiles/fox\_wxml.dir/m\_wxml\_core.F90.o CMakeFiles/fox\_wxml.dir/m\_wxml\_escape.F90.o CMakeFiles/fox\_wxml.dir/m\_wxml\_overloads.F90.o  
/usr/bin/ranlib …/…/…/…/lib/libfox\_wxml.a  
[33%] Built target fox\_wxml  
[34%] Building Fortran object src/xml/fox/sax/CMakeFiles/fox\_sax.dir/m\_sax\_operate.F90.o  
[35%] Building Fortran object src/xml/fox/sax/CMakeFiles/fox\_sax.dir/FoX\_sax.f90.o  
Linking Fortran static library …/…/…/…/lib/libfox\_sax.a  
/usr/bin/ar cr …/…/…/…/lib/libfox\_sax.a CMakeFiles/fox\_sax.dir/FoX\_sax.f90.o CMakeFiles/fox\_sax.dir/m\_sax\_operate.F90.o CMakeFiles/fox\_sax.dir/m\_sax\_parser.F90.o CMakeFiles/fox\_sax.dir/m\_sax\_reader.F90.o CMakeFiles/fox\_sax.dir/m\_sax\_tokenizer.F90.o CMakeFiles/fox\_sax.dir/m\_sax\_types.F90.o CMakeFiles/fox\_sax.dir/m\_sax\_xml\_source.F90.o  
/usr/bin/ranlib …/…/…/…/lib/libfox\_sax.a  
[35%] Built target fox\_sax  
Scanning dependencies of target fox\_dom  
[36%] Building Fortran object src/xml/fox/dom/CMakeFiles/fox\_dom.dir/m\_dom\_error.f90.o  
[37%] Building Fortran object src/xml/fox/dom/CMakeFiles/fox\_dom.dir/m\_dom\_dom.F90.o  
[39%] [39%] [39%] Building Fortran object src/xml/fox/dom/CMakeFiles/fox\_dom.dir/m\_dom\_extras.F90.o  
Building Fortran object src/xml/fox/dom/CMakeFiles/fox\_dom.dir/m\_dom\_parse.f90.o  
Building Fortran object src/xml/fox/dom/CMakeFiles/fox\_dom.dir/m\_dom\_utils.f90.o  
[40%] Building Fortran object src/xml/fox/dom/CMakeFiles/fox\_dom.dir/FoX\_dom.f90.o  
Linking Fortran static library …/…/…/…/lib/libfox\_dom.a  
/usr/bin/ar cr …/…/…/…/lib/libfox\_dom.a CMakeFiles/fox\_dom.dir/FoX\_dom.f90.o CMakeFiles/fox\_dom.dir/m\_dom\_error.f90.o CMakeFiles/fox\_dom.dir/m\_dom\_parse.f90.o CMakeFiles/fox\_dom.dir/m\_dom\_utils.f90.o CMakeFiles/fox\_dom.dir/m\_dom\_dom.F90.o CMakeFiles/fox\_dom.dir/m\_dom\_extras.F90.o  
/usr/bin/ranlib …/…/…/…/lib/libfox\_dom.a  
[40%] Built target fox\_dom  
Scanning dependencies of target openmc  
[41%] [42%] [43%] Building Fortran object CMakeFiles/openmc.dir/src/constants.F90.o  
[43%] Building Fortran object CMakeFiles/openmc.dir/src/endf\_header.F90.o  
[45%] [44%] [45%] Building Fortran object CMakeFiles/openmc.dir/src/bank\_header.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/mesh\_header.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/dict\_header.F90.o  
[46%] Building Fortran object CMakeFiles/openmc.dir/src/material\_header.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/source\_header.F90.o  
[47%] [48%] [48%] Building Fortran object CMakeFiles/openmc.dir/src/stl\_vector.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/message\_passing.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/xml/openmc\_fox.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/ppmlib.F90.o  
[49%] Building Fortran object CMakeFiles/openmc.dir/src/progress\_header.F90.o  
[50%] [51%] Building Fortran object CMakeFiles/openmc.dir/src/list\_header.F90.o  
[52%] [53%] [54%] Building Fortran object CMakeFiles/openmc.dir/src/cmfd\_header.F90.o  
[55%] Building Fortran object CMakeFiles/openmc.dir/src/geometry\_header.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/plot\_header.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/trigger\_header.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/surface\_header.F90.o  
[56%] [57%] Building Fortran object CMakeFiles/openmc.dir/src/timer\_header.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/vector\_header.F90.o  
[58%] Building Fortran object CMakeFiles/openmc.dir/src/tally\_header.F90.o  
[59%] Building Fortran object CMakeFiles/openmc.dir/src/ace\_header.F90.o  
[60%] Building Fortran object CMakeFiles/openmc.dir/src/set\_header.F90.o  
[61%] Building Fortran object CMakeFiles/openmc.dir/src/matrix\_header.F90.o  
[62%] Building Fortran object CMakeFiles/openmc.dir/src/global.F90.o  
[64%] [64%] [65%] Building Fortran object CMakeFiles/openmc.dir/src/random\_lcg.F90.o  
[66%] [67%] Building Fortran object CMakeFiles/openmc.dir/src/error.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/cmfd\_prod\_operator.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/cmfd\_loss\_operator.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/tally\_initialize.F90.o  
[67%] Building Fortran object CMakeFiles/openmc.dir/src/math.F90.o  
[68%] [69%] [70%] Building Fortran object CMakeFiles/openmc.dir/src/string.F90.o  
[71%] Building Fortran object CMakeFiles/openmc.dir/src/particle\_header.F90.o  
[72%] Building Fortran object CMakeFiles/openmc.dir/src/search.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/xml\_interface.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/hdf5\_interface.F90.o  
[73%] Building Fortran object CMakeFiles/openmc.dir/src/cmfd\_solver.F90.o  
[73%] Building Fortran object CMakeFiles/openmc.dir/src/mesh.F90.o  
[74%] [75%] Building Fortran object CMakeFiles/openmc.dir/src/interpolation.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/endf.F90.o  
[76%] Building Fortran object CMakeFiles/openmc.dir/src/fission.F90.o  
[77%] Building Fortran object CMakeFiles/openmc.dir/src/output.F90.o  
[78%] Building Fortran object CMakeFiles/openmc.dir/src/eigenvalue.F90.o  
[80%] [80%] Building Fortran object CMakeFiles/openmc.dir/src/track\_output.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/particle\_restart\_write.F90.o  
[81%] Building Fortran object CMakeFiles/openmc.dir/src/tally.F90.o  
[81%] [82%] [83%] [84%] Building Fortran object CMakeFiles/openmc.dir/src/energy\_grid.F90.o  
[84%] Building Fortran object CMakeFiles/openmc.dir/src/cmfd\_data.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/state\_point.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/summary.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/ace.F90.o  
[85%] Building Fortran object CMakeFiles/openmc.dir/src/cross\_section.F90.o  
[86%] Building Fortran object CMakeFiles/openmc.dir/src/physics.F90.o  
[87%] [88%] Building Fortran object CMakeFiles/openmc.dir/src/cmfd\_input.F90.o  
[89%] Building Fortran object CMakeFiles/openmc.dir/src/geometry.F90.o  
[90%] Building Fortran object CMakeFiles/openmc.dir/src/trigger.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/finalize.F90.o  
[91%] Building Fortran object CMakeFiles/openmc.dir/src/cmfd\_execute.F90.o  
[92%] Building Fortran object CMakeFiles/openmc.dir/src/input\_xml.F90.o  
[93%] [94%] Building Fortran object CMakeFiles/openmc.dir/src/source.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/tracking.F90.o  
[95%] Building Fortran object CMakeFiles/openmc.dir/src/plot.F90.o  
[96%] Building Fortran object CMakeFiles/openmc.dir/src/particle\_restart.F90.o  
[97%] Building Fortran object CMakeFiles/openmc.dir/src/simulation.F90.o  
[98%] Building Fortran object CMakeFiles/openmc.dir/src/initialize.F90.o  
[99%] [100%] Building Fortran object CMakeFiles/openmc.dir/src/doppler.F90.o  
Building Fortran object CMakeFiles/openmc.dir/src/main.F90.o  
Linking Fortran executable bin/openmc  
/opt/mpich/3.1.3-gnu/bin/mpif90 CMakeFiles/openmc.dir/src/input\_xml.F90.o CMakeFiles/openmc.dir/src/ppmlib.F90.o CMakeFiles/openmc.dir/src/geometry\_header.F90.o CMakeFiles/openmc.dir/src/tally\_initialize.F90.o CMakeFiles/openmc.dir/src/source.F90.o CMakeFiles/openmc.dir/src/cmfd\_data.F90.o CMakeFiles/openmc.dir/src/tracking.F90.o CMakeFiles/openmc.dir/src/plot\_header.F90.o CMakeFiles/openmc.dir/src/ace.F90.o CMakeFiles/openmc.dir/src/cmfd\_prod\_operator.F90.o CMakeFiles/openmc.dir/src/set\_header.F90.o CMakeFiles/openmc.dir/src/state\_point.F90.o CMakeFiles/openmc.dir/src/interpolation.F90.o CMakeFiles/openmc.dir/src/geometry.F90.o CMakeFiles/openmc.dir/src/ace\_header.F90.o CMakeFiles/openmc.dir/src/cross\_section.F90.o CMakeFiles/openmc.dir/src/particle\_restart.F90.o CMakeFiles/openmc.dir/src/material\_header.F90.o CMakeFiles/openmc.dir/src/message\_passing.F90.o CMakeFiles/openmc.dir/src/error.F90.o CMakeFiles/openmc.dir/src/dict\_header.F90.o CMakeFiles/openmc.dir/src/endf.F90.o CMakeFiles/openmc.dir/src/doppler.F90.o CMakeFiles/openmc.dir/src/list\_header.F90.o CMakeFiles/openmc.dir/src/eigenvalue.F90.o CMakeFiles/openmc.dir/src/trigger.F90.o CMakeFiles/openmc.dir/src/progress\_header.F90.o CMakeFiles/openmc.dir/src/simulation.F90.o CMakeFiles/openmc.dir/src/particle\_restart\_write.F90.o CMakeFiles/openmc.dir/src/mesh.F90.o CMakeFiles/openmc.dir/src/physics.F90.o CMakeFiles/openmc.dir/src/cmfd\_solver.F90.o CMakeFiles/openmc.dir/src/vector\_header.F90.o CMakeFiles/openmc.dir/src/search.F90.o CMakeFiles/openmc.dir/src/particle\_header.F90.o CMakeFiles/openmc.dir/src/main.F90.o CMakeFiles/openmc.dir/src/tally.F90.o CMakeFiles/openmc.dir/src/string.F90.o CMakeFiles/openmc.dir/src/finalize.F90.o CMakeFiles/openmc.dir/src/source\_header.F90.o CMakeFiles/openmc.dir/src/surface\_header.F90.o CMakeFiles/openmc.dir/src/endf\_header.F90.o CMakeFiles/openmc.dir/src/xml\_interface.F90.o CMakeFiles/openmc.dir/src/plot.F90.o CMakeFiles/openmc.dir/src/random\_lcg.F90.o CMakeFiles/openmc.dir/src/timer\_header.F90.o CMakeFiles/openmc.dir/src/constants.F90.o CMakeFiles/openmc.dir/src/fission.F90.o CMakeFiles/openmc.dir/src/math.F90.o CMakeFiles/openmc.dir/src/energy\_grid.F90.o CMakeFiles/openmc.dir/src/initialize.F90.o CMakeFiles/openmc.dir/src/hdf5\_interface.F90.o CMakeFiles/openmc.dir/src/global.F90.o CMakeFiles/openmc.dir/src/matrix\_header.F90.o CMakeFiles/openmc.dir/src/mesh\_header.F90.o CMakeFiles/openmc.dir/src/cmfd\_loss\_operator.F90.o CMakeFiles/openmc.dir/src/cmfd\_input.F90.o CMakeFiles/openmc.dir/src/summary.F90.o CMakeFiles/openmc.dir/src/output.F90.o CMakeFiles/openmc.dir/src/trigger\_header.F90.o CMakeFiles/openmc.dir/src/tally\_header.F90.o CMakeFiles/openmc.dir/src/track\_output.F90.o CMakeFiles/openmc.dir/src/cmfd\_header.F90.o CMakeFiles/openmc.dir/src/bank\_header.F90.o CMakeFiles/openmc.dir/src/cmfd\_execute.F90.o CMakeFiles/openmc.dir/src/stl\_vector.F90.o CMakeFiles/openmc.dir/src/xml/openmc\_fox.F90.o -o bin/openmc -rdynamic -fopenmp -L/opt/phdf5/1.8.15-gnu/lib /opt/phdf5/1.8.15-gnu/lib/libhdf5hl\_fortran.so /opt/phdf5/1.8.15-gnu/lib/libhdf5\_hl.so /opt/phdf5/1.8.15-gnu/lib/libhdf5\_fortran.so /opt/phdf5/1.8.15-gnu/lib/libhdf5.so -ldl -lm lib/libfox\_dom.a lib/libfox\_wxml.a lib/libfox\_sax.a lib/libfox\_common.a lib/libfox\_utils.a lib/libfox\_fsys.a -Wl,-rpath,/opt/phdf5/1.8.15-gnu/lib:  
[100%] Built target openmc

thanks for your help 🙂

---

<div class="post-metadata">

**Author:** ![paulromano](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/paulromano/32/486_2.png) [@paulromano](https://openmc.discourse.group/u/paulromano)\
**Post date:** [November 11, 2015, 2:24pm UTC](https://openmc.discourse.group/t/help-regarding-installation-of-current-develop-branch-0-7-1/179/7 "2015-11-11T14:24:34Z")

</div>

Glad to hear it worked, although now I’m even more confused because according to the output, the library directory should have been embedded in the executable so that you shouldn’t have needed to set LD\_LIBRARY\_PATH. I believe mpif90 also uses rpath (at least for MPICH) so that nothing special should be needed at run-time.

One more request: can you run the following command on the openmc executable?

objdump -p build/bin/openmc | egrep ‘RPATH|RUNPATH’

Thanks,  
Paul

---

<div class="post-metadata">

**Author:** ![khurrum](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@khurrum](https://openmc.discourse.group/u/khurrum)\
**Post date:** [November 13, 2015, 4:48am UTC](https://openmc.discourse.group/t/help-regarding-installation-of-current-develop-branch-0-7-1/179/8 "2015-11-13T04:48:10Z")

</div>

Hello Paul,

The output of the command is

RUNPATH /opt/phdf5/1.8.15-gnu/lib::/opt/mpich/3.1.3-gnu/lib
