Skip to content

Instantly share code, notes, and snippets.

@electrum
Created July 27, 2011 17:32

Revisions

  1. electrum created this gist Jul 27, 2011.
    15 changes: 15 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    cd src/hadoop-lzo
    tar xzvf ~/Downloads/lzo-2.05.tar.gz
    cd lzo-2.05
    CFLAGS="-arch x86_64" ./configure --build=x86_64-darwin --enable-shared --disable-asm --prefix=$HOME/hadoop-0.20.2/lzo
    make -j4
    make install
    cd ..
    env \
    JAVA_HOME=/Library/Java/Home \
    C_INCLUDE_PATH=$HOME/hadoop-0.20.2/lzo/include \
    LIBRARY_PATH=$HOME/hadoop-0.20.2/lzo/lib \
    CFLAGS="-arch x86_64" \
    ant clean compile-native test tar
    mkdir ~/hadoop-0.20.2/lib/native/Mac_OS_X-x86_64-64
    cp build/native/Mac_OS_X-x86_64-64/lib/* ~/hadoop-0.20.2/lib/native/Mac_OS_X-x86_64-64/