Ruby on rails 启动WEBrick时出错

Ruby on rails 启动WEBrick时出错,ruby-on-rails,ruby,ruby-on-rails-2,Ruby On Rails,Ruby,Ruby On Rails 2,使用rails(2.3.18)和ruby 1.8.7 引导WEBrick 脚本/服务器 面临的问题 => 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 depr

使用rails(2.3.18)和ruby 1.8.7

引导WEBrick


脚本/服务器

面临的问题

=> 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.

尝试了“gem install rb readline”,但仍然存在问题。

我想您也需要将此gem添加到gem文件中。然后运行
bundle安装


如果您没有Gemfile,那么您需要运行
rake gems:install
,如中所述我认为您需要首先将丢失的gem安装到您的系统中

为此,您必须运行命令行“gem install GEME NAME”中的代码


在这之后,仍然会出现错误,然后您必须在conf/environment.rb中添加gem,其中存在gem列表,因为应用程序有rails 2.3.18。

也许您只是按照错误消息的说明操作?“请安装rb readline或使用readline重新编译ruby。”因为它看起来像是在使用RVM,请检查一下,或者上面的版本。谢谢。。。它起作用了。但是为什么这个gem只需要在我的机器上安装呢?看起来你在使用rvm。因此,您可能忘记运行
rvm需求
或安装rvm自述文件中所述的一些依赖项。。。不管怎样,我建议不要为这件事操心太多,继续吧。。。