编译Phalcon-虚拟内存已耗尽:无法分配内存 [英] Compiling Phalcon - Virtual memory exhausted: Cannot allocate memory

查看:86
本文介绍了编译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

https://web.archive.org/web/20141202015428/http://hostingfu.com/article/compiling-with-gcc-on-low-memory-vps

停止尽可能多的服务(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-虚拟内存已耗尽:无法分配内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