Centos下安装Ice php扩展
安装ICE的方式有两种,一种下载安装包自己编译,一种是通过yum命令进行安装。
因为Ice需要的包比较多,所以编译安装的话比较麻烦,这里我们就只介绍第二种方式,通过yum安装。以下是官方描述:
The Ice run times and developer kits for all supported language mappings (i386 and x86_64).
You can also install Ice using yum by downloading the repository description (zeroc-ice-amzn1.repo) and installing it in /etc/yum.repos.d. Once installed, you can view the available packages using the following command:
# yum list ice* db53* mcpp-devel
Refer to the EC2 documentation for more information.
yum 安装
首先需要添加一个yum源。
# vi /etc/yum.repos.d/zeroc-ice-amzn.repo
写入:
[zeroc-ice]name=Ice 5 for Amazon Linux $releasever - $basearch
baseurl=http://www.zeroc.com/download/Ice/5/el6/$basearchenabled=1gpgcheck=1gpgkey=http://www.zeroc.com/download/RPM-GPG-KEY-zeroc-release
官网上说可以通过
# yum list ice* db53* mcpp-devel
查看安装包列表。真正的安装命令是
# yum install -y ice* db53* mcpp-devel
安装完成可以通过命令搜索文件所在路径:
# find / -name IcePHP.so