一、安裝PHP所需的lib庫(基礎庫): 1、yum install zlib-devel libxml2-devel libjpey-devel libjpeg-turbo-devel libiconv-devel -y 2、yum install freetype-devel libpng-de ...
一、安裝PHP所需的lib庫(基礎庫):
1、yum install zlib-devel libxml2-devel libjpey-devel libjpeg-turbo-devel libiconv-devel -y
2、yum install freetype-devel libpng-devel gd-devel libcurl-devel libxslt-devel libxslt-devel libxslt-devel -y
3、安裝yum源無法安裝的libiconv庫
mkdir -p /home/oldboy/tools/
cd /home/oldboy/tools/
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
tar zxf libiconv-1.14.tar.gz
cd libiconv-1.14
./configure --prefix=/usr/local/libiconv
make
make install
cd ../
二、PHP相關擴展庫安裝
1、wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
2、yum -y install libmcrypt-devel
3、yum -y install mhash
4、yum -y install mcrypt #加密擴展庫...
5、rpm -qa libmcrypt-devel mhash mcrypt