Forum Discussion

mwinter_57984's avatar
mwinter_57984
Icon for Nimbostratus rankNimbostratus
Jul 19, 2013

Ruby 2.0 support?

When loading the f5-icontrol gem with ruby 2.0 I receive a bunch of soap4r errors. Anyone else get this working successfully?

 

Using gem f5-icontrol (11.3.0.0)

 

2.0.0-p247 :001 > require 'f5-icontrol'

 

/Users/mark.winter/.rvm/gems/ruby-2.0.0-p247/gems/soap4r-1.5.8/lib/xsd/charset.rb:13: warning: variable $KCODE is no longer effective

 

RuntimeError: XML processor module not found.

 

from /Users/mark.winter/.rvm/gems/ruby-2.0.0-p247/gems/soap4r-1.5.8/lib/xsd/xmlparser.rb:74:in `'

 

from /Users/mark.winter/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'

 

from /Users/mark.winter/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'

 

from /Users/mark.winter/.rvm/gems/ruby-2.0.0-p247/gems/soap4r-1.5.8/lib/wsdl/parser.rb:12:in `'

 

from /Users/mark.winter/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'

 

from /Users/mark.winter/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'

 

from /Users/mark.winter/.rvm/gems/ruby-2.0.0-p247/gems/soap4r-1.5.8/lib/soap/wsdlDriver.rb:9:in `'

 

from /Users/mark.winter/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:116:in `require'

 

from /Users/mark.winter/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:116:in `rescue in require'

 

from /Users/mark.winter/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:122:in `require'

 

from /Users/mark.winter/.rvm/gems/ruby-2.0.0-p247/gems/f5-icontrol-11.3.0.0/lib/f5-icontrol.rb:2:in `'

 

from /Users/mark.winter/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:116:in `require'

 

from /Users/mark.winter/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:116:in `rescue in require'

 

from /Users/mark.winter/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:122:in `require'

 

from (irb):1

 

from /Users/mark.winter/.rvm/rubies/ruby-2.0.0-p247/bin/irb:16:in `'

 

 

Thanks,

 

Mark

 

 

  • You likely should stick with version 1.8 or 1.9. Since it looks like you have rvm installed, this should be pretty straightforward. I use RHEL's standard, 1.8.7 without any problems. Otherwise, if you're willing to rewrite the module to support ruby 2... ;) I'm sure people would be appreciative.