FAQ
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 Core
Issue Type: Improvement
Components: native
Affects Versions: 0.17.0
Environment: Mac OS X 10.5.3
Reporter: Colin Evans
Priority: Minor


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.

Search Discussions

  • Colin Evans (JIRA) at Jun 27, 2008 at 8:06 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Colin Evans updated HADOOP-3659:
    --------------------------------

    Attachment: hadoop-native-mac.patch

    A patch to acinclude.m4 that supports using otool to find a linked library.
    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 Core
    Issue Type: Improvement
    Components: native
    Affects Versions: 0.17.0
    Environment: Mac OS X 10.5.3
    Reporter: Colin Evans
    Priority: Minor
    Attachments: 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.
  • Arun C Murthy (JIRA) at Jul 16, 2008 at 2:06 am
    [ https://issues.apache.org/jira/browse/HADOOP-3659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Arun C Murthy reassigned HADOOP-3659:
    -------------------------------------

    Assignee: Colin Evans

    Colin, apologies that this has taken so long...

    I installed lzo2 on my Mac via macports and I needed to add '-I /opt/local/include' to configure.ac to get autoconf to find my lzo2 headers... how did you get around it without needing to modify configure.ac?
    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 Core
    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


    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.
  • Colin Evans (JIRA) at Jul 16, 2008 at 3:54 am
    [ https://issues.apache.org/jira/browse/HADOOP-3659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12613821#action_12613821 ]

    Colin Evans commented on HADOOP-3659:
    -------------------------------------

    I installed the lzo package from http://www.oberhumer.com/opensource/lzo/ - the MacPorts lzo package drops its libs in /opt/local/include, which isn't in the default lib path. I guess that the configure script should probably support either install..
    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 Core
    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


    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.
  • Arun C Murthy (JIRA) at Jul 18, 2008 at 6:24 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614835#action_12614835 ]

    Arun C Murthy commented on HADOOP-3659:
    ---------------------------------------

    bq. I guess that the configure script should probably support either install..

    Yes, and the configure script also needs to ensure that LDFLAGS also has the right path to find libjvm.so too...
    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 Core
    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


    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.
  • Allen Wittenauer (JIRA) at Sep 30, 2008 at 7:10 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635813#action_12635813 ]

    Allen Wittenauer commented on HADOOP-3659:
    ------------------------------------------

    For completeness, fink uses /sw as its root instead of /opt.
    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 Core
    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


    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.
  • Allen Wittenauer (JIRA) at Sep 30, 2008 at 7:14 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635813#action_12635813 ]

    aw edited comment on HADOOP-3659 at 9/30/08 12:12 PM:
    --------------------------------------------------------------------

    For completeness, fink uses /sw as its root instead of /opt.

    Although we need to be wary about including a *ton* of paths. We might trigger NFS, which would be less than ideal.

    Is there some reason that we can't let the user set LDFLAGS, INCLUDE, etc, as env vars and suck them in during the config process? i.e., if I have my lzo set in a weirdo place (i.e., MacPorts, Fink, etc), then I should be able to:

    INCLUDE=/sw/include LDFLAGS=-L/sw/lib -R/swlib ant build

    ... or is ant not smart enough to pass those on?

    was (Author: aw):
    For completeness, fink uses /sw as its root instead of /opt.
    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 Core
    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


    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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedJun 27, '08 at 8:04p
activeSep 30, '08 at 7:14p
posts7
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Allen Wittenauer (JIRA): 7 posts

People

Translate

site design / logo © 2022 Grokbase