Skip to content

Instantly share code, notes, and snippets.

@electrum
Created July 27, 2011 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save electrum/1109934 to your computer and use it in GitHub Desktop.
Save electrum/1109934 to your computer and use it in GitHub Desktop.
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/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment