Skip to content

Instantly share code, notes, and snippets.

@electrum
electrum / build-native-mac.sh
Last active July 16, 2020 06:34
Compile native libraries on Mac OS X
brew install snappy
CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ant compile-native
chmod 644 build/native/Mac_OS_X-x86_64-64/lib/*
ls -l /usr/local/lib/libsnappy.dylib
ls -l build/native/Mac_OS_X-x86_64-64/lib/libhadoop.dylib
brew install snappy
CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ant compile-native
cp \
/usr/local/lib/libsnappy.dylib \
build/native/Mac_OS_X-x86_64-64/lib/libhadoop.dylib \
~/src/presto-hadoop cdh4/src/main/resources/nativelib/Mac_OS_X-x86_64/
chmod 644 src/main/resources/nativelib/Mac_OS_X-x86_64/*