启动WEBrick时出错

时间:2014-02-06 14:23:36

标签: ruby-on-rails ruby ruby-on-rails-2

使用rails(2.3.18)和ruby 1.8.7

启动WEBrick

script/server

面临问题

=> 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',但仍有问题。

2 个答案:

答案 0 :(得分:0)

我猜你也需要将这个gem添加到Gemfile中。然后运行bundle install

如果您没有Gemfile,那么您需要像relevant guide中描述的那样运行rake gems:install

答案 1 :(得分:0)

我认为您需要先将缺少的宝石安装到您的系统中。

为此你必须在命令行'gem install GEME NAME'

中运行代码

之后仍然出现错误,那么你必须在conf / environment.rb中添加那个gem,因为应用程序有rails 2.3.18。

相关问题