-
-
Save stigfromsouth/cc397fa8f995334e0669717fe8dcaf64 to your computer and use it in GitHub Desktop.
install zeromq in ubuntu 16.04 (tested)
This file contains 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
#!/bin/bash | |
VER=$1 | |
############################################## | |
#from http://zeromq.org/intro:get-the-software | |
############################################## | |
#install dependency | |
sudo apt-get update && \ | |
sudo apt-get install -y libtool pkg-config build-essential autoconf automake uuid-dev | |
# Install libsodium | |
git clone git://github.com/jedisct1/libsodium.git | |
cd libsodium | |
./autogen.sh | |
./configure && make check | |
sudo make install && sudo ldconfig | |
cd ../ | |
#get zeromq | |
wget http://download.zeromq.org/zeromq-$VER.tar.gz || exit 1 | |
#unpack tarball package | |
tar xvzf zeromq-$VER.tar.gz | |
#in zeromq dir | |
cd zeromq-$VER || exit 1 | |
#create make file | |
./configure | |
#build and install(root permission only) | |
sudo make install | |
#install zeromq driver on linux | |
sudo ldconfig | |
#check installed | |
ldconfig -p | grep zmq | |
############################################################ | |
#libzmq.so.4 (libc6,x86-64) => /usr/local/lib/libzmq.so.4 | |
#libzmq.so (libc6,x86-64) => /usr/local/lib/libzmq.so | |
############################################################ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment