1

我一直在尝试在我的 VPS(运行 Ubuntu 10.10)上安装 Passanger for apache,它似乎由于 g++ 而失败,因为它在编译模块时失败了。安装会挂起一段时间:

g++: Internal error: Killed (program cc1plus)

在网上四处查看后,这似乎是由于内存不足(我只有 256mb)。

有没有办法解决?或者,这实际上可能不是问题吗?我只需要这台服务器几天,到目前为止,仅设置所有内容就变得一团糟,所以我不确定我是否真的要重新开始使用高 RAM VPS。有什么建议么?

4

2 回答 2

4

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).

于 2011-02-15T21:56:43.257 回答
0

我也遇到这个问题。然后我尝试安装 Debian 软件包。但是这个包与 Ruby 1.8 一起使用并且与 1.9 不兼容(我在编写hash_name: value而不是:hash_name => value.

我正在尝试升级我的 VPS,但仍在寻找不这样做的方法

于 2013-02-09T01:18:36.420 回答