[openssl-users] [openssl-dev] [Bug, maybe] [master] bin/* no longer find their libraries if installed in non-default locations
Viktor Dukhovni
openssl-users at dukhovni.org
Wed Mar 1 17:26:00 UTC 2017
> On Mar 1, 2017, at 11:13 AM, Steffen Nurpmeso <steffen at sdaoden.eu> wrote:
>
> $ ldd /home/steffen/usr/opt/.ssl-1.1.0/bin/openssl
> ...
> libssl.so.1.1 => not found
> libcrypto.so.1.1 => not found
>
> This is new behaviour, until now the installation was always
> self-contained when configured via
>
> ./config --prefix=$(MYPREFIX) zlib-dynamic no-hw shared
I sure hope that "$()" was in fact "${}", the former only
works in Makefiles, and means something quite different
in POSIX shells.
You need an "RPATH" setting in the linker flags for the shared
libraries to be found in in $PREFIX/lib. Perhaps:
./config --prefix="${MYPREFIX}" -R "${MYPREFIX}/lib" ...
Or "-rpath ..." or "-Wl,-R,..." ...
--
Viktor.
More information about the openssl-users
mailing list