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

php无法安装fileinfo扩展

发表在 Linux面板2018-4-3 12:25 [复制链接] 9 10659

其它扩展也不能安装,安装其它php版本也安装不了。这是什么回事?
  1. HTTP request sent, awaiting response... 200 OK
  2. Length: 3233 (3.2K) [application/octet-stream]
  3. Saving to: ‘fileinfo.sh’

  4. 0K ...                                                   100%  417M=0s

  5. 2018-04-02 11:27:07 (417 MB/s) - ‘fileinfo.sh’ saved [3233/3233]

  6. Configuring for:
  7. PHP Api Version:         20131106
  8. Zend Module Api No:      20131226
  9. Zend Extension Api No:   220131226
  10. checking for grep that handles long lines and -e... /bin/grep
  11. checking for egrep... /bin/grep -E
  12. checking for a sed that does not truncate output... /bin/sed
  13. checking for cc... cc
  14. checking whether the C compiler works... yes
  15. checking for C compiler default output file name... a.out
  16. checking for suffix of executables...
  17. checking whether we are cross compiling... no
  18. checking for suffix of object files... o
  19. checking whether we are using the GNU C compiler... yes
  20. checking whether cc accepts -g... yes
  21. checking for cc option to accept ISO C89... none needed
  22. checking how to run the C preprocessor... cc -E
  23. checking for icc... no
  24. checking for suncc... no
  25. checking whether cc understands -c and -o together... yes
  26. checking for system library directory... lib
  27. checking if compiler supports -R... no
  28. checking if compiler supports -Wl,-rpath,... yes
  29. checking build system type... x86_64-unknown-linux-gnu
  30. checking host system type... x86_64-unknown-linux-gnu
  31. checking target system type... x86_64-unknown-linux-gnu
  32. checking for PHP prefix... /www/server/php/56
  33. checking for PHP includes... -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
  34. checking for PHP extension directory... /www/server/php/56/lib/php/extensions/no-debug-non-zts-20131226
  35. checking for PHP installed headers prefix... /www/server/php/56/include/php
  36. checking if debug is enabled... no
  37. checking if zts is enabled... no
  38. checking for re2c... re2c
  39. checking for re2c version... 0.16 (ok)
  40. checking for gawk... gawk
  41. checking for fileinfo support... yes, shared
  42. checking for strcasestr... yes
  43. checking for utimes... yes
  44. checking for strndup... yes
  45. checking for ld used by cc... /usr/bin/ld
  46. checking if the linker (/usr/bin/ld) is GNU ld... yes
  47. checking for /usr/bin/ld option to reload object files... -r
  48. checking for BSD-compatible nm... /usr/bin/nm -B
  49. checking whether ln -s works... yes
  50. checking how to recognize dependent libraries... pass_all
  51. checking for ANSI C header files... yes
  52. checking for sys/types.h... yes
  53. checking for sys/stat.h... yes
  54. checking for stdlib.h... yes
  55. checking for string.h... yes
  56. checking for memory.h... yes
  57. checking for strings.h... yes
  58. checking for inttypes.h... yes
  59. checking for stdint.h... yes
  60. checking for unistd.h... yes
  61. checking dlfcn.h usability... yes
  62. checking dlfcn.h presence... yes
  63. checking for dlfcn.h... yes
  64. checking the maximum length of command line arguments... 1572864
  65. checking command to parse /usr/bin/nm -B output from cc object... ok
  66. checking for objdir... .libs
  67. checking for ar... ar
  68. checking for ranlib... ranlib
  69. checking for strip... strip
  70. checking if cc supports -fno-rtti -fno-exceptions... no
  71. checking for cc option to produce PIC... -fPIC
  72. checking if cc PIC flag -fPIC works... yes
  73. checking if cc static flag -static works... yes
  74. checking if cc supports -c -o file.o... yes
  75. checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
  76. checking whether -lc should be explicitly linked in... no
  77. checking dynamic linker characteristics... GNU/Linux ld.so
  78. checking how to hardcode library paths into programs... immediate
  79. checking whether stripping libraries is possible... yes
  80. checking if libtool supports shared libraries... yes
  81. checking whether to build shared libraries... yes
  82. checking whether to build static libraries... no

  83. creating libtool
  84. appending configuration tag "CXX" to libtool
  85. configure: creating ./config.status
  86. config.status: creating config.h
  87. config.status: config.h is unchanged
  88. /bin/sh /www/server/php/56/src/ext/fileinfo/libtool --mode=compile cc -I/www/server/php/56/src/ext/fileinfo/libmagic -I. -I/www/server/php/56/src/ext/fileinfo -DPHP_ATOM_INC -I/www/server/php/56/src/ext/fileinfo/include -I/www/server/php/56/src/ext/fileinfo/main -I/www/server/php/56/src/ext/fileinfo -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/fileinfo/libmagic/apprentice.c -o libmagic/apprentice.lo
  89. cc -I/www/server/php/56/src/ext/fileinfo/libmagic -I. -I/www/server/php/56/src/ext/fileinfo -DPHP_ATOM_INC -I/www/server/php/56/src/ext/fileinfo/include -I/www/server/php/56/src/ext/fileinfo/main -I/www/server/php/56/src/ext/fileinfo -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/fileinfo/libmagic/apprentice.c  -fPIC -DPIC -o libmagic/.libs/apprentice.o
  90. cc: internal compiler error: Killed (program cc1)
  91. Please submit a full bug report,
  92. with preprocessed source if appropriate.
  93. See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
  94. Makefile:184: recipe for target 'libmagic/apprentice.lo' failed
  95. make: *** [libmagic/apprentice.lo] Error 1
