本文介绍了编译Phalcon-虚拟内存已耗尽:无法分配内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试编译Phalcon时,出现错误:
When I try to compile Phalcon, I get an error:
virtual memory exhausted: Cannot allocate memory
我正在运行以下命令
git clone --depth=1 git://github.com/phalcon/cphalcon.git
cd cphalcon/build
sudo ./install
我有一个具有1GB RAM的VPS
I have a VPS with 1GB RAM
推荐答案
似乎GCC正在分配大量内存,请检查此内容
It seems GCC is allocating a lot of memory, check this
停止尽可能多的服务(Apache,MySQL等)将释放更多的内存,并且Phalcon将进行编译.最坏的情况是您需要增加虚拟盒子的内存.
Stopping as many services as possible (Apache, MySQL etc.) will free up more memory, and Phalcon will compile. Worst case scenario you will need to increase the memory of your virtual box.
感谢@AndrewD提供了有效的链接.
Thanks to @AndrewD for providing the link that works.
这篇关于编译Phalcon-虚拟内存已耗尽:无法分配内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!