我正在学习Ruby on Rails,但仍然不熟悉该语言的某些部分。
我想在Firefox上显示一个rails项目但是只要我输入命令" rails s"我收到以下错误: Rails S Error 源代码是:
C:\ Sites \ _ week_1 _-_ 15 \ week_1 \ bookshop1a> 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
救援'
来自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;
非常感谢任何帮助!
谢谢!
答案 0 :(得分:0)
错误消息表明未安装或正确配置SQLite。 首先安装SQLite后尝试启动rails服务器。
也许本教程有助于启动和运行SQLite: