zoukankan      html  css  js  c++  java
  • arm开发板make编译时遇到 make[2]:*** [s-attrtab] 已杀死 问题的解决方案

    未验证

    出现“make[2]: *** [s-attrtab] 已杀死”log 是由于内存不足

    解决方案

    增加swapfile

    步骤如下:

    1. 查看当前swapfile状态

    root@ubuntu:home# swapon -s
    
    Filename    Type            Size    Used    Priority
    

    2. 创建swapfile大小512M

    root@ubuntu:home# dd if=/dev/zero of=/swapfile bs=1024 count=512k
    524288+0 records in
    524288+0 records out
    536870912 bytes (537 MB) copied, 8.54637 s, 62.8 MB/s
    

    3. 创建swapfile大小512M

    root@ubuntu:/# vim /etc/fstab
    

     

    在/etc/fstab最下方加入:

    /swapfile       none     swap    default       0              0 
    

     

    4. 验证

    root@ubuntu:home# swapon -s
    Filename      Type    Size    Used    Priority
    /swapfile     file  524284  8468    -1   
    

    5. free

    root@ubuntu:/# free
                 total       used       free     shared    buffers     cached
    Mem:        506756     499228       7528       1104       2548     395148
    -/+ buffers/cache:     101532     405224
    Swap:       524284          0     524284
    

    6.重新make

  • 相关阅读:
    监听器
    过滤器
    连接池与分页
    jdbc优化
    jdbc入门
    web开发mysql基础
    自定义标签
    jsp基础
    会话管理入门
    19. Remove Nth Node From End of List C++删除链表的倒数第N个节点
  • 原文地址:https://www.cnblogs.com/idyllcheung/p/12030280.html
Copyright © 2011-2022 走看看