Mantalog

~ blog of the Mantarou, by the Mantarou, for the Mantarou ~

OpenFOAMのmakeでエラー

VirtualBox上のUbuntu14.04でOpenFOAM2.4.0をmakeした。
手順は以下の手順に従った。
https://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-2.4.0/Ubuntu#Ubuntu_14.04

makeしたところ以下のようなエラーが出た。

g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
make: *** [Make/linux64GccDPOpt/GAMGSolver.o] Error 4
make: *** Waiting for unfinished jobs....


原因は以下のURLに書いてあった。
swap領域が無かったためらしい。。。
[SOLVED] g++: internal compiler error: Killed (program cc1plus)

以下の手順に従って、swap領域を追加したらうまくmakeできた。
Ruby - Ubuntu でスワップファイルを追加する方法 - Killed とか (x _ x)ひえー - Qiita