Ruby on Rails - 输入rails_s之后

时间:2017-09-20 14:49:47

标签: ruby-on-rails ruby ruby-on-rails-4 ruby-2.4

我正在学习Ruby on Rails,但仍然不熟悉该语言的某些部分。

我想在Firefox上显示一个rails项目但是只要我输入命令" rails s"我收到以下错误: Rails S Error 源代码是:

C:\ Sites \ _ week_1 _-_ 15 \ week_1 \ bookshop1a&gt; rails s C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-4.0.2/lib/act ive_support / values / time_zone.rb:282:警告:循环参数引用 - 现在 C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x86-mingw32/ lib / sqlite3.rb:6:require': cannot load such file -- sqlite3/sqlite3_native ( LoadError) from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10 -x86-mingw32/lib/sqlite3.rb:6:in救援&#39;         来自C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10 -x86-mingw32 / lib / sqlite3.rb:2:in <top (required)>' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.13.6 /lib/bundler/runtime.rb:91:in要求&#39;         来自C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.13.6 /lib/bundler/runtime.rb:91:in block (2 levels) in require' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.13.6 /lib/bundler/runtime.rb:86:in每个&#39;         来自C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.13.6 /lib/bundler/runtime.rb:86:in block in require' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.13.6 /lib/bundler/runtime.rb:75:in每个&#39;         来自C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.13.6 /lib/bundler/runtime.rb:75:in require' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.13.6 /lib/bundler.rb:106:in要求&#39;         来自C:/ Sites / weeks_1 _-_ 15 / week_1 / bookshop1a / config / application.rb:7:in <top (required)>' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.0.2 /lib/rails/commands.rb:74:in需要&#39;         来自C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.0.2 /lib/rails/commands.rb:74:in block in <top (required)>' from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.0.2 /lib/rails/commands.rb:71:in点击&#39;         来自C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.0.2 /lils/rails/commands.rb:71:in <top (required)>' from script/rails:6:in要求&#39;         来自script / rails:6:在`&#39;

非常感谢任何帮助!

谢谢!

1 个答案:

答案 0 :(得分:0)

错误消息表明未安装或正确配置SQLite。 首先安装SQLite后尝试启动rails服务器。

也许本教程有助于启动和运行SQLite:

http://www.sqlitetutorial.net/download-install-sqlite/