linux上zmq的安装

fedora安装编译时需要用的程序

yum install gcc

yum install gcc-c++

yum install make

yum install uuid-devel

yum install libuuid-devel

1.下载 posix版: http://www.zeromq.org/intro:get-the-software

2.安装 tar -zxvf zeromq-3.2.0-rc1.tar.gz cd zeromq-3.2.0

./configure //选择安装路径可以(./configure --prefix=/data/zeromq)

make

make install

ldconfig

3设置环境变量(让gcc 找到你安装的头文件和库函数)

export C_INCLUDE=$C_INCLUDE:youIncludeFilePath

export LIBRARY_PATH=$LIBRARY_PATH:yourLibFilePath // 当编译的时候找到zmq库,否则会无法识别-lzmq

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:yourLibFilePath//设置当动态链接的时候寻找库文件的路径

转载于:https://www.cnblogs.com/hust2012/archive/2012/12/26/2834666.html

你可能感兴趣的:(linux上zmq的安装)