gpt4 book ai didi

Hadoop (1.0.1) 使用 libssl 编译错误

转载 作者:可可西里 更新时间:2023-11-01 15:00:12 24 4
gpt4 key购买 nike

出于某种原因,我需要使用以下命令编译 Hadoop:

$ ant compile -Dcompile.c++=true -Dlibhdfs=true

然后它以以下信息结束:

[exec] checking for HMAC_Init in -lssl... 
[exec] configure: error: Cannot find libssl.so
[exec] /home/cshou/Documents/Lab/hadoop-1.0.1/src/c++/pipes/configure: line 5166: exit: please: numeric argument required
[exec] /home/cshou/Documents/Lab/hadoop-1.0.1/src/c++/pipes/configure: line 5166: exit: please: numeric argument required
[exec] no

BUILD FAILED
/home/cshou/Documents/Lab/hadoop-1.0.1/build.xml:2102: exec returned: 255

然后我检查了(我使用的是 Ubuntu 12.04)

$ apt-cache search libssl

然后我得到了

libssl-dev - SSL development libraries, header files and documentation
libssl-doc - SSL development documentation documentation
libssl1.0.0 - SSL shared libraries
libssl1.0.0-dbg - Symbol tables for libssl and libcrypto
dcmtk - OFFIS DICOM toolkit command line utilities
libcherokee-mod-libssl - Cherokee web server - SSL crypto functions plugin
libdcmtk2 - OFFIS DICOM toolkit runtime libraries
libdcmtk2-dev - OFFIS DICOM toolkit development libraries and headers
libssl-ocaml - OCaml bindings for OpenSSL (runtime)
libssl-ocaml-dev - OCaml bindings for OpenSSL
libssl0.9.8 - SSL shared libraries
libssl0.9.8-dbg - Symbol tables for libssl and libcrypto
libsslcommon2 - enterprise messaging system - common SSL libraries
libsslcommon2-dev - enterprise messaging system - common SSL development files

看来我确实安装了 libssl 库...

我谷歌了很多只找到了 0.20.0 的补丁,应该已经在 1.0.1 中修复了。

谁能帮帮我?

谢谢。

最佳答案

是个bug,添加路径后就可以了。 https://issues.apache.org/jira/browse/MAPREDUCE-2127

关于Hadoop (1.0.1) 使用 libssl 编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11838722/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com