php安装错误 (node.c:1953:error) 解决办法
2014-02-22 20:23
597 查看
CentOs安装PHP在make时报错:
root@---- [/opt/php-5.2.17]# make
/bin/sh /opt/php-5.2.17/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dom/ -I/opt/php-5.2.17/ext/dom/ -DPHP_ATOM_INC -I/opt/php-5.2.17/include -I/opt/
php-5.2.17/main -I/opt/php-5.2.17 -I/opt/php-5.2.17/ext/date/lib -I/opt/xml2/include/libxml2 -I/opt/php-5.2.17/TSRM -I/opt/php-5.2.17/Zend -I/usr/include -g -O2 -c
/opt/php-5.2.17/ext/dom/node.c -o ext/dom/node.lo
/opt/php-5.2.17/ext/dom/node.c: In function â€کdom_canonicalization’:
/opt/php-5.2.17/ext/dom/node.c:1953: error: dereferencing pointer to incomplete type
/opt/php-5.2.17/ext/dom/node.c:1955: error: dereferencing pointer to incomplete type
make: *** [ext/dom/node.lo] Error 1
在国外的一个网站上找到了这个,其他版本的php也同样适用。
# curl -o php-5.x.x.patch https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4N.txt
# cd php-5.x.x
# patch -p0 -b < ./php-5.x.x.patch
patching file ext/dom/node.c
patching file
ext/dom/documenttype.c
patching file ext/simplexml/simplexml.c
再次编译即可。
root@---- [/opt/php-5.2.17]# make
/bin/sh /opt/php-5.2.17/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dom/ -I/opt/php-5.2.17/ext/dom/ -DPHP_ATOM_INC -I/opt/php-5.2.17/include -I/opt/
php-5.2.17/main -I/opt/php-5.2.17 -I/opt/php-5.2.17/ext/date/lib -I/opt/xml2/include/libxml2 -I/opt/php-5.2.17/TSRM -I/opt/php-5.2.17/Zend -I/usr/include -g -O2 -c
/opt/php-5.2.17/ext/dom/node.c -o ext/dom/node.lo
/opt/php-5.2.17/ext/dom/node.c: In function â€کdom_canonicalization’:
/opt/php-5.2.17/ext/dom/node.c:1953: error: dereferencing pointer to incomplete type
/opt/php-5.2.17/ext/dom/node.c:1955: error: dereferencing pointer to incomplete type
make: *** [ext/dom/node.lo] Error 1
在国外的一个网站上找到了这个,其他版本的php也同样适用。
# curl -o php-5.x.x.patch https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4N.txt
# cd php-5.x.x
# patch -p0 -b < ./php-5.x.x.patch
patching file ext/dom/node.c
patching file
ext/dom/documenttype.c
patching file ext/simplexml/simplexml.c
再次编译即可。
相关文章推荐
- php安装错误 (node.c:1953:error) 解决办法
- php安装错误 (node.c:1953:error) 解决办法
- php安装错误 (node.c:1953:error dereferencing pointer to incomplete type) 解决办法
- php (node.c:1953:error) 解决办法。
- 在Linux下安装PHP过程中,编译时出现configure: error: libjpeg.(a|so) not found 错误的解决办法
- ubuntu源码编译安装php常见错误解决办法
- PHP编译安装时常见错误解决办法
- PHP编译安装时常见错误解决办法,php编译常见错误
- PHP Parse Error: syntax error, unexpected $end 错误的解决办法
- 关于PHP Parse Error: syntax error, unexpected $end 错误的解决办法
- Windows 7 安装软件错误:“Error 1935 ...HRESULT: 0x800736FD” 的解决办法
- 安装mysql,在./configure时出现错误:error: No curses/termcap library found的解决办法
- 64位centos上nginx,php编译安装遇configure: error: Cannot find libmysqlclient under /usr 错误解决
- YUM安装东西提示PYCURL ERROR 6 - "Couldn't错误的解决办法
- 安装mysql,在./configure时出现错误:error: No curses/termcap library found的解决办法
- 安装mysql,在./configure时出现错误:error: No curses/termcap library found的解决办法
- 错误ERROR 1935 安装程序集的解决办法
- ubuntu源码编译安装php常见错误解决办法
- 【转】ubuntu源码编译安装php常见错误解决办法
- PHP错误:Fatal error session_start() 解决办法