我正在尝试在mac os上编译hadoop本地库。
我的Mac是10.7.4。我的Hadoop是1.0.3
我已经安装了zlib1.2.7和lzo2.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以前有没有人遇到过这个问题?
诚挚的问候,
发布于 2012-06-09 20:58:29
有一个为此提交的JIRA (3659)票证--您应该能够获取顶级补丁文件并应用它。请阅读评论帖子,因为有一些关于它不支持32位的讨论。
https://stackoverflow.com/questions/10958287
复制相似问题