Hoi,
if I compile programs by hand, then I get errors like:
Shared object "libX11.so.6" not found
I can solve this by exporting LD_LIBRARY_PATH=/usr/X11R6/lib, but this
is no clean solution.
Following is some example output of `ldd' for a program compiled by
hand:
$ ldd /usr/local/bin/dmenu
/usr/local/bin/dmenu:
-lc.12 => /usr/lib/libc.so.12
-lX11.6 => not found
-lXinerama.1 => not found
Surprisingly (for me), this is no issue when I compile in pkgsrc. The
same program (in a slightly different version):
$ ldd /usr/pkgsrc/x11/dmenu/work/dmenu-3.9/dmenu
/usr/pkgsrc/x11/dmenu/work/dmenu-3.9/dmenu:
-lc.12 => /usr/lib/libc.so.12
-lX11.6 => /usr/X11R6/lib/libX11.so.6
-lXext.6 => /usr/X11R6/lib/libXext.so.6
-lXinerama.1 => /usr/X11R6/lib/libXinerama.so.1
Both commands were run right after each other from the same shell,
hence the library path seems to be compiled in.
How can I solve this?
meillo
Attachment:
signature.asc
Description: Digital signature