First, the environment
System: CentOS 6.4x64
ip:192.168.3.48
Second, install the basic package
[[email protected] ~]# Yum install zlib libxml libjpeg freetype libpng gd Curl Libiconv zlib-devel libxml2-devel libxslt-d Evel Libjpeg-devel freetype-devel libpng-devel gd-devel curl-devel bzip2 bzip2-devel-y
Third, installation Libiconv
#下载软件 [[email protected] ~]# wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz[[email protected] ~]# tar XF libiconv-1.14.tar.gz [[Email protected] ~]# CD Libiconv-1.14[[email protected] libiconv-1.14]#./configure--prefix=/ Usr/local/libiconv[[email protected] libiconv-1.14]# make && make install
Iv. installation of Libmcrypt
#下载软件 [[email protected] ~]# wget http://sourceforge.net/projects/mcrypt/files/libmcrypt/ 2.5.8/libmcrypt-2.5.8.tar.gz/download[[email protected] ~]# tar xf libmcrypt-2.5.8.tar.gz [[email protected] ~]# cd libmcrypt-2.5.8[[email protected] libmcrypt-2.5.8]# ./configure[[email protected] mhash-0.9.9.9]# make && make install# Configuring soft link information [[email protected] mhash-0.9.9.9]# ln -s / Usr/local/lib/libmcrypt.la /usr/lib/libmcrypt.la[[email protected] mhash-0.9.9.9]# ln -s /usr/local/lib/libmcrypt.so /usr/lib/libmcrypt.so[[email protected] mhash-0.9.9.9 ]# ln -s /usr/local/lib/libmcrypt.so.4 /usr/lib/libmcrypt.so.4[[email protected] mhash-0.9.9.9]# ln -s /usr/local/lib/libmcrypt.so.4.4.8 /usr/lib/libmcrypt.so.4.4.8[ [Email protected] mhash-0.9.9.9]# ln -s /usr/local/lib/libmhash.a /usr/lib/libmhash.a[[email protected] mhash-0.9.9.9]# ln -s /usr/local/lib/libmhash.la /usr/lib/libmhash.la[[email protected] mhash-0.9.9.9]# ln -s /usr/local/lib/libmhash.so /usr/lib/libmhash.so[[email protected] mhash-0.9.9.9]# ln -s /usr/local/lib/libmhash.so.2 /usr/lib/libmhash.so.2[ [email protected] mhash-0.9.9.9]# ln -s /usr/local/lib/libmhash.so.2.0.1 /usr/ lib/libmhash.so.2.0.1
V. Installation of MCrypt
#下载软件 [[email protected] ~]# wget http://sourceforge.net/projects/mcrypt/files/MCrypt/2.6.8/mcrypt-2.6.8.tar.gz/ Download[[email protected] ~]# tar xf mcrypt-2.6.8.tar.gz [[email protected] ~]# CD Mcrypt-2.6.8[[email protected] mcrypt- 2.6.8]#/sbin/ldconfig [[email protected] mcrypt-2.6.8]#./configure [[email protected] mcrypt-2.6.8]# make && ma Ke install[[email protected] mcrypt-2.6.8]#/sbin/ldconfig
Vi. Installation of PHP
#下载php软件 [[email protected] ~]# wget http://cn2.php.net/distributions/php-5.5.24.tar.gz[[ email protected] php-5.5.24]# ./configure > --prefix=/usr/local/php-5.5.24 > --with-config-file-path=/usr/local/php-5.5.24/etc > --enable-fpm > -- with-fpm-user=www > --with-fpm-group=www > --with-mysql=mysqlnd > -- with-mysqli=mysqlnd > --with-pdo-mysql=mysqlnd > --with-iconv-dir=/usr/local/ libiconv > --with-freetype-dir > --with-jpeg-dir > --with-png-dir > --with-zlib > --with-libxml-dir=/usr > --enable-xml > -- Disable-rpath > --enable-bcmath > --enable-shmop > --enable-sysvsem > --enable-inline-optimization > --with-curl > --enable-mbregex > --enable-mbstring >&nBsp;--with-mcrypt > --enable-ftp > --with-gd > --enable-gd-native-ttf > --with-openssl > --with-mhash > --enable-pcntl > -- Enable-sockets > --with-xmlrpc > --enable-zip > --enable-soap > --with-gettext > --disable-fileinfo > --with-kerberos[[email protected] php-5.5.24]# make zend_extra_libs= '-liconv '
This article is from the "ly36843" blog, please be sure to keep this source http://ly36843.blog.51cto.com/3120113/1651176
Compiling and installing php-5.5.15