Last active
March 29, 2018 05:43
-
-
Save maxsummers/160e8f902ba4b1e27fed741cd77d206f to your computer and use it in GitHub Desktop.
How to install ZeroMQ 4 on Ubuntu 16.10 from source
This file contains hidden or 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
#!/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
The version variable needs to be replace in L15 too.
Thanks for the script btw !