Skip to content

Instantly share code, notes, and snippets.

@missinglink
Created March 5, 2013 13:12
Show Gist options
  • Save missinglink/5090220 to your computer and use it in GitHub Desktop.
Save missinglink/5090220 to your computer and use it in GitHub Desktop.
Install ZeroMq 3.x on Ubuntu / OSX
#!/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