6.1Centos7安装ZeroMQ和JZMQ

时间:2024-03-31 21:57:08

一、安装ZeroMQ

1、下载

wget方式下载安装包,这里我安装到了conf文件夹里,我是想下到/下载里,后来移动到/下载了
6.1Centos7安装ZeroMQ和JZMQ

2、解压

6.1Centos7安装ZeroMQ和JZMQ

3、移动到/usr/local/,并重命名

6.1Centos7安装ZeroMQ和JZMQ

4、./configure

cd /usr/local/zeromq
./configure
6.1Centos7安装ZeroMQ和JZMQ
这时候报了一个错误:no acceptable C compiler found in $PATH
解决:
6.1Centos7安装ZeroMQ和JZMQ
然后重新./configure,这时又出现一个错误:Unable to find a working C++ compiler6.1Centos7安装ZeroMQ和JZMQ
解决:
6.1Centos7安装ZeroMQ和JZMQ
再次./configure,成功
6.1Centos7安装ZeroMQ和JZMQ

5、make&&make install

6.1Centos7安装ZeroMQ和JZMQ

二、安装JZMQ

1、下载jzmq

是使用git方式下载的jzmq,先下载了git
6.1Centos7安装ZeroMQ和JZMQ
6.1Centos7安装ZeroMQ和JZMQ

2、./autogen.sh

cd /usr/local/jzmq/jzmq-jni
6.1Centos7安装ZeroMQ和JZMQ
报错:could not find libtool
解决:
6.1Centos7安装ZeroMQ和JZMQ
再次./autogen.sh:6.1Centos7安装ZeroMQ和JZMQ

3、./configure

6.1Centos7安装ZeroMQ和JZMQ

4、make

6.1Centos7安装ZeroMQ和JZMQ

5、make install

6.1Centos7安装ZeroMQ和JZMQ