我正在尝试在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
以前有人遇到过这个问题吗?
最诚挚的问候,