1

我需要在我的 Linux 服务器上安装 HHVM 以使我的 hacklang 工作。但我在安装过程中收到此错误消息

c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make[2]: *** [third-party/proxygen/CMakeFiles/hphp_proxygen.dir/lib/services/RequestWorker.cpp.o] Error 4
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [third-party/proxygen/CMakeFiles/hphp_proxygen.dir/all] Error 2
make: *** [all] Error 2
4

1 回答 1

2

此错误可能是由于内存不足,通过运行命令检查您的服务器有多少内存

free -h

如果您没有太多可用空间,请尝试在服务器进程中添加交换空间以使用交换文件添加交换空间

sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile

现在开始编译你的软件

编译完成后,您可以删除您的交换文件

sudo swapoff /swapfile
sudo rm /swapfile
于 2015-07-08T04:07:16.370 回答