2010-09-17 36 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/ 

這似乎這樣的伎倆在我的情況。