使用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.尝试‘创业板安装readline’,但仍然存在问题。
发布于 2014-02-06 14:46:01
我想您也需要将此宝石添加到Gemfile中。然后运行bundle install
如果您没有Gemfile,那么您需要像相关指南中描述的那样运行Gemfile
发布于 2014-02-06 15:02:38
我认为你需要先把丢失的宝石安装到你的系统中。
为此,您必须运行命令行中的代码“gem install GEME”。
在此之后,仍然会出现错误,那么您必须在conf/environment.rb . in中添加创业板,因为应用程序有rails 2.3.18。
https://stackoverflow.com/questions/21605523
复制相似问题