Last active
February 22, 2017 10:38
-
-
Save RGPaul/ac41c615aa4a95134eae6813402dd297 to your computer and use it in GitHub Desktop.
Build latest LZO Library for MacOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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