2010-09-10 53 views
0

我試着開始我的Rails應用程序,但得到了客運此錯誤信息:我在我的應用程序安裝的Rakefile缺少RedCloth寶石,但`耙寶石:install`什麼也不做

Ruby on Rails application could not be started 

The application has exited during startup (i.e. during the evaluation of 
config/environment.rb) 

/home/chuck/chuck.com/vendor/rails/railties/lib/rails/gem_dependency.rb:119: 

Warning: Gem::Dependency#version_requirements is deprecated and will be removed 
on or after August 2010. Use #requirement 

Missing these required gems: 
RedCloth 

You're running: ruby 1.8.7.72 at /usr/bin/ruby1.8 rubygems 1.3.6 at 
/home/chuck/.gem/ruby/1.8, /usr/lib/ruby/gems/1.8 

Run `rake gems:install` 
to install the missing gems. 

,並試圖運行rake gems:install但沒有任何反應和沒有印刷錯誤消息。

我該如何解決這個問題?

回答

3

如果它的軌道-2.3.x版本,在你的config/enfironment.rb

config.gem 'RedCloth', :lib => 'redcloth' 
3

我發現寶石:安裝是因爲把他們environments.rb文件的人的事情參差不齊。如果這個程序沒有使用捆綁,你應該gem install RedCloth,然後再試一次。

0

我也收到錯誤有時,當我使用的軌道。我可能不知道它是與超級用戶命令

像sudo的創業板安裝

怎麼把我也耙寶石:安裝什麼都不做,我必須手動安裝創業板須藤(我說的是Linux的這裏盒)

感謝和問候

sameera