Skip to content

Instantly share code, notes, and snippets.

@mapix
Forked from missinglink/zmq-install.sh
Last active August 29, 2015 14:14
Show Gist options
  • Save mapix/552366bae019658707a0 to your computer and use it in GitHub Desktop.
Save mapix/552366bae019658707a0 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [[ `uname -s` == 'Darwin' ]]; then
brew update
brew install libtool autoconf automake
else
sudo apt-get update
sudo apt-get install -y libtool autoconf automake uuid-dev git-core
fi
cd /tmp
rm -rf libzmq
git clone [email protected]:zeromq/zeromq3-x.git libzmq
cd libzmq
git pull origin master
./autogen.sh
./configure
make
sudo make install
if [[ `uname -s` == 'Darwin' ]]; then
# TODO: OSX uses env variables for this, see `man dyld`
echo 'NOTE: Not finished OSX changes yet!'
else
sudo ldconfig
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment