Skip to content

Instantly share code, notes, and snippets.

@mindthink
Forked from hstm/setup-zeromq.sh
Created April 23, 2021 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mindthink/35d20704d4ad9f0fee60f0004d679c43 to your computer and use it in GitHub Desktop.
Save mindthink/35d20704d4ad9f0fee60f0004d679c43 to your computer and use it in GitHub Desktop.
Setup zeromq in Ubuntu 16.04/Windows Subsystem for Linux (WSL)
#!/bin/bash
# Ref http://zeromq.org/intro:get-the-software
wget https://github.com/zeromq/libzmq/releases/download/v4.2.3/zeromq-4.2.3.tar.gz
# Unpack
tar xvzf zeromq-4.2.3.tar.gz
# Install dependencies
sudo apt-get update && \
sudo apt-get install -y libtool pkg-config build-essential autoconf automake uuid-dev
cd zeromq-4.2.3
./configure
# Build and install
sudo make install
# Install zeromq driver on linux/WSL
sudo ldconfig
# Check if installed
ldconfig -p | grep zmq
# Expected output
############################################################
# libzmq.so.5 (libc6,x86-64) => /usr/local/lib/libzmq.so.5
# libzmq.so (libc6,x86-64) => /usr/local/lib/libzmq.so
############################################################
@mindthink
Copy link
Author

works well on Ubuntu 18.04/Windows Subsystem for Linux (WSL)

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