cancel
Showing results for 
Search instead for 
Did you mean: 

ruby: No such file to load -- SAP/Rfc (LoadError)

Former Member
0 Kudos

I find this problem when I write ruby -r "SAP/RFC" -e 1 in windows cmd.

I have already intalled this file : saprfc-0.34-mswin32 and sap4rails-0.12

What should I do ?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

First of all you should be careful with upper and lower case - its SAP/Rfc not SAP/RFC, but this does not appear to be a problem at this stage.

You need to check that you have the RFC-SDK installed properly - saprfc needs rfc32.dll installed correctly before it can work.

If you think you have the RFC libraries properly installed - get the windows tool depends.exe and open up saprfc.so (came with the gem file), and see whether all the dpendencies are properly resolved.

regards,

Piers Harding.

Former Member
0 Kudos

The only dll I don't have is DRVADODB.DLL but I do not know where to download it. Should I have SAP/RFC as a folder in SAPGUI ? its name is saprfc. Could you explain to me a little bit more?

Thanks.

Former Member
0 Kudos

Sounds fairly fundamental - I would have thought that that is either core Windows, or part of MS Office.

A Win32 expert might be able to help you better.

Cheers.

former_member583013
Active Contributor
0 Kudos

Hi:

Actually, in my experience DRVADODB.DLL is not needed at all...Have you tried this in your script??? It worked for me -;)


require 'rubygems'
gem 'saprfc'
require "SAP/Rfc"

Greetings,

Blag.