码迷,mamicode.com
首页 > Web开发 > 详细

源码编译php

时间:2017-01-01 00:58:24      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:错误   --   configure   mysql   oca   shm   glib   自己   url   

 

安装相关依赖:

yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers gd gd2 gd-devel gd2-devel perl-CPAN pcre-devel

配置:

./configure --prefix=/usr/local/php5  --enable-fpm --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --enable-ftp --with-gd --enable-gd-native-ttf  --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --with-gettext --enable-fileinfo  --with-mcrypt --enable-opcache=no

正常应该会过,我出现了一个小问题,需要自己编译libmcrypt源码

然后make 会出现zip的错误,如何处理请看:编译php出现zip错误

到这里安装就成功了~!

 

源码编译php

标签:错误   --   configure   mysql   oca   shm   glib   自己   url   

原文地址:http://www.cnblogs.com/succeed/p/6240519.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!