我正在学习 Ruby on Rails,但仍然不熟悉该语言的某些部分。
我正在尝试在 Firefox 上显示一个 rails 项目,但是一旦我输入命令“rails s”,就会出现以下错误: Rails S 错误 源代码是:
C:\Sites\weeks_1_-_15\week_1\bookshop1a>rails s C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-4.0.2/lib/active_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
require'中救援:/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
each' 来自 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
each' 来自 C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/ gems/bundler-1.13.6 /lib/bundler/runtime.rb:75:在require'
from C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/bundler-1.13.6
/lib/bundler.rb:106:in
需要'来自 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
需要'来自 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
tap' 来自 C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.0.2 /lib/rails/ commands.rb:71:in <top (required)>'
from script/rails:6:in
require' 来自 script/rails:6:in `'
任何帮助将非常感激!
谢谢!