我是ruby&的新手轨道。我刚创建了一个新的rails应用程序&尝试在应用程序根目录上运行以下命令:
bin/rails server
但我在控制台上遇到以下错误:
Yeasin@YEASIN-PC /g/wamp/www/railsBlog
$ bin/rails server
c:/Ruby22/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x86-mingw32/lib/sqlite3.rb:6:i
n `require': cannot load such file -- sqlite3/sqlite3_native (LoadError)
from c:/Ruby22/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x86-mingw32/lib/s
qlite3.rb:6:in `rescue in <top (required)>'
from c:/Ruby22/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x86-mingw32/lib/s
qlite3.rb:2:in `<top (required)>'
from c:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/runtim
e.rb:76:in `require'
from c:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/runtim
e.rb:76:in `block (2 levels) in require'
from c:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/runtim
e.rb:72:in `each'
from c:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/runtim
e.rb:72:in `block in require'
from c:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/runtim
e.rb:61:in `each'
from c:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/runtim
e.rb:61:in `require'
from c:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler.rb:134
:in `require'
from g:/wamp/www/railsBlog/config/application.rb:7:in `<top (required)>'
from c:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/command
s/commands_tasks.rb:78:in `require'
from c:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/command
s/commands_tasks.rb:78:in `block in server'
from c:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/command
s/commands_tasks.rb:75:in `tap'
from c:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/command
s/commands_tasks.rb:75:in `server'
from c:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/command
s/commands_tasks.rb:39:in `run_command!'
from c:/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/command
s.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
我也试过跟随命令,因为我在Windows上。
ruby bin\rails server
然后我得到了
c:\Ruby22\bin\ruby.exe: No such file or directory -- binrails (LoadError)