您的位置:首页 > 运维架构 > Linux

Ubuntu/CentOS下源码编译安装Php 5.6基本参数

2017-01-12 17:34 609 查看
先确认安装libxml2

apt-get install libxml2 libxml2-dev
或者
yum install libxml2 libxml2-dev

./configure --prefix=/usr/local/include/php --with-pdo-mysql --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-zlib-dir --enable-xml --enable-bcmath --enable-shmop --enable-sysvsem --enable-sysvshm --enable-inline-optimization --with-curl  --enable-mbregex  --enable-fpm --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap --enable-opcache --enable-ftp --enable-calendar --with-xsl --with-gettext --enable-session --enable-ctype --with-kerberos --with-pcre-regex --enable-exif --with-bz2


  

如果提示缺少哪个就yum或者apt安装哪个,安装完后再执行配置命令即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: