You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by "hehaoreset@gmail.com" <he...@gmail.com> on 2023/04/28 10:15:12 UTC

Due to openssl, Hadoop compilation failed

Hello, please help me take a look at this issue. Due to openssl, Hadoop
compilation failed.



When I try to compile Hadoop, I add -Drequire.openssl to the maven command,
and the Hadoop compilation will fail. I encountered this issue when compiling
in the x86 environment, and I successfully compiled in the arm environment.



My openssl version is 1.0.2f. I added the following environment variables to
the compilation script.



export PATH="${OPENSSL_HOME}/bin:$PATH"

export LD_ LIBRARY_ PATH="${OPENSSL_HOME}/lib:$LD_LIBRARY_PATH"





Compilation exceptions are as follows:



[exec] -- Looking for dlopen in dl

[exec] CUSTOM_ OPENSSL_ PREFIX =

[exec] Cannot find a usable OpenSSL library. OPENSSL_ LIBRARY=OPENSSL_
LIBRARY-NOTFOUND, OPENSSL_ INCLUDE_ DIR=OPENSSL_ INCLUDE_ DIR-NOTFOUND,
CUSTOM_ OPENSSL_ LIB=, CUSTOM_ OPENSSL_ PREFIX=, CUSTOM_ OPENSSL_ INCLUDE=

[exec] CMake Error at CMakeLists.txt:207 (MESSAGE):

[exec] Terminating build because require.openssl was specified.

[exec] -- Looking for dlopen in dl - found

[exec] -- Configuring incomplete, errors occurred!







Thank you for your help!





Hao He



从 Windows 版[邮件](https://go.microsoft.com/fwlink/?LinkId=550986)发送



\--------------------------------------------------------------------- To
unsubscribe, e-mail: user-unsubscribe@hadoop.apache.org For additional
commands, e-mail: user-help@hadoop.apache.org