2010-09-17 35 views
2

好吧,所以我以root身份安装了rvm和一切。 然后我用rvm安装了Ruby Enterprise Edition。未找到乘客耙! Ubuntu(10.04)

到目前为止,我一直在使用耙子和rvm的问题,但我并不太确定原因。

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

但当我客运安装,nginx的模块

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. 

但佣金是在我的道路

[email protected]:/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) 

想法吗?这是阻碍我的客户项目= \

+0

serverfault.com将为您提供类似问题的更多答案。 – 2010-09-17 14:41:27

回答

1

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

2

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

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

短版 - 它会在你的红宝石二进制安装(而不是在你的$ PATH)相同的目录耙子。快速而肮脏的修复方法是在ray到ruby bin目录中放置符号链接。

例如,

红宝石二进制= /usr/local/bin/ruby

耙二进制= /usr/local/lib/ruby/gems/1.8/bin/rake

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

这似乎这样的伎俩在我的情况。