centos7 安装php 5.x.x 报错
错误1: /usr/src/php-5.2.9/ext/dom/node.c:In function 'dom_canonicalization': /usr/src/php-5.2.9/ext/dom/node.c:1950:21: error: dereferencingpointer to incomplete type ret = buf->buffer->use; ^ Infile included from /usr/src/php-5.2.9/main/php.h:38:0, from/usr/src/php-5.2.9/ext/dom/node.c:26: /usr/src/php-5.2.9/ext/dom/node.c:1952:40: error:dereferencing pointer to incomplete type RETVAL_STRINGL((char *)buf->buffer->content, ret, 1); ^ /usr/src/php-5.2.9/Zend/zend_API.h:472:14:note: in definition of macro 'ZVAL_STRINGL' char *__s=(s); int __l=l; \ ^ /usr/src/php-5.2.9/ext/dom/node.c:1952:5:note: in expansion of macro 'RETVAL_STRINGL' RETVAL_STRINGL((char *)buf->buffer->content, ret, 1); make:*** [ext/dom/node.lo] 错误1 [root@localhostphp-5.2.9]# 错误2: /usr/src/php-5.2.9/ext/dom/documenttype.c:In function 'dom_documenttype_internal_subset_read': /usr/src/php-5.2.9/ext/dom/documenttype.c:219:42: error:dereferencing pointer to incomplete type strintsubset =xmlStrndup(buff->buffer->content, buff->buffer->use); ^ /usr/src/php-5.2.9/ext/dom/documenttype.c:219:65: error:dereferencing pointer to incomplete type strintsubset =xmlStrndup(buff->buffer->content, buff->buffer->use); ^ make:*** [ext/dom/documenttype.lo] 错误 1 [root@localhostphp-5.2.9]# 解决办法: 下载https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4N.txt补丁程序 编辑/usr/src/php-5.2.9/ext/dom/node.c文件,将源代码段替换为对应的补丁代码段(表紫色部分) ---ext/dom/node.c 2012-08-06 17:49:48.826716692+0800 +++ext/dom/node.c 2012-08-0617:52:47.633484660 +0800 @@-1895,9 +1895,17 @@ static void dom_canonicalization(INTERNA RETVAL_FALSE; } else { if (mode == 0) { #ifdef LIBXML2_NEW_BUFFER ret =xmlOutputBufferGetSize(buf); #else ret = buf->buffer->use; #endif if (ret > 0) { #ifdef LIBXML2_NEW_BUFFER RETVAL_STRINGL((char *) xmlOutputBufferGetContent(buf), ret, 1); +#else RETVAL_STRINGL((char *) buf->buffer->content,ret, 1); #endif } else { RETVAL_EMPTY_STRING(); } 3.同理编辑/usr/src/php-5.2.9/ext/dom/documenttype.c文件,将源代码段替换为对应的补丁代码段(表紫色部分) ---ext/dom/documenttype.c 2012-08-0618:02:16.019640870 +0800 +++ext/dom/documenttype.c 2012-08-06 18:06:16.612228905+0800 @@-205,7 +205,13 @@ int dom_documenttype_internal_subset_rea if (buff != NULL) { xmlNodeDumpOutput (buff, NULL, (xmlNodePtr)intsubset, 0, 0, NULL); xmlOutputBufferFlush(buff); #ifdef LIBXML2_NEW_BUFFER ZVAL_STRINGL(*retval,xmlOutputBufferGetContent(buff), xmlOutputBufferGetSize(buff), 1); #else ZVAL_STRINGL(*retval, buff->buffer->content,buff->buffer->use, 1); #endif (void)xmlOutputBufferClose(buff); return SUCCESS; }
centos7 安装php 5.x.x 报错的更多相关文章
- CentOS7安装Docker时的异常报错与解决方法
重要:有些人在vmware中安装了新的centos用于使用docker,但是往往会忽略了更换源与进行系统update, 这样会导致安装过程中出现诸多如下类问题,为了避免不必要的麻烦在安装docker前 ...
- Centos7安装RabbitMQ解决Erlang依赖报错
通过yum等软件仓库都可以直接安装RabbitMQ,但版本一般都较为保守. RabbitMQ官网提供了新版的rpm包(http://www.rabbitmq.com/download.html),但是 ...
- 使用yum安装应用程序时候,报错:[Errno 14] PYCURL ERROR 7 - "Failed to connect to 2001:da8:8000:6023::230: 网络不可达"
使用yum安装应用程序时候,报错:[Errno 14] PYCURL ERROR 7 - "Failed to connect to 2001:da8:8000:6023::230: 网络不 ...
- linux上安装完torch后仍报错:ImportError: No module named torch
linux上安装完torch后仍报错: Traceback (most recent call last): File , in <module> import torch ImportE ...
- Mac安装HomeBridge适配小米Homekit报错:module未找到解决
Mac安装HomeBridge适配小米Homekit报错:module未找到 具体错误是: module.js:471 throw err; balabalal...... 问了一圈,终于解决,但是又 ...
- 在CentOS上安装node.js的时候报错:No acceptable C compiler found!解决办法
在CentOS上安装node.js的时候报错:No acceptable C compiler found! 原因:没有c编译器. 解决办法:安装GCC 命令如下: #yum install gcc ...
- Xamarin开发安装Visual Studio 2015 update2报错的解决办法
Xamarin开发安装Visual Studio 2015 update2报错的解决办法错误信息:update 2 requires a member of the visual studio 201 ...
- Windows 10 上安装 3D Studio Max 2016 报错的解决办法
在 Windows 10 上安装 3D Stuido Max 2016 报错,无法正常安装,查看日志是 VC 运行时安装错误,经过分析发现在 Windows 10 上已经有这些运行时并且版本比安装包中 ...
- 安装 r 里的 igraph 报错
转载来源:http://genek.tv/article/40 1186 0 0 安装 r 里的 igraph 报错: foreign-graphml.c: In function ‘igraph_w ...
随机推荐
- ng2 quickstart-primeng
1.导入quickstart-angular项目 2.安装primeng npm install primeng 3.安装@angular/animations npm install @angula ...
- 关于在phpStudy环境下,windows cmd中 php不是内部命令问题
首先查看system32是否加入系统变量 其次要把当前运行的php版本的路径加入到系统变量中去,path中, 一定要是这个样子的: D:\phpStudy\php\php-5.6.27-nts 不然没 ...
- 常见HTTP状态(304,)
一.1XX(临时响应) 表示临时响应并需要请求者继续执行操作的状态码. 100(继续) 请求者应当继续提出请求.服务器返回此代码表示:已经收到请求的第一部分,正在等待其余部分. 101(切换协议) 请 ...
- sprites.png雪碧图
长时间不用把精灵图怎么用给忘了... 一.PC端 给所用到精灵图的元素设置background:url(sprites.png路径); background-position: -x -y; 其中: ...
- max_spare_servers到底是个什么意思?
pm.max_children=500pm.start_servers=280pm.min_spare_servers=50pm.max_spare_servers=500 把max_spare_se ...
- Java之聊天室系统设计二
服务器端: 浏览器端:
- Linux虚拟机忘记root密码的拯救办法
于是百度之,还是有很多解决方案的.其原理就是,进入到single单用户模式下,去修改root密码: 1.重启系统,选择Linux引导,然后按住e,出现如下界面: 按下e 出现如下页面 选择kernel ...
- spring mvc: 可参数化的视图控制器(在配置中指定jsp文件)MultiActionController/SimpleUrlHandlerMapping/ParameterizableViewController
spring mvc: 可参数化的视图控制器(在配置中指定jsp文件)MultiActionController/SimpleUrlHandlerMapping/ParameterizableView ...
- Educational Codeforces Round 40 I. Yet Another String Matching Problem
http://codeforces.com/contest/954/problem/I 给你两个串s,p,求上一个串的长度为|p|的所有子串和p的差距是多少,两个串的差距就是每次把一个字符变成另一个字 ...
- 第十天 1-9 rhel7-文件的归档和压缩
大纲:文件的归档和压缩1.tar命令的使用及参数解析tar.gz.bz/bz2文件的创建.查看及解压zip/unzip命令的使用 一.文件的归档和压缩 在我们的计算机中,经常会遇到有好多文件名相似或作 ...