无法使用Ruby on Rails启动Webrick服务器

时间:2014-11-12 17:55:34

标签: ruby-on-rails webrick

当我在命令行输入“rails server”时,出现以下错误 -

C:/Ruby21/lib/ruby/gems/2.1.0/gems/sqlite3-1.3.9-x86-mingw32/lib/sqlite3.rb:6:in
 `require': cannot load such file -- sqlite3/sqlite3_native (LoadError)
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/sqlite3-1.3.9-x86-mingw32/lib/sq
lite3.rb:6:in `rescue in <top (required)>'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/sqlite3-1.3.9-x86-mingw32/lib/sq
lite3.rb:2:in `<top (required)>'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.6/lib/bundler/runtim
e.rb:76:in `require'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.6/lib/bundler/runtim
e.rb:76:in `block (2 levels) in require'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.6/lib/bundler/runtim
e.rb:72:in `each'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.6/lib/bundler/runtim
e.rb:72:in `block in require'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.6/lib/bundler/runtim
e.rb:61:in `each'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.6/lib/bundler/runtim
e.rb:61:in `require'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.7.6/lib/bundler.rb:133
:in `require'
        from C:/Users/Deepzster/Desktop/csa/config/application.rb:7:in `<top (requ
ired)>'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.1.5/lib/rails/command
s/commands_tasks.rb:79:in `require'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.1.5/lib/rails/command
s/commands_tasks.rb:79:in `block in server'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.1.5/lib/rails/command
s/commands_tasks.rb:76:in `tap'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.1.5/lib/rails/command
s/commands_tasks.rb:76:in `server'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.1.5/lib/rails/command
s/commands_tasks.rb:40:in `run_command!'
        from C:/Ruby21/lib/ruby/gems/2.1.0/gems/railties-4.1.5/lib/rails/command
s.rb:17:in `<top (required)>'
        from bin/rails:4:in `require'
        from bin/rails:4:in `<main>'

我已经尝试过重新安装和卸载Rails,我在某处读到这应该是一个64位的问题,但是,即使我安装了32位版本,也没有让它工作。有什么方法可以解决这个问题吗?

1 个答案:

答案 0 :(得分:2)

似乎与此问题类似

cannot load such file -- sqlite3/sqlite3_native (LoadError) on ruby on rails

或许可以尝试那里的建议,看看是否有帮助?