[petsc-users] error at run time
Matthew Knepley
knepley at gmail.com
Sat Sep 7 01:40:48 CDT 2019
On Fri, Sep 6, 2019 at 5:22 PM Konstantinos Kontzialis via petsc-users <
petsc-users at mcs.anl.gov> wrote:
> Hi all,
>
> I run my code as follows:
>
> mpiexec -np 2 ./hoac test1.cgns
>
> and I get the following error:
>
> ./hoac: error while loading shared libraries: libpetsc.so.3.11: cannot
> open shared object file: No such file or directory
> ./hoac: error while loading shared libraries: libpetsc.so.3.11: cannot
> open shared object file: No such file or directory
>
I assume this is Linux. You can fix this at least two ways:
1) You can fix your link by using -rpath to point to the PETSc library
2) You can put the PETSc library location in your LD_LIBRARY_PATH env
variable
Thanks,
Matt
> but the libpetsc.so.3.11 exists.
>
> I ls my local petsc installation at:
>
> ls -l $PETSC_DIR/$PETSC_ARCH/lib
>
> and I get
>
> -rw-r--r--. 1 ** ** 8955614 Sep 4 23:15 libcmumps.a
> -rw-r--r--. 1 ** ** 8900950 Sep 4 23:15 libdmumps.a
> -rw-r--r--. 1 ** ** 1655112 Sep 4 23:03 libfblas.a
> -rw-r--r--. 1 ** ** 29819054 Sep 4 23:03 libflapack.a
> -rw-r--r--. 1 ** ** 110570758 Sep 4 23:16 libHYPRE.a
> -rwxr-xr-x. 1 ** ** 1996784 Sep 4 23:05 libmetis.so
> -rw-r--r--. 1 ** ** 3268440 Sep 4 23:15 libmumps_common.a
> -rwxr-xr-x. 1 ** ** 1358144 Sep 4 23:05 libparmetis.so
> lrwxrwxrwx. 1 ** ** 18 Sep 4 23:20 libpetsc.so ->
> libpetsc.so.3.11.3
> lrwxrwxrwx. 1 ** ** 18 Sep 4 23:20 libpetsc.so.3.11 ->
> libpetsc.so.3.11.3
> -rwxrwxr-x. 1 ** ** 111015280 Sep 4 23:20 libpetsc.so.3.11.3
> -rw-r--r--. 1 ** ** 2026784 Sep 4 23:15 libpord.a
> -rw-r--r--. 1 ** ** 80737926 Sep 4 23:12 libscalapack.a
> -rw-r--r--. 1 ** ** 8902046 Sep 4 23:15 libsmumps.a
> -rw-r--r--. 1 ** ** 8973822 Sep 4 23:15 libzmumps.a
> drwxr-xr-x. 3 ** ** 4096 Sep 4 22:55 petsc
> drwxr-xr-x. 2 ** ** 4096 Sep 4 23:03 pkgconfig
>
> and I see that the libepetsc.so.3.11 exists as a link.
>
> Why do I get this error then?
>
> Regards,
>
> Kostas
>
>
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190907/93f7cf90/attachment.html>
More information about the petsc-users
mailing list