【发布时间】:2011-04-12 17:07:43
【问题描述】:
尝试使用 Nginx(在 EC2 Linux 上)安装Passenger。我正在使用 ec2-user(而不是 Root)。带有 RVM 的 Ruby 1.9.2。
Passenger gem 安装正确。
但是当我尝试时:
passenger-install-nginx-module
我明白了:
正在检查所需的软件...
* GNU C++ compiler... not found
* The 'make' tool... found at /usr/bin/make
* A download tool like 'wget' or 'curl'... found at /usr/bin/wget
* Ruby development headers... found
* OpenSSL support for Ruby... not found
* RubyGems... found
* Rake... found at /home/ec2-user/.rvm/wrappers/ruby-1.9.2-p180/rake
* rack... found
* Curl development headers with SSL support... not found
* OpenSSL development headers... not found
* Zlib development headers... not found
虽然上述情况存在。例如,如果我输入:
$> gcc
$> gcc: no input files
在网上看到可以尝试使用的地方:
rvmsudo passenger-install-nginx-module
但我遇到了一个问题:
--------------------------------------------
Checking for required software...
* GNU C++ compiler... not found
* The 'make' tool... found at /usr/bin/make
* A download tool like 'wget' or 'curl'... found at /usr/bin/wget
* Ruby development headers... found
* OpenSSL support for Ruby... not found
* RubyGems... found
Unable to locate the RVM path. Your RVM installation is probably too old. Please update it with 'rvm update --head && rvm reload && rvm repair all'.
有什么想法吗?
【问题讨论】:
-
试图按照消息说的做?
rvm update --head && rvm reload && rvm repair all -
安装所有找不到的库。还写了失败后如何安装
-
@pablob 是的,我做到了。事实上,我刚刚安装了 RVM,所以它是最新的
-
@fl00r 它们已安装(作为根),但我以 ec2 用户身份运行乘客安装程序(这是一个问题吗?)
-
不应该,因为您使用的是
rvmsudo。
标签: ruby-on-rails nginx passenger rvm