我正在尝试使用 savon Gem,以便与 webServices 交互。所以我安装了它,似乎安装没问题:
gem list savon
*** LOCAL GEMS ***
savon (1.2.0)
我可以使用简单的命令对其进行测试:
ruby -rubygems -e 'require "savon"'
(感谢这个提示http://wiki.mccune.org.uk/index.php/Backtrack我没有更多错误)
当我想使用需要 savon 的 .rb 脚本时会出现此问题:
jruby -S buby -i -B /pentest/web/burpsuite/burpsuite_v1.4.01.jar -r /home/fred/soapAtk2.rb
/usr/lib/jruby//lib/ruby/site_ruby/shared/builtin/javasupport/core_ext/object.rb:75 warning: already initialized constant StartBurp
Your JRE appears to be OpenJDK.
Burp has not been fully tested on this platform and you may experience problems.
Loading: "/home/fred/soapAtk2.rb"
/usr/lib/jruby//lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in **`require': no such file to load -- savon** (LoadError)
from /usr/lib/jruby//lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /home/fred/soapAtk2.rb:3
from /home/fred/soapAtk2.rb:31:in `require'
from /usr/lib/jruby//lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/jruby/lib/ruby/gems/1.8/gems/buby-1.3.1-java/bin/buby:63
from /usr/lib/jruby/lib/ruby/gems/1.8/gems/buby-1.3.1-java/bin/buby:63:in `each'
from /usr/lib/jruby/lib/ruby/gems/1.8/gems/buby-1.3.1-java/bin/buby:63
from /usr/lib/jruby/lib/ruby/gems/1.8/gems/buby-1.3.1-java/bin/buby:19:in `load'
from /usr/lib/jruby/bin/buby:19
似乎存在环境问题,但我不知道如何解决它:-/
ruby -r rubygems -e "p Gem.path"
["/root/.gem/ruby/1.9.2", "/usr/lib/ruby/gems/1.9.2"]
# gem content savon
/var/lib/gems/1.9.2/gems/savon-1.2.0/.gitignore
/var/lib/gems/1.9.2/gems/savon-1.2.0/.rspe
...
...
其他信息
# ruby -v
ruby 1.9.2dev (2010-07-02) [x86_64-linux]
# gem -v
1.3.7
有没有人遇到同样的问题(我运行 backtrack5 last release)
谢谢'