aliyu上安装boost报internal compile error:killed错误

在阿里云(centos 7.4)上安装boost 1.64报错,如图:

aliyu上安装boost报internal compile error:killed错误

网上查了下资料,发现是内存不足导致的。按网上的方法开启swap:

aliyu上安装boost报internal compile error:killed错误

继续编译,可以成功,只是速度比较慢而已,我的阿里云是最低配置。

aliyu上安装boost报internal compile error:killed错误