没找到乘客耙子! Ubuntu(10.04)

时间:2010-09-17 14:29:42

标签: ruby-on-rails ubuntu rake passenger

好的,所以我以root身份安装了rvm和所有东西。 然后我用rvm安装了Ruby Enterprise Edition。

到目前为止,我一直在讨论rake和rvm的一些问题,而且我不太清楚为什么会这样。

我不得不在我的/ usr / local / bin中手动创建链接以进行rake工作。

但是当我乘客安装-nginx-module

Welcome to the Phusion Passenger Nginx module installer, v2.2.15.

This installer will guide you through the entire installation process. It
shouldn't take more than 5 minutes in total.

Here's what you can expect from the installation process:

 1. This installer will compile and install Nginx with Passenger support.
 2. You'll learn how to configure Passenger in Nginx.
 3. You'll learn how to deploy a Ruby on Rails application.

Don't worry if anything goes wrong. This installer will advise you on how to
solve any problems.

Press Enter to continue, or Ctrl-C to abort.


--------------------------------------------

Checking for required software...

 * GNU C++ compiler... found at /usr/bin/g++
 * Ruby development headers... found
 * OpenSSL support for Ruby... found
 * RubyGems... found
 * Rake... not found
 * rack... found
 * OpenSSL development headers... found
 * Zlib development headers... found

Some required software is not installed.
But don't worry, this installer will tell you how to install them.

Press Enter to continue, or Ctrl-C to abort.

但是rake在我的道路上

root@li84-12:/usr/bin# rake
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/usr/local/rvm/rubies/ree-1.8.7-2010.02/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2377:in `raw_load_rakefile'
(See full trace by running task with --trace)

任何人的想法?这妨碍了我的客户项目= \

2 个答案:

答案 0 :(得分:2)

我遇到了同样的事情,对googlecode线程的以下评论很有见地。

http://code.google.com/p/phusion-passenger/issues/detail?id=227#c8

简短版本 - 它在安装ruby二进制文件的同一目录中查找rake(而不是在$ PATH中)。快速而又脏的修复方法是将符号链接放到ruby bin目录中。

EG。

Ruby Binary = /usr/local/bin/ruby

Rake Binary = /usr/local/lib/ruby/gems/1.8/bin/rake

ln -s /usr/local/lib/ruby/gems/1.8/bin/rake /usr/local/bin/

在我的情况下,似乎可以解决这个问题。

答案 1 :(得分:1)

尝试乘客3.它有很多改进的RVM支持。