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

使用宝塔面板安装PHP扩展失败

发表在 Linux面板2018-2-6 19:01 [复制链接] 1 3515


系统: Ubuntu 16.04.3 LTS
版本:5.6.0
问题描述:
使用宝塔面板安装PHP7.2.2扩展失败


安装日志:
Length: 3132 (3.1K) [application/octet-stream]
Saving to: ‘fileinfo.sh’

0K ...                                                   100%  148M=0s

2018-02-06 05:53:48 (148 MB/s) - ‘fileinfo.sh’ saved [3132/3132]

正在选择下载节点...
curl: (28) Connection timed out after 3001 milliseconds
/www/server/panel/install/public.sh: line 9: [: =: unary operator expected
cat: /etc/redhat-release: No such file or directory
Configuring for:
PHP Api Version:         20170718
Zend Module Api No:      20170718
Zend Extension Api No:   320170718
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /www/server/php/72
checking for PHP includes... -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
checking for PHP extension directory... /www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718
checking for PHP installed headers prefix... /www/server/php/72/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.16 (ok)
checking for gawk... gawk
checking for fileinfo support... yes, shared
checking for strcasestr... yes
checking for utimes... yes
checking for strndup... yes
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
/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/libmagic/apprentice.c -o libmagic/apprentice.lo
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/libmagic/apprentice.c  -fPIC -DPIC -o libmagic/.libs/apprentice.o
virtual memory exhausted: Cannot allocate memory
Makefile:197: recipe for target 'libmagic/apprentice.lo' failed
make: *** [libmagic/apprentice.lo] Error 1


使用道具 举报 只看该作者 回复
发表于 2018-2-7 09:20:51 | 显示全部楼层
你内存多大。。。
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

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

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