Search code examples
ruby-on-railsrubyruby-on-rails-2

Error while starting WEBrick


Using rails(2.3.18) and ruby 1.8.7

Booting WEBrick

script/server

Facing issue

=> Booting WEBrick

=> Rails 2.3.18 application starting on localhost:3000

config.load_paths is deprecated and removed in Rails 3, please use autoload_paths instead
config.load_paths= is deprecated and removed in Rails 3, please use autoload_paths= instead
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /home/icicle/.rvm/gems/ruby-1.8.7-p374/gems/rails-2.3.18/lib/rails/gem_dependency.rb:21.
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /home/icicle/.rvm/gems/ruby-1.8.7-p374/gems/rails-2.3.18/lib/rails/gem_dependency.rb:104.
NOTE: Gem::SourceIndex#search is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#search called from /home/icicle/.rvm/gems/ruby-1.8.7-p374/gems/rails-2.3.18/lib/rails/vendor_gem_source_index.rb:119.
NOTE: Gem::SourceIndex#search is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#search called from /home/icicle/.rvm/gems/ruby-1.8.7-p374/gems/rails-2.3.18/lib/rails/vendor_gem_source_index.rb:119.

You're running a version of ruby with no Readline support

Please `gem install rb-readline` or recompile ruby --with-readline.

Tried 'gem install rb-readline' but still issue is there.


Solution

  • I guess you'll need to add this gem to a Gemfile as well. Then run bundle install

    If you do not have Gemfile, then you'll need to run rake gems:install like described in relevant guide