php编译安装执行make时报错: make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1

php编译安装执行make时报错,报错如下:

/bin/sh /root/php-5.6.31/libtool --silent --preserve-dup-deps --mode=compile cc -I/root/php-5.6.31/ext/fileinfo/libmagic -Iext/fileinfo/ -I/root/php-5.6.31/ext/fileinfo/ -DPHP_ATOM_INC -I/root/php-5.6.31/include -I/root/php-5.6.31/main -I/root/php-5.6.31 -I/root/php-5.6.31/ext/date/lib -I/root/php-5.6.31/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/freetype2 -I/root/php-5.6.31/ext/mbstring/oniguruma -I/root/php-5.6.31/ext/mbstring/libmbfl -I/root/php-5.6.31/ext/mbstring/libmbfl/mbfl -I/root/php-5.6.31/ext/sqlite3/libsqlite -I/root/php-5.6.31/TSRM -I/root/php-5.6.31/Zend    -I/usr/include -g -O2 -fvisibility=hidden  -c /root/php-5.6.31/ext/fileinfo/libmagic/apprentice.c -o ext/fileinfo/libmagic/apprentice.lo
cc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1

查询得知是应为vps内存太小没到1G引起的,在./configure时加--disable-fileinfo成功解决

时间: 2024-08-25 01:46:09

php编译安装执行make时报错: make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1的相关文章

linux下安装php make: *** [sapi/cli/php] 错误 1 和 [ext/fileinfo/libmagic/apprentice.lo] Error 1的解决方法

p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Arial; color: #333333; background-color: #ffffff } p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Arial; color: #333333; background-color: #ffffff; min-height: 16.0px } span.s1 { } make: ***

linux下编译安装php各种报错大集合

PHP开源脚本语言 PHP(外文名: Hypertext Preprocessor,中文名:"超文本预处理器")是一种通用开源脚本语言.语法吸收了C语言.Java和Perl的特点,入门门槛较低,易于学习,使用广泛,主要适用于Web开发领域.PHP的文件后缀名为php. 本文为大家整理汇总了一些linux下编译安装php各种报错大集合 ,感兴趣的同学参考下. 报错1:make 后报错如下: Generating phar.php /home/oldboy/tools/php-5.3.27

编译安装php服务报错问题:configure: error: Cannot find libmysqlclient under /usr.

在编译安装php服务时报错: checking for MSSQL support via FreeTDS... nochecking for MySQL support... yeschecking for specified location of the MySQL UNIX socket... noconfigure: error: Cannot find libmysqlclient under /usr.Note that the MySQL client library is no

解决mysql跟php不在同一台机器上,编译安装php服务报错问题:configure: error: Cannot find MySQL header files under /application/mysql.

在编译安装php服务时报错: configure: error: Cannot find MySQL header files under /application/mysql. Note that the MySQL client library is not bundled anymore! 前边搭建lnmp环境时,是把mysql和php安装在了同一台机器上,编译php的时候,需要通过参数 --with-mysql来指定mysql的安装路径,但在生产环境中,通常php和mysql是不在同一台

编译android源码报错:build/envsetup.sh: 1: Syntax error:

编译android源码时报错: build/envsetup.sh: 1: Syntax error: "(" unexpected 解决方法: 执行$sudo dpkg-reconfigure dash命令,并选择"否" 编译android源码报错:build/envsetup.sh: 1: Syntax error:

Centos6.3 PHP编译安装JSON模块报错解决

我在搭建监控系统时候出现JSON模块安装失败,PHP5.3  系统Centos6.3,安装json报错 ZVAL_DELREF 符号未知错误... # Warning: PHP Startup: Unable to load dynamic library '/home/json/json-1.2.1/modules/json.so' - /home/json/json-1.2.1/modules/json.so: undefined symbol: ZVAL_DELREF in Unknown

执行automake时报错 error while making link: Operation not supported

执行automake时报错: [[email protected] project]# automake --add-missingconfigure.in: installing `./install-sh'; error while making link: Operation not supportedconfigure.in: installing `./missing'; error while making link: Operation not supportedMakefile.

ng add ng-zorro-antd 安装时报错 已经是管理员还需要权限Error: EPERM: operation not permitted, lstat &#39;C:\ngWorkspace\qd\node_modules\fsevents\node_modules&#39;

Error: EPERM: operation not permitted, lstat 'C:\ngWorkspace\qd\node_modules\fsevents\node_modules' ng add ng-zorro-antd -f fsevents 这个依赖安装不上 可以使用 -f 指令 强制安装 ng add ng-zorro-antd 安装时报错 已经是管理员还需要权限Error: EPERM: operation not permitted, lstat 'C:\ngWor

php安装mamcache扩展时报错

我们要将memcache作为数据库的缓存层,自然要使其结合php的,我们安装完memcache的服务端之后,需 要安装memcache的客户端,即安装memcache的扩展,以此连接php,使得memcache能够与php通信. 但是笔者在安装的时候遇到问题,使用make命令之后一直报错,显示: make: *** [memcache.lo] Error 1 在网上搜了半天,基本都说是缺少了依赖包zlib与zlib-devel,可是笔者安装之后还是不行. 后来又搜到一个解决方法,也放出来,希望可