无法在Windows上启动jruby rails服务器,因为它无法找到ncursesw

时间:2010-12-30 21:55:57

标签: ruby-on-rails windows jruby

由于某些原因,我似乎无法让服务器启动,我不断收到这个神秘的错误。

C:\src\marvel\server\script>jruby rails server

c:/tools/jruby/lib/ruby/site_ruby/shared/ffi/library.rb:28:在`ffi_lib'中:可以吗?  (LoadError)ary'ncursesw':操作成功完成。 。无法打开库'ncursesw.dll':操作成功完成。 。无法打开库'ncurses':操作成功完成。 。无法打开库'ncurses.dll':操作成功完成。

    from c:/tools/jruby/lib/ruby/site_ruby/shared/ffi/library.rb:10:in `map'

    from c:/tools/jruby/lib/ruby/site_ruby/shared/ffi/library.rb:10:in `ffi_

LIB”         来自c:/tools/jruby/lib/ruby/gems/1.8/gems/ffi-ncurses-0.3.3/lib/ffi-ncu rses.rb:32         来自c:/tools/jruby/lib/ruby/gems/1.8/gems/ffi-ncurses-0.3.3/lib/ffi-ncu rses.rb:64:in require' from c:/tools/jruby/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/run time.rb:64:in require'         来自c:/tools/jruby/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/run time.rb:62:在each' from c:/tools/jruby/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/run time.rb:62:in要求'         来自c:/tools/jruby/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/run time.rb:51:in each' from c:/tools/jruby/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/run time.rb:51:in要求'         来自c:/tools/jruby/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler.rb: 112:在require' from C:/src/marvel/server/config/application.rb:9 from C:/src/marvel/server/config/application.rb:28:in要求'         来自c:/tools/jruby/lib/ruby/gems/1.8/gems/railties-3.0.3/lib/rails/comm ands.rb:28         来自c:/tools/jruby/lib/ruby/gems/1.8/gems/railties-3.0.3/lib/rails/comm ands.rb:27:in tap' from c:/tools/jruby/lib/ruby/gems/1.8/gems/railties-3.0.3/lib/rails/comm ands.rb:27 from c:/tools/jruby/lib/ruby/gems/1.8/gems/railties-3.0.3/lib/rails/comm ands.rb:6:in要求'         来自rails:6

1 个答案:

答案 0 :(得分:0)

我想通了,我在Windows上不需要ncurses,所以我只是从我的gemfile中注释掉它。似乎Jruby无法区分窗口和* nix,所以它会在没有特别小心的情况下爆炸。