<div dir="ltr"><div dir="ltr">On Fri, Sep 6, 2019 at 5:22 PM Konstantinos Kontzialis via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:<br></div><div class="gmail_quote"><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>Hi all,</div><div><br></div><div>I run my code as follows:</div><div><br></div><div>mpiexec -np 2 ./hoac test1.cgns <br></div><div><br></div><div>and I get the following error:<br></div><div><br></div><div>./hoac: error while loading shared libraries: libpetsc.so.3.11: cannot open shared object file: No such file or directory<br>./hoac: error while loading shared libraries: libpetsc.so.3.11: cannot open shared object file: No such file or directory</div></div></blockquote><div><br></div><div>I assume this is Linux. You can fix this at least two ways:</div><div><br></div><div> 1) You can fix your link by using -rpath to point to the PETSc library</div><div><br></div><div> 2) You can put the PETSc library location in your LD_LIBRARY_PATH env variable</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </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>but the libpetsc.so.3.11 exists. <br></div><div><br></div><div>I ls my local petsc installation at:<br></div><div><br></div><div>ls -l $PETSC_DIR/$PETSC_ARCH/lib</div><div><br></div><div>and I get <br></div><div><br></div><div>-rw-r--r--. 1 ** ** 8955614 Sep 4 23:15 libcmumps.a<br>-rw-r--r--. 1 ** ** 8900950 Sep 4 23:15 libdmumps.a<br>-rw-r--r--. 1 ** ** 1655112 Sep 4 23:03 libfblas.a<br>-rw-r--r--. 1 ** ** 29819054 Sep 4 23:03 libflapack.a<br>-rw-r--r--. 1 ** ** 110570758 Sep 4 23:16 libHYPRE.a<br>-rwxr-xr-x. 1 ** ** 1996784 Sep 4 23:05 libmetis.so<br>-rw-r--r--. 1 ** ** 3268440 Sep 4 23:15 libmumps_common.a<br>-rwxr-xr-x. 1 ** ** 1358144 Sep 4 23:05 libparmetis.so<br>lrwxrwxrwx. 1 ** ** 18 Sep 4 23:20 libpetsc.so -> libpetsc.so.3.11.3<br>lrwxrwxrwx. 1 ** ** 18 Sep 4 23:20 libpetsc.so.3.11 -> libpetsc.so.3.11.3<br>-rwxrwxr-x. 1 ** ** 111015280 Sep 4 23:20 libpetsc.so.3.11.3<br>-rw-r--r--. 1 ** ** 2026784 Sep 4 23:15 libpord.a<br>-rw-r--r--. 1 ** ** 80737926 Sep 4 23:12 libscalapack.a<br>-rw-r--r--. 1 ** ** 8902046 Sep 4 23:15 libsmumps.a<br>-rw-r--r--. 1 ** ** 8973822 Sep 4 23:15 libzmumps.a<br>drwxr-xr-x. 3 ** ** 4096 Sep 4 22:55 petsc<br>drwxr-xr-x. 2 ** ** 4096 Sep 4 23:03 pkgconfig</div><div><br></div><div>and I see that the libepetsc.so.3.11 exists as a link.</div><div><br></div><div>Why do I get this error then?</div><div><br></div><div>Regards,</div><div><br></div><div>Kostas<br></div><div><br></div><div><br></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>