ruby-on-railsrubyrakerakefile

Missing RedCloth gem but `rake gems:install` does nothing


I tried starting my Rails application but got this error message from Passenger:

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. 

I installed a Rakefile in my app and tried running rake gems:install but nothing happens and no error message is printed.

How can I resolve this problem?


Solution

  • If it's rails-2.3.x, in your config/enfironment.rb

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