[petsc-users] ./a.out: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
TAY wee-beng
zonexo at gmail.com
Fri Oct 31 09:55:38 CDT 2014
Hi,
I have no problem building PETSc 3.5.2. However, during building of my
code, it gives the warning:
/ipo: warning #11021: unresolved XauDisposeAuth//
// Referenced in
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libX11.so//
//ipo: warning #11021: unresolved XauGetBestAuthByAddr//
// Referenced in
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libX11.so//
//ipo: warning #11021: unresolved XdmcpWrap//
// Referenced in
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libX11.so//
//ipo: warning #11021: unresolved inflateEnd//
// Referenced in
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libcrypto.so//
//ipo: warning #11021: unresolved deflate//
// Referenced in
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libcrypto.so//
//ipo: warning #11021: unresolved deflateInit_//
// Referenced in
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libcrypto.so//
//ipo: warning #11021: unresolved inflate//
// Referenced in
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libcrypto.so//
//ipo: warning #11021: unresolved deflateEnd//
// Referenced in
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libcrypto.so//
//ipo: warning #11021: unresolved inflateInit_//
// Referenced in
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libcrypto.so//
//ipo: remark #11000: performing multi-file optimizations/
The a.out is still created. However, when running the job, it gives the
error:
/./a.out: error while loading shared libraries: libX11.so.6: cannot open
shared object file: No such file or directory/
I checked and found libX11.so.6 in the /usr/lib64 directory. However, using:
--with-x-lib=/usr/lib64 --with-x-include=/usr/include/X11
can't work.
Btw, I already added --with-x=1 during the building of PETSc.
Also, the a.out works if I run interactively. But if I send the job
using scheduler, it can't work.
It seems that I must statically link the X11 files, is that so?
Do you have a solution?
--
Thank you.
Yours sincerely,
TAY wee-beng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141031/7e858cd1/attachment.html>
More information about the petsc-users
mailing list