S
S
Satisfied IT2018-09-22 20:58:59
OpenSSL
Satisfied IT, 2018-09-22 20:58:59

Building OpenSSL from source, why doesn't it work?

We have an Ubuntu 18.04.1 server.
There was a need to build openssl of a certain version without replacing the native version, I assembled it in this way:

./config shared --prefix=/opt/openssl_1.1.1 --openssldir=/opt/openssl_1.1.1
make
make test
sudo make install

It assembled without errors, the tests passed, but when I start /opt/openssl_1.1.1/bin/openssl versionI get the following in response:
/usr/lib/x86_64-linux-gnu/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /opt/openssl_1.1.1/bin/openssl)
/opt/openssl_1.1.1/bin/openssl: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1: version `OPENSSL_1_1_1' not found (required by /opt/openssl_1.1.1/bin/openssl)

At the same time:
ls /usr/lib/x86_64-linux-gnu/libssl*
gives me
/usr/lib/x86_64-linux-gnu/libssl.a   /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
/usr/lib/x86_64-linux-gnu/libssl.so  /usr/lib/x86_64-linux-gnu/libssl.so.1.1

and accordingly
ls /usr/lib/x86_64-linux-gnu/libcrypto*
issues in response
/usr/lib/x86_64-linux-gnu/libcrypto.a   /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/usr/lib/x86_64-linux-gnu/libcrypto.so  /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1

Everything looks good, what does he want?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Satisfied IT, 2018-09-22
specialist @borisdenis

The question is removed, the assembly with these parameters helped

./config shared --prefix=/opt/openssl_1.1.1 --openssldir=/opt/openssl_1.1.1 -Wl,--enable-new-dtags,-rpath,'$(LIBRPATH)'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question