0

我已经安装了 gem capistrano,现在我正在尝试从测试分支进行cap deploy,但是它给出了一些错误并且 cap deploy 失败了。

这是错误堆栈跟踪:

LoadError: no such file to load -- jruby_pageant require at org/jruby/RubyKernel.java:1027 require at c:/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:36 (root) at c:/jruby-1.7.2/lib/ruby/gems/shared/gems/net-ssh-2.6.7/lib/net/ssh/ authentication/agent/java_pageant.rb:1 require at org/jruby/RubyKernel.java:1027 require at c:/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:36 (root) at c:/jruby-1.7.2/lib/ruby/gems/shared/gems/net-ssh-2.6.7/lib/net/ssh/ authentication/agent.rb:1 require at org/jruby/RubyKernel.java:1027 require at c:/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:36 (root) at c:/jruby-1.7.2/lib/ruby/gems/shared/gems/net-ssh-2.6.7/lib/net/ssh/ authentication/agent.rb:20 require at org/jruby/RubyKernel.java:1027 require at c:/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:36 (root) at c:/jruby-1.7.2/lib/ruby/gems/shared/gems/net-ssh-2.6.7/lib/net/ssh/ authentication/key_manager.rb:1 require at org/jruby/RubyKernel.java:1027 require at c:/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:36 (root) at c:/jruby-1.7.2/lib/ruby/gems/shared/gems/net-ssh-2.6.7/lib/net/ssh/ authentication/key_manager.rb:4 require at org/jruby/RubyKernel.java:1027 (root) at c:/jruby-1.7.2/lib/ruby/gems/shared/gems/net-ssh-2.6.7/lib/net/ssh/ authentication/session.rb:1 (root) at c:/jruby-1.7.2/lib/ruby/gems/shared/gems/net-ssh-2.6.7/lib/net/ssh/ authentication/session.rb:4 require at org/jruby/RubyKernel.java:1027 (root) at c:/jruby-1.7.2/lib/ruby/gems/shared/gems/net-ssh-2.6.7/lib/net/ssh. rb:1 (root) at c:/jruby-1.7.2/lib/ruby/gems/shared/gems/net-ssh-2.6.7/lib/net/ssh. rb:11 require at org/jruby/RubyKernel.java:1027 (root) at c:/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:1 require at c:/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:36 require at org/jruby/RubyKernel.java:1027 (root) at c:/jruby-1.7.2/lib/ruby/gems/shared/gems/net-ssh-gateway-1.2.0/lib/ net/ssh/gateway.rb:2 (root) at c:/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:1 require at org/jruby/RubyKernel.java:1027 require at c:/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:36 (root) at c:/jruby-1.7.2/lib/ruby/gems/shared/gems/capistrano-2.15.4/lib/capi strano/configuration/connections.rb:2 require at org/jruby/RubyKernel.java:1027 (root) at c:/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:1 require at c:/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:36 load at org/jruby/RubyKernel.java:1046 (root) at c:\jruby-1.7.2\bin\cap:23

有人可以帮忙吗?提前致谢。

4

1 回答 1

2

使用 jruby -S 安装 capistrano,如果系统上有 ruby​​ 和 jruby,则在 PATH 中先制作 ruby

于 2013-07-18T10:06:13.287 回答