6
responses

Dear,

Attempting to compile nxlog-ce on Arch Linux i hit a snag.

./configure
results in
checking for openssl/evp.h... yes
checking for EVP_CIPHER_CTX_init in -lcrypto... no
configure: error: libcrypto not found

-- the configure: error is generated on

#define HAVE_LIBCRYPTO 1
_ACEOF

LIBS="-lcrypto $LIBS"

else
as_fn_error $? "libcrypto not found" "$LINENO" 5
fi

I doubt if i want to modify ./configure to skip this. What can i do to fix this ?

lib is installed

/usr/lib/libressl/libcrypto.so
/usr/lib/libressl/libcrypto.so.46
/usr/lib/libressl/libcrypto.so.46.0.1
/usr/lib/libressl/pkgconfig/libcrypto.pc
/usr/lib/libcryptopp.so
/usr/lib/libcryptopp.so.8
/usr/lib/libcryptopp.so.8.2.0
/usr/lib/libcrypto.so
/usr/lib/libcrypto.so.1.1

Br,

Joris

AskedMay 27, 2020 - 1:59am

Comments (5)

Answer (1)

Found the issue by mere chance, this happened in Debian 10 (sid) but confirmed it in Debian 10 (Buster) and Ubuntu 18.04 LTS.

The libssl-dev library installed by default in .deb based systems is not correct, use libssl1.0-dev instead and this will work as intended, I am just compiling this in a Raspberry Pi and it is working without an issue.

Cheers.