Skip to content

Instantly share code, notes, and snippets.

@monecchi
Forked from maxsummers/ubuntu-install-zeromq.sh
Created March 29, 2018 05:43
Show Gist options
  • Save monecchi/4d5ac7896b36592c9c1f47c1cfd6ef80 to your computer and use it in GitHub Desktop.
Save monecchi/4d5ac7896b36592c9c1f47c1cfd6ef80 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment