ubuntu16.04 安装ZMQ

1.安装依赖
sudo apt-get install libtool pkg-config build-essential autoconf automake
2.编译安装ZMQ使用的加密库
git clone git://github.com/jedisct1/libsodium.git
cd libsodium
./autogen.sh
./configure && make check
sudo make install
sudo ldconfig
cd ..
3.编译安装ZMQ核心库
git clone git://github.com/zeromq/libzmq.git
cd libzmq
./autogen.sh
./configure && make check
sudo make install
sudo ldconfig
cd ..
4.编译安装ZMQ的C绑定
git clone git://github.com/zeromq/czmq.git
cd czmq
./autogen.sh
./configure && make check
sudo make install
sudo ldconfig
cd ..
5.添加ZMQC++绑定
git clone https://github.com/zeromq/cppzmq.git
cd cppzmq
sudo cp zmq.hpp /usr/local/include/
cd ..

你可能感兴趣的:(ubuntu16.04 安装ZMQ)