本文共 957 字,大约阅读时间需要 3 分钟。
1.安装libxml2-devel:
yum -y install libxml2-devel
2.编译:
./configure \--prefix=/usr/local/php \--with-config-file-path=/usr/local/php/etc/ \--enable-inline-optimization \--enable-shared \--enable-opcache \--enable-fpm \--with-fpm-user=php \--with-fpm-group=web \--with-mysql=mysqlnd \--with-mysqli=mysqlnd \--with-pdo-mysql=mysqlnd \--with-gettext \--enable-mbstring \--with-iconv \--with-mcrypt \--with-mhash \--with-openssl \--enable-bcmath \--enable-soap \--with-libxml-dir=文件夹 \--enable-pcntl \--enable-shmop \--enable-sysvmsg \--enable-sysvsem \--enable-sysvshm \--enable-sockets \--enable-intl \--with-curl \--with-zlib \--enable-zip \--with-bz2 \--enable-xml \--with-pcre-dir \--with-gd \--enable-static \--enable-wddx \--with-xmlrpc \--with-libdir=/usr/lib64 \--with-jpeg-dir=/usr/lib64 \--with-freetype-dir=/usr/lib64 \--with-png-dir=/usr/lib64 \--enable-maintainer-zts \--enable-pthreads \--enable-debug
转载于:https://blog.51cto.com/12173069/2123545