乘客安装失败。内存太低?
我一直在尝试在我的 VPS(运行 Ubuntu 10.10)上安装 Passanger for apache,但它似乎因 g++ 而失败,因为它在编译模块时失败了。然后安装挂起一段时间:
g++: Internal error: Killed (program cc1plus)
在网上查了一下,这似乎可能是由于内存不足(我只有 256mb)。
有什么办法解决这个问题吗?或者,这实际上可能不是问题所在?我只需要这台服务器几天,到目前为止,一切设置都非常混乱,所以我不确定我是否真的需要使用高 RAM VPS 重新开始。有什么建议吗?
I have been trying to install Passanger for apache on my VPS (running Ubuntu 10.10) and it seems to fail due to g++ as it fails at the point it compiles the module. The installation hangs for a while then:
g++: Internal error: Killed (program cc1plus)
After looking around on the net it seems this could be due to a lack of memory (I only have 256mb).
Is there any way around this? Or, is this in fact probably not the problem? I just need this server for a few days and so far it has been such a mess around just setting everything up so I'm not sure I really want to have to start again with a high RAM VPS. Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 debian 软件包而不是自己构建乘客 (
apt-get install libapache2-mod-passenger
)。不过,256M 对于 Rails 站点来说似乎相当紧张。我无法想象您能够运行超过一两个乘客子级(我的乘客 apache 实例每个使用超过 200M)。
Use the debian package instead of building passenger yourself (
apt-get install libapache2-mod-passenger
).256M seems pretty tight for a rails site though. I can't imagine you being able to run more than one or two passenger children (my passenger apache instances are using over 200M each).
我也遇到这个问题。然后我尝试安装 Debian 软件包。但是这个包与 Ruby 1.8 一起使用,与 1.9 不兼容(我在编写
hash_name: value
而不是:hash_name => value
时遇到问题。我正在尝试升级我的 VPS,但仍在寻找不这样做的方法
I run into this problem, too. Then I tried to install the Debian package. But this package is used with Ruby 1.8 and is not compatible with 1.9 (I got problems with writing
hash_name: value
instead of:hash_name => value
.I'm trying to upgrade my VPS, but still looking for a way not to do so