我正在尝试将 dlib 安装到 cloud9 上,但我一直收到此错误。
c++: 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]: *** [CMakeFiles/dlib_.dir/src/face_recognition.cpp.o] Error 4
make[1]: *** [CMakeFiles/dlib_.dir/all] Error 2
make: *** [all] Error 2
error: cmake build failed!
有办法解决这个问题吗?
最佳答案
这个问题已经很久了,我遇到了同样的问题,希望这会对其他人有所帮助。 看来您的 RAM 内存不足,因此您可以根据此 answer 通过交换文件修复它如下
free
sudo dd if=/dev/zero of=/var/swap.img bs=1024k count=1000
sudo mkswap /var/swap.img
sudo swapon /var/swap.img
free
关于python - dlib 构建失败,无法导入 dlib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42779695/