编译安装php5.6.0

时间:2014-09-17 18:55:03   收藏:0   阅读:341

1、下载php

   wget http://cn2.php.net/distributions/php-5.6.0.tar.gz

2、安装相关组件

   yum install gcc gcc-c++ curl-devel bzip2 bzip2-devel openssl openssl-devel libxml2-devel libjpeg libjpeg-devel yum install libmcrypt*

3、编译

   ./configure --prefix=/usr/local/php --enable-fpm  --with-mcrypt=/usr/local/libmcrypt --with-zlib --enable-mbstring --with-openssl --with-mysql --with-mysqli --with-mysql-sock --with-gd --with-jpeg-dir=/usr/lib --enable-gd-native-ttf  --enable-pdo --with-pdo-mysql --with-gettext --with-curl --with-pdo-mysql --enable-sockets --enable-bcmath --enable-xml --with-bz2 --enable-zip --enable-freetype --with-apxs2

   make

   make install

本文出自 “linux相关分享” 博客,请务必保留此出处http://2860664.blog.51cto.com/2850664/1554407

原文:http://2860664.blog.51cto.com/2850664/1554407

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!