Skip to content

Instantly share code, notes, and snippets.

@cdjhlee
Last active August 24, 2021 19:37
Show Gist options
  • Save cdjhlee/b8e3c927a01b0948b42d to your computer and use it in GitHub Desktop.
Save cdjhlee/b8e3c927a01b0948b42d to your computer and use it in GitHub Desktop.
install zeromq in ubuntu 14.04
#!/usr/bin/bash
##############################################
#from http://zeromq.org/intro:get-the-software
##############################################
#get zeromq
wget http://download.zeromq.org/zeromq-4.0.5.tar.gz
#unpack tarball package
tar xvzf zeromq-4.0.5.tar.gz
#install dependency
sudo apt-get update && \
sudo apt-get install -y libtool pkg-config build-essential autoconf automake uuid-dev
#in zeromq dir
cd zeromq-4.0.5
#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
############################################################
@priyankaNav
Copy link

Thank you :)

@regalfaith
Copy link

Thanks. This was really helpful

@mas-iota
Copy link

if anyone encountered No package 'libsodium' found after ./configure then simply do ./configure --without-libsodium
OR
Install it from here https://github.com/jedisct1/libsodium and do ./configure --with-libsodium=~path

@dorba
Copy link

dorba commented Jun 13, 2018

^ you can simply do sudo apt-get install libsodium-dev

@Regelink
Copy link

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