linux php 编译安装

./configure  --prefix=/usr/local/php5.2 --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/mysql/bin/mysql_config --enable-fpm --enable-fastcgi --enable-sockets --enable-zip --enable-calendar --enable-bcmath --enable-soap --with-zlib --with-iconv --with-gd --with-xmlrpc --enable-mbstring --without-sqlite --with-curl --enable-ftp --with-mcrypt=/usr/local/libmcrypt --disable-ipv6 --disable-debug --with-jpeg-dir=/usr/local/jpeg.6 --with-png-dir=/usr/local/libpng.1.2.50 --with-freetype-dir=/usr/local/freetype.2.5.0 --with-openssl

错误 :ext/dom/node.c:1900:40: error: dereferencing pointer to incomplete type RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);

解决:curl -s https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4N.txt | patch -p0

猜你喜欢

转载自www.cnblogs.com/shaoyang0123/p/9139026.html