2

出于某种原因,我需要使用以下命令编译 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 中修复了。

谁能帮我吗?

谢谢。

4

1 回答 1

-1

it is a bug,after add a path,it works. https://issues.apache.org/jira/browse/MAPREDUCE-2127

于 2012-09-22T03:04:09.753 回答