PHP 编程 · 2012/06/13 0

CentOS 下PHP编译环境的安装

yum install gcc-c++ libstdc++-devel -y

yum install make autoconf automake

yum install zlib zlib-devel

yum install libxml2 libxml2-devel

yum install pcre pcre-devel

yum install libjpeg libjpeg-devel

yum install freetype freetype-devel

yum install libpng libpng-devel

yum install glibc glibc-devel (iconv)

libmycrypt
http://sourceforge.net/projects/mcrypt/files/

Libmcrypt
./configure
make && make install

libmhash
http://sourceforge.net/projects/mhash/files/mhash/
./configure
make && make install

mcrypt
export LD_LIBRARY_PATH=/usr/local/lib
./configure
make && make install

yum install libtool-ltdl libtool-ltdl-devel openssl openssl-devel

yum install libcurl libcurl-devel

yum install mysql-devel