Linux version of zmq installation and configuration

The process of installing zeromq in Linux 1.
First,
wget http://download.zeromq.org/
1. Download the latest version of zeromq
   wget http://download.zeromq.org/zeromq-3.1.0-beta.tar.gz
2 Unzip
    tar -xvf zeromq-3.1.0-beta.tar.gz
3 Run configure
    ./configure --prefix=/home/zoos/data/zeromq (prefix specifies the installation directory)
4. make
5. make install
6. Set the environment Variable
    export CPPFLAGS=-I/home/mine/0mq/include/
    export LDFLAGS=-L/home/mine/0mq/lib/

2.
Load shared library:
export LD_LIBRARY_PATH="/home/zhuxiaoming/data/zeromq/lib"

3.
Add library to the program:
#include </home/zoos/data/zeromq/include/zmq.h>

Guess you like

Origin blog.csdn.net/zhuiyunzhugang/article/details/112808764