Raspberry PI swap空间增加

问题还是来自于

编译openfst的时候一直报错,

  g++: internal compiler error: Killed (program cc1plus)

后来一查才发现原来是swap space太小的原因

Raspberry PI swapfile

看一下/etc/dphys-swapfile

 cat /etc/dphys-swapfile

默认的大小是100M

CONF_SWAPFILE=100

修改之

 CONF_SWAPSIZE=500

或者更大

重启Raspberry Pi

Raspberry PI查看缓存

  free -m

结果如下

             total       used       free     shared    buffers     cached
Mem:           437        165        271          0         19         80
-/+ buffers/cache:         66        371
Swap:          499          0        499

编译终于通过了。。

关于我

Github: @phodal     微博:@phodal     知乎:@phodal    

微信公众号(Phodal)

围观我的Github Idea墙, 也许,你会遇到心仪的项目

QQ技术交流群: 321689806