在我的 VPS 上安装 Node.js 时出错(为了让 AjaxIM 在“访客”模式下工作)
我得到的错误:
virtual memory exhausted: Cannot allocate memory
scons: *** [obj/release/api.o] Error 1
scons: building terminated because of errors.
Waf: Leaving directory `/home/colleg60/node-v0.4.6/build'
Build failed: -> task failed (err #2):
{task: libv8.a SConstruct -> libv8.a}
make: *** [program] Error 1
我能够执行以下操作,但当我尝试“制作”时遇到上面的障碍:
wget http://nodejs.org/dist/node-v0.4.6.tar.gz
gunzip node-v0.4.6.tar.gz
tar -xf node-v0.4.6.tar
cd node-v0.4.6
./configure
make
我做错了什么?
Error I get:
virtual memory exhausted: Cannot allocate memory
scons: *** [obj/release/api.o] Error 1
scons: building terminated because of errors.
Waf: Leaving directory `/home/colleg60/node-v0.4.6/build'
Build failed: -> task failed (err #2):
{task: libv8.a SConstruct -> libv8.a}
make: *** [program] Error 1
I am able to do the following but hit the snag above when I attempt to 'Make':
wget http://nodejs.org/dist/node-v0.4.6.tar.gz
gunzip node-v0.4.6.tar.gz
tar -xf node-v0.4.6.tar
cd node-v0.4.6
./configure
make
What am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试
sudo make
。看来你没有分配内存的权利。这似乎是服务器权限问题。我们需要更多地了解您的特定 VPS。
Try
sudo make
. It appears you do not have the right to allocate memory.This seems to be a server permission issue. We would need to know more about your specific VPS.