复制代码


使用道具 举报 只看该作者 回复
发表于 2018-4-3 12:35:50 | 显示全部楼层
低内存装不上!

----------------------------------------------------------------------------------------------------
菜鸟团队技术博客点击联系
使用道具 举报 回复 支持 反对
发表于 2018-4-3 14:31:46 | 显示全部楼层
多大内存 有没有云锁啥的
使用道具 举报 回复 支持 反对
发表于 2018-4-5 10:00:37 | 显示全部楼层
河妖 发表于 2018-4-3 14:31
多大内存 有没有云锁啥的

360截图20180405095911250.jpg

内存应该够啊。。  云锁没装。

我用的是微软的azure  b1s 虚拟机
使用道具 举报 回复 支持 反对
发表于 2018-4-7 11:11:28 | 显示全部楼层
先关掉程序 腾出内存在安装 我的512M内存装7.2的就这样 后来关掉东西在安装就成功了。
使用道具 举报 回复 支持 反对
发表于 2018-4-9 09:32:14 | 显示全部楼层
tssz 发表于 2018-4-5 10:00
内存应该够啊。。  云锁没装。

我用的是微软的azure  b1s 虚拟机

不够 释放内存后把Mysql停了在安装
使用道具 举报 回复 支持 反对
发表于 2018-4-18 16:37:29 | 显示全部楼层
Mysql暂停了,其它无关的软件我都删除了,还是安装不上。。晕。。。
使用道具 举报 回复 支持 反对
发表于 2018-4-24 21:45:56 | 显示全部楼层
我也遇到这样的情况,点安装的话,它会启动安装过程,但是最后也没有安装,可是系统信息就显示已经安装,回刀PHP的扩展一看,还是没装。
使用道具 举报 回复 支持 反对
发表于 2018-7-27 00:10:17 | 显示全部楼层
本帖最后由 bretton 于 2018-7-27 00:18 编辑

同样的问题。 不过解决了。我的方法是把宝塔上的网站,Nginx,mysql,phpMyadmin 关闭,之后再安装
使用道具 举报 回复 支持 反对
发表于 2018-10-26 12:32:42 | 显示全部楼层
bretton 发表于 2018-7-27 00:10
同样的问题。 不过解决了。我的方法是把宝塔上的网站,Nginx,mysql,phpMyadmin 关闭,之后再安装 ...

全部关掉也安装不了,1G内存
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

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

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