I have installed XnView 1.68 as in the Readme.txt under the directory /opt/xnview/ as all other programs in my HP-UX 11.11 system. It works fine when I run it from the directory /opt/xnview/bin.
However I would run it from e.g. my home dir the following error occurs:
$ xnview
/usr/lib/dld.sl: Can't open shared library: ../lib/libformat.sl
/usr/lib/dld.sl: No such file or directory
ABORT instruction (core dumped)
Both PATH and SHLIB_PATH is set correctly and I have checked the environment variable LD_LIBRARY_PATH is also contains /opt/xnview/lib. But it seems to search for libformat only through the relative address. ../lib.
Is there any possibility to run this cool program conveniently from anywhere in the directory tree?
I have installed XnView 1.68 as in the Readme.txt under the directory /opt/xnview/ as all other programs in my HP-UX 11.11 system. It works fine when I run it from the directory /opt/xnview/bin.
However I would run it from e.g. my home dir the following error occurs:
$ xnview
/usr/lib/dld.sl: Can't open shared library: ../lib/libformat.sl
/usr/lib/dld.sl: No such file or directory
ABORT instruction (core dumped)
Both PATH and SHLIB_PATH is set correctly and I have checked the environment variable LD_LIBRARY_PATH is also contains /opt/xnview/lib. But it seems to search for libformat only through the relative address. ../lib.
Is there any possibility to run this cool program conveniently from anywhere in the directory tree?
Yes, I have checked it.
It works fine running from its own directory, so this link works. The problem could be with the relative path ../lib/libformat. But I do not understand, why only the xnview could not find the lib through the LD_LIBRARY_PATH, this works well with the other programs (e.g. GSL, QT), and the dld.sl theoretically checks these paths.
I have tried to copy the directory lib to the parent directory of the current directory and of course xnview runs well, because it can find its ../lib directory.
Yes, I have checked it.
It works fine running from its own directory, so this link works. The problem could be with the relative path ../lib/libformat. But I do not understand, why only the xnview could not find the lib through the LD_LIBRARY_PATH, this works well with the other programs (e.g. GSL, QT), and the dld.sl theoretically checks these paths.
Strange, if you have the path in your LD_LIBRARY_PATH????