- 积分
- 117977
- 威望
-
- 金钱
-
- 注册时间
- 2009-4-24
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
发表于 2014-9-24 14:30:52
|
显示全部楼层
错误信息如下:
/root/lnmp1.1-full/php-5.2.17/ext/dom/node.c:1955:40: error: dereferencing pointer to incomplete type
RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);
^
/root/lnmp1.1-full/php-5.2.17/Zend/zend_API.h:472:14: note: in definition of macro 鈥榋VAL_STRINGL鈥? char *__s=(s); int __l=l; \
^
/root/lnmp1.1-full/php-5.2.17/ext/dom/node.c:1955:5: note: in expansion of macro 鈥楻ETVAL_STRINGL鈥? RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);
^
make: *** [ext/dom/node.lo] Error 1
打一下这个补丁试试
cd /root/lnmp1.1-full/php-5.2.17/
wget https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4N.txt
patch -p0 < txtbgxGXAvz4N.txt
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/mysql --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --with-mime-magic
make ZEND_EXTRA_LIBS='-liconv'
试试看
也可以
lnmp1.1用户可以修改安装脚本,查找cd php-5.2.17 在这一行下面添加上
wget -c http://soft.vpser.net/lnmp/ext/php-5.2.17-xml.patch
patch -p0 < php-5.2.17-xml.patch
保存,再次安装也可以。 |
|