hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mapred Learn <mapred.le...@gmail.com>
Subject Re: Compile Hadoop 1.0.3 native library failed on mac 10.7.4
Date Thu, 14 Jun 2012 06:35:55 GMT
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 <jdxyw2004@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,
>
> --
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message