[ 
https://issues.apache.org/jira/browse/HADOOP-3659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761804#action_12761804
 ] 

Hong Tang commented on HADOOP-3659:
-----------------------------------

@Allen, the lzo codec compiles without glitch on mac os-x. You may want to take 
a look there. The following might be relevant (in file 
src/native/m4/compression_utils.m4):
{noformat}
    if test ! -z "`which otool | grep -v 'no otool'`"; then
      ac_cv_libname_$1=\"`otool -L conftest | grep $1 | sed -e 's/^[     ]*//' 
-e 's/ .*//'`\";
    elif test ! -z "`which objdump | grep -v 'no objdump'`"; then
      ac_cv_libname_$1="`objdump -p conftest | grep NEEDED | grep $1 | sed 
's/\W*NEEDED\W*\(.*\)\W*$/\"\1\"/'`"
    elif test ! -z "`which ldd | grep -v 'no ldd'`"; then
      ac_cv_libname_$1="`ldd conftest | grep $1 | sed 
's/^[[[^A-Za-z0-9]]]*\([[[A-Za-z0-9\.]]]*\)[[[^A-Za-z0-9]]]*=>.*$/\"\1\"/'`"
    else
      AC_MSG_ERROR(Can't find either 'objdump' or 'ldd' to compute the dynamic 
library for '-l$1')
    fi
 {noformat}

> Patch to allow hadoop native to compile on Mac OS X
> ---------------------------------------------------
>
>                 Key: HADOOP-3659
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3659
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: native
>    Affects Versions: 0.17.0
>         Environment: Mac OS X 10.5.3
>            Reporter: Colin Evans
>            Assignee: Colin Evans
>            Priority: Minor
>         Attachments: hadoop-native-mac.patch, hadoop-native-mac.patch
>
>
> This patch makes the autoconf script work on Mac OS X.  LZO needs to be 
> installed (including the optional shared libraries) for the compile to 
> succeed.  You'll want to regenerate the configure script using autoconf after 
> applying this patch.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to