0 Replies Latest reply: Aug 9, 2011 8:17 AM by Cato Yeung RSS

Ruby saprfc failed for me

Cato Yeung
Currently Being Moderated

Dear Experts,

 

I have tried to use saprfc to get data from SAP. However, when I just include the library like this:

require "SAP/Rfc"

it returns error like this:

C:\Documents and Settings\Cato_mis\My Documents\ruby_rfc>ruby test.rb
C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:926:in `report_activate_error':
RubyGem version error: saprfc(0.37 not >= 0) (Gem::LoadError)
        from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:244:in `activate_de
p'
        from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:236:in `activate'
        from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:213:in `rescue in t
ry_activate'
        from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems.rb:210:in `try_activat
e'
        from <internal:gem_prelude>:218:in `try_activate'
        from <internal:lib/rubygems/custom_require>:32:in `rescue in require'
        from <internal:lib/rubygems/custom_require>:29:in `require'
        from test.rb:1:in `<main>'

How can I solve this? Is saprfc does not support 1.9.2 version of Ruby?

Thanks.

 

Regards,

Cato

Actions