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

【已解决】PHP5.6安装fileinfo问题

发表在 Linux面板2018-7-11 16:57 [复制链接] 8 7354

我在PHP5.6里面安装扩展fileinfo,提示安装已完成,但是还没有装好,我点击PHP5.6打开扩展里面,显示的还是未安装~

1.png

2.png
使用道具 举报 只看该作者 回复
发表于 2018-7-11 17:03:11 | 显示全部楼层
输入这条命令看看具体报错
  1. cat /tmp/panelExec.log
复制代码
使用道具 举报 回复 支持 反对
发表于 2018-7-11 17:06:02 | 显示全部楼层
河妖 发表于 2018-7-11 17:03
输入这条命令看看具体报错
  1. checking for ranlib... ranlib
  2. checking for strip... strip
  3. checking if cc supports -fno-rtti -fno-exceptions... no
  4. checking for cc option to produce PIC... -fPIC
  5. checking if cc PIC flag -fPIC works... yes
  6. checking if cc static flag -static works... yes
  7. checking if cc supports -c -o file.o... yes
  8. checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
  9. checking whether -lc should be explicitly linked in... no
  10. checking dynamic linker characteristics... GNU/Linux ld.so
  11. checking how to hardcode library paths into programs... immediate
  12. checking whether stripping libraries is possible... yes
  13. checking if libtool supports shared libraries... yes
  14. checking whether to build shared libraries... yes
  15. checking whether to build static libraries... no

  16. creating libtool
  17. appending configuration tag "CXX" to libtool
  18. configure: creating ./config.status
  19. config.status: creating config.h
  20. /bin/sh /www/server/php/72/src/ext/fileinfo/libtool --mode=compile cc -I/www/server/php/72/src/ext/fileinfo/libmagic -I. -I/www/server/php/72/src/ext/fileinfo -DPHP_ATOM_INC -I/www/server/php/72/src/ext/fileinfo/include -I/www/server/php/72/src/ext/fileinfo/main -I/www/server/php/72/src/ext/fileinfo -I/www/server/php/72/include/php -I/www/server/php/72/include/php/main -I/www/server/php/72/include/php/TSRM -I/www/server/php/72/include/php/Zend -I/www/server/php/72/include/php/ext -I/www/server/php/72/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /www/server/php/72/src/ext/fileinfo/fileinfo.c -o fileinfo.lo
  21. mkdir .libs
  22. cc -I/www/server/php/72/src/ext/fileinfo/libmagic -I. -I/www/server/php/72/src/ext/fileinfo -DPHP_ATOM_INC -I/www/server/php/72/src/ext/fileinfo/include -I/www/server/php/72/src/ext/fileinfo/main -I/www/server/php/72/src/ext/fileinfo -I/www/server/php/72/include/php -I/www/server/php/72/include/php/main -I/www/server/php/72/include/php/TSRM -I/www/server/php/72/include/php/Zend -I/www/server/php/72/include/php/ext -I/www/server/php/72/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /www/server/php/72/src/ext/fileinfo/fileinfo.c  -fPIC -DPIC -o .libs/fileinfo.o
  23. env: cc: Permission denied
  24. make: *** [fileinfo.lo] Error 1
  25. error
  26. [root@VM_40_162_centos ~]#
复制代码
使用道具 举报 回复 支持 反对
发表于 2018-7-11 17:06:58 | 显示全部楼层
河妖 发表于 2018-7-11 17:03
输入这条命令看看具体报错

你看到了PHP7.2 是因为我后面又尝试了7.2里面去安装。结果也是和5.6一样不行
使用道具 举报 回复 支持 反对
发表于 2018-7-11 17:10:00 | 显示全部楼层
装有云锁?
使用道具 举报 回复
发表于 2018-7-11 17:11:30 | 显示全部楼层

对的 装了 云锁
使用道具 举报 回复 支持 反对
发表于 2018-7-11 17:13:43 | 显示全部楼层
先把安全加固关了在安装
使用道具 举报 回复 支持 反对
发表于 2018-7-11 17:17:28 | 显示全部楼层
河妖 发表于 2018-7-11 17:13
先把安全加固关了在安装

OK了 感谢!已打赏~
使用道具 举报 回复 支持 反对
发表于 2018-10-29 19:07:09 | 显示全部楼层
为啥我的PHP5.6安装不了,一直是等待安装的状态
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术分析

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

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