安装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