2014-02-06 61 views
0

使用Rails(2.3.18)和Ruby 1.8.7錯誤,同時啓動的WEBrick

引導的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. 

嘗試「創業板安裝RB-的readline '但仍然存在問題。

+1

也許你只是按照錯誤信息的指示? 「請安裝rb-readline或重新編譯ruby --with-readline。」 – Robin

+0

由於它看起來像你正在使用RVM,請查看[這個答案](http://stackoverflow.com/a/8799283/877472),或者它上面的那個。 –

回答

0

我想你還需要把這個gem添加到Gemfile中。然後運行bundle install

如果你沒有的Gemfile,那麼你就需要運行rake gems:installrelevant guide

+0

謝謝...它的工作原理。但爲什麼這個寶石只需要在我的機器上安裝? – user3067558

+0

看起來像你正在使用rvm。所以,也許你忘了運行'''rvm requirements'''或者安裝一些依賴項,如rvm的自述文件所述......無論如何,我建議不要打擾很多,然後繼續... –

0

描述我認爲你需要安裝第一遺漏寶石到您的系統。

對於您必須運行在命令行的代碼「創業板安裝GEME NAME」

之後仍然是錯誤出現,那麼你必須補充的是創業板的conf/environment.rb中存在,因爲那裏的寶石列表應用程序有rails 2.3.18。