views:

83

answers:

3

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?

+3  A: 

I have found that gems:install is spotty because of the things that people put in their environments.rb files. If this app isn't using bundler, you should gem install RedCloth and then try again.

Peter DeWeese
+1  A: 

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

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

Hi Chuck

I'm also getting errors sometimes when I'm using rails. I might wonder its something to do with super user command

like sudo gem install

Coz for me also rake gems:install does nothing and i have to manually install the gem as sudo (I'm talking about linux box here)

thanks and regards

sameera

sameera207