collect2: ld terminated with signal 9 错误解决办法

来源:互联网 发布:阿拉伯菜 知乎 编辑:程序博客网 时间:2024/05/21 02:36
编译android是出现如下错误:
target Java: CameraEffectsTests (out/target/common/obj/APPS/CameraEffectsTests_intermediates/classes)
collect2: ld terminated with signal 9 [Killed]
编译出错主要原因是服务器虚拟内存不足导致,而服务器刚好又没有swap分区(我司信息管理部很伟大),所以需要建个swap分区,参考网上的方法:
# dd if=/dev/zero of=/opt/other/swapfile bs=1024 count=512K# mkswap /opt/other/swapfile# swapon /opt/other/swapfile# swapon -s

Filename                Type        Size    Used    Priority/opt/other/swapfile                     file        524280    0    -1

阅读全文
0 0
原创粉丝点击