我安装了warbler gem来将rails应用程序打包为Java web应用程序.war文件。
但在类型命令后出现错误:
warble config
以下是错误消息:
/home/run/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/specification.rb:2158:in `method_missing': undefined method `this' for #<Gem::Specification:0x117d47c warbler-2.0.3> (NoMethodError)
from /home/run/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/specification.rb:1057:in `find_active_stub_by_path'
from /home/run/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:64:in `require'
from /home/run/.rvm/gems/ruby-2.3.0/gems/warbler-2.0.3/bin/warble:10:in `<top (required)>'
from /home/run/.rvm/gems/ruby-2.3.0/bin/warble:23:in `load'
from /home/run/.rvm/gems/ruby-2.3.0/bin/warble:23:in `<main>'
from /home/run/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
from /home/run/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
汤姆勋爵。更新gem后,&#34; warble config&#34;没关系。 但是当我输入时:
warble
我收到了另一个错误:
[run@localhost redmine-3.3]$ gem update --system
Latest version currently installed. Aborting.
[run@localhost redmine-3.3]$ warble
/home/run/.rvm/gems/ruby-2.3.0/gems/htmlentities-4.3.1/lib/htmlentities/mappings/expanded.rb:465: warning: key "inodot" is duplicated and overwritten on line 466
application directory `lang' does not exist or is not a directory; skipping
warble aborted!
/home/run/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/errors.rb:41:in `build_message': undefined method `size' for #<Bundler::SpecSet:0x0000000240beb8> (NoMethodError)
from /home/run/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/errors.rb:34:in `message'
from /home/run/.rvm/gems/ruby-2.3.0/gems/rake-11.3.0/lib/rake/application.rb:224:in `display_exception_message_details'
from /home/run/.rvm/gems/ruby-2.3.0/gems/rake-11.3.0/lib/rake/application.rb:211:in `display_exception_details'
from /home/run/.rvm/gems/ruby-2.3.0/gems/rake-11.3.0/lib/rake/application.rb:200:in `display_error_message'
from /home/run/.rvm/gems/ruby-2.3.0/gems/rake-11.3.0/lib/rake/application.rb:187:in `rescue in standard_exception_handling'
from /home/run/.rvm/gems/ruby-2.3.0/gems/rake-11.3.0/lib/rake/application.rb:178:in `standard_exception_handling'
from /home/run/.rvm/gems/ruby-2.3.0/gems/rake-11.3.0/lib/rake/application.rb:77:in `run'
from /home/run/.rvm/gems/ruby-2.3.0/gems/warbler-2.0.3/lib/warbler/application.rb:79:in `run'
from /home/run/.rvm/gems/ruby-2.3.0/gems/warbler-2.0.3/lib/warbler/application.rb:74:in `run'
from /home/run/.rvm/gems/ruby-2.3.0/gems/warbler-2.0.3/bin/warble:11:in `<top (required)>'
from /home/run/.rvm/gems/ruby-2.3.0/bin/warble:23:in `load'
from /home/run/.rvm/gems/ruby-2.3.0/bin/warble:23:in `<main>'
from /home/run/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
from /home/run/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'