编译php报错cc: 编译器内部错误:已杀死(程序 cc1) Please submit a full bug report, with preprocessed source if appropri
来源:互联网 发布:200w数据查20w 编辑:程序博客网 时间:2024/06/05 18:35
报错信息
7.0.23/ext/fileinfo/ -DPHP_ATOM_INC -I/usr/local/src/php-7.0.23/include -I/usr/local/src/php-7.0.23/main -I/usr/local/src/php-7.0.23 -I/usr/local/src/php-7.0.23/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/local/src/php-7.0.23/ext/mbstring/oniguruma -I/usr/local/src/php-7.0.23/ext/mbstring/libmbfl -I/usr/local/src/php-7.0.23/ext/mbstring/libmbfl/mbfl -I/usr/local/src/php-7.0.23/ext/sqlite3/libsqlite -I/usr/local/src/php-7.0.23/ext/zip/lib -I/usr/local/src/php-7.0.23/TSRM -I/usr/local/src/php-7.0.23/Zend -D_REENTRANT -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS -c /usr/local/src/php-7.0.23/ext/fileinfo/libmagic/apprentice.c -o ext/fileinfo/libmagic/apprentice.locc: 编译器内部错误:已杀死(程序 cc1)Please submit a full bug report,with preprocessed source if appropriate.See <http://bugzilla.redhat.com/bugzilla> for instructions.make: *** [ext/fileinfo/libmagic/apprentice.lo] 错误 1
解决方法:
这个原因是内存不足, 在linux下增加临时swap空间
step 1:
#sudo dd if=/dev/zero of=/home/swap bs=64M count=16
注释:of=/home/swap,放置swap的空间; count的大小就是增加的swap空间的大小,64M就是块大小,这里是64MB,所以总共空间就是bs*count=1024MB.这里分配空间的时候需要一点时间,等待执行完毕。
step 2:
# sudo mkswap /home/swap (可能会提示warning: don’t erase bootbits sectorson whole disk. Use -f to force,不用理会)
注释:把刚才空间格式化成swap各式
step 3:
#sudo swapon /home/swap
注释:使刚才创建的swap空间
step 4:执行你相关的操作,如make
如果创建了临时空间仍然提示 “g++: 内部错误:Killed (程序 cc1plus)”,可能分配的空间不够大,可继续分配更大的空间。
关闭:
step 1:sudo swapoff /home/swap
step 2:sudo rm /home/swap
阅读全文
0 0
- 编译php报错cc: 编译器内部错误:已杀死(程序 cc1) Please submit a full bug report, with preprocessed source if appropri
- cc: 内部错误:已杀死 (程序 cc1)
- g++: Internal error: Segmentation fault (program as) Please submit a full bug report.
- If you would like to submit a bug report, please visit:
- If you would like to submit a bug report, please visit:http://java.sun.com/webapps/bugreport/crash.j
- 升级ADT报错,Working copy not locked; this is probably a bug, please report
- 编译错误处理noproguard.classes-with-local.dex已杀死
- 编译错误处理noproguard.classes-with-local.dex已杀死
- What we do with a bug report?
- 解决方法unable to boot - please use a kernel appropri
- 解决方法unable to boot - please use a kernel appropri
- Android2.3 编译错误处理 make ......./noproguard.classes-with-local.dex] 已杀死
- Android编译错误处理 make ......./noproguard.classes-with-local.dex] 已杀死
- Android编译错误处理make ......./noproguard.classes-with-local.dex] 已杀死的方法
- ios 编译错误解决 Please file a bug at bugreport.apple.com and attach
- Jboss运行JSP报各种编译错误 statements are only available if source level is 5.0
- 编译FORTRAN程序提示:“编译器内部错误:段错误 请提交一份完整的错误报告”
- 编译报错Error:Connection timed out: connect. If you are behind an HTTP proxy, please
- Git中三种文件状态及其转换
- Unity Cinemachine插件学习笔记,结合Timeline实现简单场景动画
- android表格切换TabLayout简单使用
- 性能压测诡异的Requests/second 响应刺尖问题
- Android撒花效果
- 编译php报错cc: 编译器内部错误:已杀死(程序 cc1) Please submit a full bug report, with preprocessed source if appropri
- B树的B是什么意思, 我来BB一下
- 51nod 1119 机器人走方格 V2
- 项目发布到Linux注意事项。Linux系统SQL语句查询的表字段名不能大写。
- 清北学堂 金秋杯联赛模拟赛第二轮day1
- Kotlin进阶之相等、操作符重载
- Tesoroflow实现skip—gram算法
- sizeof 用法和特点 大小端模式
- SSM框架Spring+SpringMVC+MyBatis——详细整合教程