Ubuntu 14.04安装zeromq jzmq

来源:互联网 发布:注会 0基础 知乎 编辑:程序博客网 时间:2024/06/09 23:58

准备:

sudo apt-get updatesudo apt-get install g++ gcc make pkgconf
先安装好编译环境。

从官网上下载zeromq-4.2.2.tar.gz文件并解压。

wget https://github.com/zeromq/libzmq/releases/download/v4.2.2/zeromq-4.2.2.tar.gztar -zxf zeromq-4.2.2.tar.gzcd zeromq-4.2.2
执行编译命令
./confituremakemake install

如果编译过程出错则执行以下命令

./configure --prefix=/home/ygy/zmq --without-libsodiummake
在https://github.com/nathanmarz/jzmq里下载jzmq
unzip -zxf jzmq-master.zip./autogen.sh./configuremakemake install
报错:configure: error: cannot find zmq.h 

export CPPFLAGS=-I/home/admin/zeromq/include/ export LDFLAGS=-L/home/applications/zeromq/lib/./configure --prefix=/home/applications/jzmq --with-pgmmakemake install
make 的时候,可能会遇到如下错误:
make[1]: *** No rule to make target `classdist_noinst.stamp', needed by `org/zeromq/ZMQ.class'.  Stop. 

解决方法是创建 classdist_noinst.stamp 文件,

touch src/classdist_noinst.stamp