Skip to content

Instantly share code, notes, and snippets.

@RGPaul
Last active February 22, 2017 10:38
Show Gist options
  • Save RGPaul/ac41c615aa4a95134eae6813402dd297 to your computer and use it in GitHub Desktop.
Save RGPaul/ac41c615aa4a95134eae6813402dd297 to your computer and use it in GitHub Desktop.
Build latest LZO Library for MacOS
#!/bin/bash
set -e
# set the version to build
declare LZO_VERSION="2.09"
# download lzo if not already present
if [ ! -f lzo-${LZO_VERSION}.tar.gz ]; then
curl -O http://www.oberhumer.com/opensource/lzo/download/lzo-${LZO_VERSION}.tar.gz
fi
# untar lzo
tar -xvzf lzo-${LZO_VERSION}.tar.gz
cd lzo-${LZO_VERSION}
# configure lzo
./configure
# compile lzo
make
# install lzo (/usr/local/lib and /usr/local/include)
echo "for installing the lzo library please enter your password (sudo)"
sudo make install
# cleanup
cd ..
rm -rf lzo-${LZO_VERSION}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment