CentOS6.9 安装 zeroMQ

编译安装ZMQ:

tar -xzf zeromq-2.1.7.tar.gz
cd zeromq-2.1.7
./configure
configure: error: Unable to find a working C++ compiler
./configure
configure: error: cannot link with -luuid, install uuid-dev.
./configure  没有问题后
make
make install

./configure 报错问题解决:
一、 configure: error: Unable to find a working C++ compiler
yum install gcc-c++
ps:如果无法联网,自行下载安装gcc,因代理原因,无法上网,故先解决了yum的上网问题,
可参加我的博文代理设置。

二、 configure: error: cannot link with -luuid, install uuid-dev.
则需要安装 uuid-dev
1、联网的情况下
yum直接安装,不需要关注依赖,方便快捷。

yum install libuuid-devel

2、无网的情况下载了libuuid-devel

rpm -ivh libuuid-devel-2.17.2-12.9.el6.x86_64.rpm

报错:
error: Failed dependencies:
libuuid = 2.17.2-12.9.el6 is needed by libuuid-devel-2.17.2-12.9.el6.x86_64

rpm -ivh libuuid-2.17.2-12.9.el6.x86_64.rpm

Preparing… ########################################### [100%]
package libuuid-2.17.2-12.28.el6.x86_64 (which is newer than libuuid-2.17.2-12.9.el6.x86_64) is already installed
file /lib64/libuuid.so.1.3.0 from install of libuuid-2.17.2-12.9.el6.x86_64 conflicts with file from package libuuid-2.17.2-12.28.el6.x86_64
因包依赖,版本的问题继续报错。
因同时在centos6和centos7上安装,因系统不同各种依赖也不一样,亲自下载安装了centos7遇到了很多依赖包的问题,下面罗列一下:
https://pkgs.org/download/libuuid-devel官网明确注明了各个系统包的依赖。
centos7官网说明:
Requires
/usr/bin/pkg-config
libuuid = 2.23.2-43.el7
libuuid.so.1()(64bit)
pkgconfig
安装过程:

rpm -ivh libuuid-devel-2.23.2-43.el7.x86_64.rpm

warning: libuuid-devel-2.23.2-43.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
libuuid = 2.23.2-43.el7 is needed by libuuid-devel-2.23.2-43.el7.x86_64

rpm -ivh libuuid-2.29.2-alt1.x86_64.rpm

error: Failed dependencies:
rpmlib(SetVersions) is needed by libuuid-2.29.2-alt1.x86_64

对于rpmlib(SetVersions),在网上没有找到问题解决方法,如有知晓的请告知。

在此过程中还遇到了需要安装apr –util 的问题,因为没有记录下错误信息,我这里就不详细说明。
apr –util 依赖于apr,需要先安装apr。
在安装apr –util时,可能会遇到configure: error: the –with-apr parameter is incorrect.的错误,
解决方法: –with-apr 指到apr的bin下的配置文件
./configure –prefix=/usr/local/apr/util/ –with-apr=/usr/local/apr/bin/apr-1-config

推荐博客:http://www.cnblogs.com/kerrycode/p/3261101.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值