<div dir="ltr">Hi Zhang! <br><div><br></div><div><p>><strong>[hpcszb2013036@ln4 object]$ mpirun -np 4 ./flash4</strong><br>><strong>./flash4: error while loading shared libraries: libmpi.so.20: cannot open shared object file: No such file or directory</strong><br>><strong>./flash4: error while loading shared libraries: libmpi.so.20: cannot open shared object file: No such file or directory</strong></p>I had this same problem. At least in my case, the problem was that FLASH looked for the library <strong>libmpi.so.20 </strong>that didn't exist because mpich provides another similar but with another name, e.g. <b>libmpi.so.40.20.1 </b> .</div><div>The problem was overcome easily creating a symbolic link to give FLASH what it wants to, </div><div><br></div><div> $ ln -s <b>libmpi.so.40.20.1 </b><b>libmpi.so.20 </b></div><div><b><br></b></div><div>Best!</div><div><b> </b></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El jue., 13 jun. 2019 a las 16:14, Slavin, Jonathan (<<a href="mailto:jslavin@cfa.harvard.edu" target="_blank">jslavin@cfa.harvard.edu</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Hi Zhang,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">My system is similar (CentOs 7). I wonder if your Makefile.h uses those environment variables you define in all the places it needs to. For example in my Makefile.h I have:</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div></div>FCOMP = ${MPI_PATH}/bin/mpif90<br>CCOMP = ${MPI_PATH}/bin/mpicc<br>CPPCOMP = ${MPI_PATH}/bin/mpicxx<br>LINK = ${MPI_PATH}/bin/mpif90<div><br></div><div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">and</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><span style="font-family:Arial,Helvetica,sans-serif">LIB_MPE = -L$(MPI_PATH)/lib -lmpe</span></div><br></div><div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Jon</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 11, 2019 at 1:00 PM <<a href="mailto:flash-users-request@flash.uchicago.edu" target="_blank">flash-users-request@flash.uchicago.edu</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">From: Zhang Daoyuan <<a href="mailto:zdy0903@stu.xjtu.edu.cn" target="_blank">zdy0903@stu.xjtu.edu.cn</a>><br>To: "<a href="mailto:flash-users@flash.uchicago.edu" target="_blank">flash-users@flash.uchicago.edu</a>" <<a href="mailto:flash-users@flash.uchicago.edu" target="_blank">flash-users@flash.uchicago.edu</a>><br>Cc: <br>Bcc: <br>Date: Tue, 11 Jun 2019 17:43:44 +0800 (GMT+08:00)<br>Subject: [FLASH-USERS] How to install FLASH4.6<br><p>
<span style="font-family:SimSun">Hi!</span>
</p>
<p>
<span style="font-family:SimSun"> Recently, I need to install FLASH4.6 in a new centOS system. I don't have root authority so I didn't install the mpich, HDF5 and hypre in usr/local/....</span>
</p>
<p>
<span style="font-family:SimSun">I install these on another place, just like below (<strong style="font-family:SimSun;white-space:normal">/home/hpcszb2013036/ziwei/mpich)</strong></span>
</p>
<p>
<strong style="font-family:SimSun"><br>
</strong>
</p>
<p>
<span style="font-family:SimSun">[hpcszb2013036@ln4 ziwei]$ <strong>ls</strong></span>
</p>
<p>
<span style="font-family:SimSun"><span style="font-family:SimSun">FLASH4.6 </span><span style="font-family:SimSun"> <strong>hdf5</strong> <strong>hypre </strong><strong>mpich</strong> </span></span>
</p>
<p>
<span style="font-family:SimSun"><br>
</span>
</p>
<p>
<span style="font-family:SimSun">Also, I change the paths in Makefile.h, just like.</span>
</p>
<p>
<span style="font-family:SimSun"><strong>MPI_PATH = /home/hpcszb2013036/ziwei/mpich</strong><br>
<strong>HDF4_PATH =</strong><br>
<strong>HDF5_PATH = /home/hpcszb2013036/ziwei/hdf5</strong><br>
<strong>HYPRE_PATH = /home/hpcszb2013036/ziwei/hypre</strong><br>
<br>
</span>
</p>
<p>
<span style="font-family:SimSun">However we met the warning when excuting make, just like </span>
</p>
<p>
<span style="font-family:SimSun"><br>
</span>
</p>
<p>
<span style="font-family:SimSun"><strong> </strong><strong>/usr/bin/ld: warning: libmpi.so.20, needed by /home/hpcszb2013036/ziwei/hdf5/lib/libhdf5.so, may conflict with libmpi.so.12</strong><br>
<strong>SUCCESS</strong><br>
</span></p><p>
why there is waring in /usr/bin/ld?
</p>
<p>
<br>
</p>
<p>
And when we do mpirun, it will show an error like
</p>
<p>
<strong>[hpcszb2013036@ln4 object]$ mpirun -np 4 ./flash4</strong><br>
<strong>./flash4: error while loading shared libraries: libmpi.so.20: cannot open shared object file: No such file or directory</strong><br>
<strong>./flash4: error while loading shared libraries: libmpi.so.20: cannot open shared object file: No such file or directory</strong>
</p>
<p>
<br>
</p>
<p>
Maybe there is something wrong in my installation. Is there anyone what it is about? Thank you very much!
</p>
<p>
<br>
</p>
<p>
Zhang
</p>
<p>
<strong></strong>
</p>
<br>
<div>
<br>
</div>
<br>
<p></p>_______________________________________________<br>
flash-users mailing list<br>
<a href="mailto:flash-users@flash.uchicago.edu" target="_blank">flash-users@flash.uchicago.edu</a><br>
<a href="http://flash.uchicago.edu/mailman/listinfo/flash-users" rel="noreferrer" target="_blank">http://flash.uchicago.edu/mailman/listinfo/flash-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-7690269484043858285gmail-m_1396472996427590829gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><img src="https://lh6.googleusercontent.com/mJuf9zI6QC5w6HPVCinnLSkpp-RgufOfl7nw1E_aghDflNhusoRbZTuP_0x-RkECQRhIfvPxGMe6zSt6chyXZ7D5DdqtkZPp0q-TE8itKny8VWObWAiZ1aurYWDO0CtZgvJEXfzu" width="350" height="2" style="font-size: 12.6667px; font-family: Arial; white-space: pre-wrap; border: none;"></div><div dir="ltr">Jonathan D. Slavin</div><div dir="ltr">Astrophysicist - High Energy Astrophysics Division</div><div dir="ltr">Center for Astrophysics | Harvard & Smithsonian</div><div dir="ltr">Office: (617) 496-7981 | Cell: (781) 363-0035<br>60 Garden Street | MS 83 | Cambridge, MA 02138</div></div><div dir="ltr"><span><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9.5pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><img src="https://lh6.googleusercontent.com/mJuf9zI6QC5w6HPVCinnLSkpp-RgufOfl7nw1E_aghDflNhusoRbZTuP_0x-RkECQRhIfvPxGMe6zSt6chyXZ7D5DdqtkZPp0q-TE8itKny8VWObWAiZ1aurYWDO0CtZgvJEXfzu" width="350" height="2" style="border: none;"></span><span style="font-size:9.5pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><br></span></p></span></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-7690269484043858285gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font face="monospace, monospace" style="background-color:rgb(234,209,220)"><i><font color="#000000">PhD Ernesto Zurbriggen</font></i></font><div><font face="monospace, monospace"><i style="background-color:rgb(234,209,220)"><br></i></font><div><span style="background-color:rgb(234,209,220)"><font face="monospace, monospace"><font color="#444444"><b>*</b><i> Consejo Nacional de Investigaciones Científicas y Técnicas </i></font></font><i style="font-size:12.8px;font-family:monospace,monospace"><font color="#274e13"><b>(CONICET)</b></font></i><i style="font-family:monospace,monospace;font-size:12.8px"><font color="#444444">, Instituto de Astronomía Teórica y Experimental </font><font color="#274e13"><b>(IATE)</b>, Argentina</font><font color="#444444">.</font></i></span></div><div><span style="background-color:rgb(234,209,220)"><span style="font-size:12.8px;color:rgb(68,68,68);font-family:monospace,monospace"><b>*</b><i> Universidad Nacional de Córdoba </i></span><i style="font-size:12.8px;font-family:monospace,monospace"><font color="#274e13"><b>(UNC)</b></font></i><i style="font-size:12.8px;color:rgb(68,68,68);font-family:monospace,monospace">, </i><font face="monospace, monospace" style="font-size:12.8px"><i><font color="#444444">Observatorio Astronómico de Córdoba </font></i></font><i style="font-size:12.8px;font-family:monospace,monospace"><font color="#274e13"><b>(OAC)</b>, Argentina</font></i><i style="font-size:12.8px;color:rgb(68,68,68);font-family:monospace,monospace">.</i><br></span></div></div><div><i style="color:rgb(68,68,68);font-family:monospace,monospace;font-size:12.8px;background-color:rgb(234,209,220)"><br></i></div><div><i style="color:rgb(68,68,68);font-family:monospace,monospace;font-size:12.8px;background-color:rgb(234,209,220)">Teléfono: +54 0351 4331064-5, interno 222.</i></div><div><span style="font-size:12.8px"><i><span style="background-color:rgb(234,209,220)"><font color="#0000ff"><u>Laprida 854, Bº Observatorio (CP 5000), Córdoba, Argentina</u></font><font color="#444444">.</font></span><br></i></span><font color="#444444"><br><br><br></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>