Hadoop(1.0.1)使用libssl编译错误

时间:2012-08-07 03:11:54

标签: hadoop

出于某种原因,我需要使用以下命令编译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 lib ...

我用Google搜索了很多只找到0.20.0的补丁,这个补丁应该已经在1.0.1中修复了。

任何人都可以帮助我吗?

感谢。

1 个答案:

答案 0 :(得分:-1)

这是一个错误,添加路径后,它可以工作。 https://issues.apache.org/jira/browse/MAPREDUCE-2127