/usr/bin/nxagent: error while loading shared libraries: libXcomp.so.3: cannot open shared object file: No such file or directory

1,228 views
Skip to first unread message

cognitive.li...@gmail.com

unread,
Apr 22, 2011, 1:21:33 PM4/22/11
to ne...@googlegroups.com
This error is mentioned in the troubleshooting section of some
published docs. The solution described is to build and install
nxcomp. It's evident why the standard "world" installation for the
whole kit failed- the nxcomp package is not fully developed. There is
no 'install' target in the Makefile. So anyone who needs nxcomp has
to do things manually.

This is what I tried:

$ ./configure
$ make

That part was documented in nxcomp/README. Then I figured out that
these steps are also needed:

$ ln -s /usr/local/nx/nxcomp/libXcomp.so.3 /usr/lib/libXcomp.so.3
$ ln -s /usr/local/nx/nxcomp/libXcomp.so /usr/lib/libXcomp.so
$ ln -s /usr/local/nx/nxcomp/libXcomp.so.3.4.0 /usr/lib/libXcomp.so.3.4.0
$ ldconfig /usr/local/nx/nxcomp/libXcomp*
$ ldconfig /usr/lib/libXcomp*

I verifed that the library is now supposed to be found:

$ ldd /usr/bin/nxagent

libfreetype.so.6 => /usr/lib/libfreetype.so.6
libXext.so.6 => /usr/lib/libXext.so.6
libX11.so.6 => /usr/lib/libX11.so.6
libz.so.1 => /usr/lib/libz.so.1
libm.so.6 => /lib/libm.so.6
libXpm.so.4 => /usr/lib/libXpm.so.4
libXcomp.so.3 => /usr/lib/libXcomp.so.3
libXcompext.so.3 => not found
libXcompshad.so.3 => not found
libXrender.so.1 => /usr/lib/libXrender.so.1
libXfixes.so.3 => /usr/lib/libXfixes.so.3
libXtst.so.6 => /usr/lib/libXtst.so.6
libXdamage.so.1 => /usr/lib/libXdamage.so.1
libXrandr.so.2 => /usr/lib/libXrandr.so.2
libXcomposite.so.1 => /usr/lib/libXcomposite.so.1
libc.so.6 => /lib/libc.so.6
libXau.so.6 => /usr/lib/libXau.so.6
libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0
libxcb.so.1 => /usr/lib/libxcb.so.1
libdl.so.2 => /lib/libdl.so.2
/lib/ld-linux.so.2
libpng12.so.0 => /usr/lib/libpng12.so.0
libjpeg.so.62 => /usr/lib/libjpeg.so.62
libstdc++.so.6 => /usr/lib/libstdc++.so.6
libgcc_s.so.1 => /lib/libgcc_s.so.1
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6

Two libs are still missing - but that's not the current problem. Even
though libXcomp.so.3 is found by ldd, it's still missing when nxagent
runs:

/usr/bin/nxagent: error while loading shared libraries: libXcomp.so.3: cannot open shared object file: No such file or directory

Why is nxagent failing to find it on execution, but then finding it
when ldd probes it?

Reply all
Reply to author
Forward
0 new messages