0

我正在尝试在 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 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

有没有人遇到过这个问题?

此致,

4

1 回答 1

0

为此提交了一张 JIRA ( 3659 ) 票证 - 您应该能够获取顶部补丁文件并应用它。不过请阅读评论线程,因为有人说它不支持 32 位。

于 2012-06-09T12:58:28.717 回答