Skip to content

Instantly share code, notes, and snippets.

@maxsummers
Last active March 29, 2018 05:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save maxsummers/160e8f902ba4b1e27fed741cd77d206f to your computer and use it in GitHub Desktop.
Save maxsummers/160e8f902ba4b1e27fed741cd77d206f to your computer and use it in GitHub Desktop.
How to install ZeroMQ 4 on Ubuntu 16.10 from source
#!/usr/bin/env bash
# As in: http://stackoverflow.com/a/41289659/7331008
# Exiting on errors
set -e
# Set required version
VERSION="4.2.0"
# Asking for sudo password
sudo whoami
echo "Downloading ZeroMQ"
wget https://github.com/zeromq/libzmq/releases/download/v4.2.0/zeromq-${VERSION}.tar.gz
echo "Unpacking"
tar xvzf zeromq-${VERSION}.tar.gz
echo "Installing dependencies"
sudo apt-get update && \
sudo apt-get install -y libtool pkg-config build-essential autoconf automake uuid-dev
echo "Changing directory"
cd zeromq-${VERSION}
echo "Configuring"
./configure
echo "Compiling"
make
echo "Installing"
sudo make install
echo "Installing ZeroMQ driver"
sudo ldconfig
echo "Checking installation"
ldconfig -p | grep zmq
@agnivade
Copy link

agnivade commented Mar 8, 2017

The version variable needs to be replace in L15 too.

Thanks for the script btw !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment