2011-03-28 71 views
1

我正在使用Passenger with Rails 3.0.5和Ruby 1.8.7。Rails 3.0.5:Bundler說它會使用Rack1.2.2,但乘客會拋出一個GemNotFound錯誤

它工作正常,直到我不記得一些變化。

我打了bundle install,它說它會使用Rack 1.2.2,但Bundler仍然返回GemNotFound Rack 1.2.2。

當我點擊find/-name "rack"時,它顯示Rack 1.2.2已安裝到所有的目錄,似乎它已安裝。

我明確要求我的Gemfile中的Gem Rack 1.2.2,這也沒有幫助。

通過bundle config path /dir/to/gems輸入gemdir並沒有幫助。

誰能給我正確的建議或解決這個問題?

感謝,

你的,

Joern。

回答

1

你的乘客使用另一個Ruby安裝。 manualy設置在NGINX_FOLDER/conf/nginx.conf

http { 
    passenger_ruby /path/to/you/ruby/folder; 
    ... 
} 

知道你的Ruby文件夾使用這個命令:

which ruby 

UPD

對於Apache(可以正式乘客Apache模塊文檔閱讀)http://www.modrails.com/documentation/Users%20guide%20Apache.html#_unloading_disabling_phusion_passenger_from_apache_without_uninstalling_it 。只需設置:

PassengerRuby /path/to/your/ruby/folder 
+0

我使用的Apache2客運 – 2011-03-28 21:24:48

+0

然後改變它在appache配置:) – fl00r 2011-03-28 21:40:20

+0

'PassengerRuby在/ usr/bin中/紅寶石...' – fl00r 2011-03-29 07:23:16

相關問題