在mac上编译Hadoop本机库失败

时间:2012-06-09 04:10:05

标签: macos hadoop

我正在尝试在mac os上编译hadoop本机库。

我的Mac OS X是10.7.4。我的Hadoop是1.0.3

我已经安装了zlib 1.2.7和lzo 2.0.6,如​​下所示: ./configure -shared --prefix = / usr / local / [zlib / lzo] 使 make install

我改变了如下的.bash_profile

export C_INCLUDE_PATH=$C_INCLUDE_PATH:/usr/local/zlib-1.2.7/include:/usr/local/lzo-2.06/include
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/zlib-1.2.7/lib:/usr/local/lzo-2.06/lib
export CFLAGS="-arch x86_64"

我切换到hadoop文件夹并运行

ant -Dcompile.native=true compile-native

我得到了如下信息

[exec] checking stddef.h usability... yes
     [exec] checking stddef.h presence... yes
     [exec] checking for stddef.h... yes
     [exec] checking jni.h usability... yes
     [exec] checking jni.h presence... yes
     [exec] checking for jni.h... yes
     [exec] checking zlib.h usability... yes
     [exec] checking zlib.h presence... yes
     [exec] checking for zlib.h... yes
     [exec] checking Checking for the 'actual' dynamic-library for '-lz'... 
     [exec] configure: error: Can't find either 'objdump' or 'ldd' to compute the dynamic library for '-lz'

BUILD FAILED

以前有人遇到过这个问题吗?

最诚挚的问候,

1 个答案:

答案 0 :(得分:0)

为此提交了一个JIRA(3659)票证 - 您应该能够获取顶部补丁文件并应用它。尽管如此,请阅读评论主题,因为有人谈到它不支持32位。