Hi Yong,
Could you send steps to set it up on MAC ?

Looks like there's no documentation about it.


On Fri, Jun 8, 2012 at 9:21 PM, Yongwei Xing <jdxyw2...@gmail.com> wrote:

> Hello
>
> I am trying to compile the hadoop native library on mac os.
>
> My Mac OS X is 10.7.4. My Hadoop is 1.0.3
>
> I have installed the zlib 1.2.7 and lzo 2.0.6 like below:
>
> ./configure -shared --prefix=/usr/local/[zlib/lzo]
>
> make
>
> make install
>
>
> I check the /usr/local/zlib-1.2.7 and /usr/local/lzo-2.0.6, the header
> files and libraries are there.
>
> I change the .bash_profile like below
>
> 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"
>
> I switch to hadoop folder and run
>
> ant -Dcompile.native=true compile-native
>
> I got such information like below
>
> [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
>
> Does anyone meet this issue before?
>
> Best Regards,
>
> --
>

Reply via email to