Error: Package: kong-2.1.0-1.x86_64 (/kong-2.1.0.el7.amd64)            Requires: hostname

安装kong的时候报以下错误

sudo yum -y install kong-2.1.0.el7.amd64.rpm --nogpgcheck

[appadmin@sprtsvr176 kong]$ sudo yum -y install kong-2.1.0.el7.amd64.rpm --nogpgcheck
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Examining kong-2.1.0.el7.amd64.rpm: kong-2.1.0-1.x86_64
Marking kong-2.1.0.el7.amd64.rpm to be installed
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package kong.x86_64 0:2.1.0-1 will be installed
--> Processing Dependency: hostname for package: kong-2.1.0-1.x86_64
--> Finished Dependency Resolution
Error: Package: kong-2.1.0-1.x86_64 (/kong-2.1.0.el7.amd64)
           Requires: hostname
 You could try using --skip-broken to work around the problem
** Found 11 pre-existing rpmdb problem(s), 'yum check' output follows:
LoadGenerator-11.00.000-1.i386 has missing requires of libX11.so.6
LoadGenerator-11.00.000-1.i386 has missing requires of libicudata.so
LoadGenerator-11.00.000-1.i386 has missing requires of libicudata.so.36
LoadGenerator-11.00.000-1.i386 has missing requires of libicui18n.so.36
LoadGenerator-11.00.000-1.i386 has missing requires of libicutu.so.36
LoadGenerator-11.00.000-1.i386 has missing requires of libicuuc.so.36
LoadGenerator-11.00.000-1.i386 has missing requires of libncurses.so.5
LoadGenerator-11.00.000-1.i386 has missing requires of libstdc++.so.6
LoadGenerator-11.00.000-1.i386 has missing requires of libstdc++.so.6(CXXABI_1.3)
LoadGenerator-11.00.000-1.i386 has missing requires of libstdc++.so.6(GLIBCXX_3.4)
LoadGenerator-11.00.000-1.i386 has missing requires of libz.so.1

 

经排查发现linux是centos6,而kong 的安装包却是centos7的。重新下载centos6版本的rpm包即可。

cat /etc/redhat-release

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值