ubuntu安装zmq

四步:

1. 安装libsodium库,版本号可以改

    wget -N --no-check-certificate https://download.libsodium.org/libsodium/releases/libsodium-1.0.18.tar.gz
    tar xvf libsodium-1.0.18.tar.gz
    cd libsodium-1.0.18
    ./configure
    make && make check
    make install

2. 安装zmq库

    git clone git://github.com/zeromq/libzmq.git
    cd libzmq
    ./autogen.sh
    ./configure && make check
    sudo make install
    sudo ldconfig

3. 安装zmq c库 编译选项 -lczmq -lzmq

    git clone git://github.com/zeromq/czmq.git
    cd czmq
    ./autogen.sh
    ./configure && make check
    sudo make install
    sudo ldconfig

4. 安装zmq c++库 编译选项 -lzmq

    git clone https://github.com/zeromq/cppzmq.git
    cd cppzmq
    sudo cp zmq.hpp /usr/local/include/

你可能感兴趣的:(linux,ubuntu)