当前位置:论坛首页 > Linux面板 > 求助

【已解决】PHP5.6安装tidy扩展 提示错误buffio.h

发表在 Linux面板2022-9-17 11:13 [复制链接] 6 5335

用编译的方式安装好PHP5.6 ./configure 后make时出现错误

/www/server/php/56/src/ext/tidy/tidy.c:34:10: 致命错误:buffio.h:没有那个文件或目录
#include "buffio.h"
          ^~~~~~~~~~
编译中断。
make: *** [Makefile:181:tidy.lo] 错误 1


使用道具 举报 只看该作者 回复
发表于 2022-9-17 12:30:05 | 显示全部楼层

使用道具 举报 回复 支持 反对
发表于 2022-9-17 16:13:55 | 显示全部楼层
堡塔安全木兰 发表于 2022-9-17 15:10
先安装依赖

然后开始安装扩展

PHP71顺利安装,5.6依然提示错误
  1. [root@bogon tidy]# make && make install
  2. /bin/sh /www/server/php/56/src/ext/tidy/libtool --mode=compile cc  -I. -I/www/server/php/56/src/ext/tidy -DPHP_ATOM_INC -I/www/server/php/56/src/ext/tidy/include -I/www/server/php/56/src/ext/tidy/main -I/www/server/php/56/src/ext/tidy -I/www/server/php/56/include/php -I/www/server/php/56/include/php/main -I/www/server/php/56/include/php/TSRM -I/www/server/php/56/include/php/Zend -I/www/server/php/56/include/php/ext -I/www/server/php/56/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /www/server/php/56/src/ext/tidy/tidy.c -o tidy.lo
  3. mkdir .libs
  4. cc -I. -I/www/server/php/56/src/ext/tidy -DPHP_ATOM_INC -I/www/server/php/56/src/ext/tidy/include -I/www/server/php/56/src/ext/tidy/main -I/www/server/php/56/src/ext/tidy -I/www/server/php/56/include/php -I/www/server/php/56/include/php/main -I/www/server/php/56/include/php/TSRM -I/www/server/php/56/include/php/Zend -I/www/server/php/56/include/php/ext -I/www/server/php/56/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /www/server/php/56/src/ext/tidy/tidy.c  -fPIC -DPIC -o .libs/tidy.o
  5. /www/server/php/56/src/ext/tidy/tidy.c:34:10: 致命错误:buffio.h:没有那个文件或目录
  6. #include "buffio.h"
  7.           ^~~~~~~~~~
  8. 编译中断。
  9. make: *** [Makefile:181:tidy.lo] 错误 1
  10. [root@bogon tidy]#
复制代码



使用道具 举报 回复 支持 反对
发表于 2022-9-22 11:48:03 | 显示全部楼层
堡塔安全木兰 发表于 2022-9-17 15:10
先安装依赖

然后开始安装扩展
  1. echo "extensions=/www/server/php/56/lib/php/extensions/no-debug-non-zts-20131226/tidy.so" >> /www/server/php/56/etc/php.ini
复制代码


这句需要下面的才能生效

  1. echo "extensions=tidy.so" >> /www/server/php/56/etc/php.ini
  2. /etc/init.d/php-fpm-56 restart
复制代码
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表