无法在Ubuntu 14.04虚拟机上构建phantomjs

无法在Ubuntu 14.04虚拟机上构建phantomjs,phantomjs,Phantomjs,我有克隆人git://github.com/ariya/phantomjs.git 和签出分支2.0,但在运行时出现以下错误。/build.sh 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.Bug

我有克隆人git://github.com/ariya/phantomjs.git 和签出分支2.0,但在运行时出现以下错误。/build.sh

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[2]: *** [.obj/loader/FrameLoader.o] Error 4
make[2]: Leaving directory `/home/luc/phantomjs/src/qt/qtwebkit/Source /WebCore'
make[1]: *** [sub-Target-pri-make_first-ordered] Error 2
make[1]: Leaving directory `/home/luc/phantomjs/src/qt/qtwebkit/Source/WebCore'
make: *** [sub-Source-WebCore-WebCore-pro-make_first-ordered] Error 2
知道我会错过什么吗? 谢谢,
Luc

sudo apt get install phantomjs他们说文档中没有针对linux的构建,但似乎有。太好了,我不知道这个。希望2.0版可以通过apt get很快发布:它目前安装了1.9.0。你是说签出分支2.0吗?但是我在运行**./build.py**而不是./build.sh时出现了以下错误?版本2使用Python模块build.py进行构建。我在尝试构建版本1.9.8和./build.sh失败时注意到了这一点:
sudo apt-get install build-essential g++ flex bison gperf ruby perl libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev libpng-dev libjpeg-dev