cancel
Showing results for 
Search instead for 
Did you mean: 

Installation of SAPRFC-0.36 for Ruby fails

Former Member
0 Kudos

Hi,

I want to try RFC connections from Ruby. After Download of InstantRails (1.7) and SAPRFC-0.36 packages the command

ruby setup.rb from within the SAPRFC-0.36 directoty fails with the error

Modified CFLAGS: -MD -Zi -O2b2xg- -G6 -Wall

Modified CPPFLAGS:

Modified LDFLAGS:

Modified LIBPATH:

checking for saprfc.h... no

adding default rfcsdk location for headers ...

checking for saprfc.h... no

checking for sapitab.h... no

checking for main() in c.lib... no

checking for main() in m.lib... yes

checking for main() in dl.lib... no

checking for main() in pthread.lib... no

checking for main() in stdc++.lib... no

checking for main() in rfccm.lib... no

searching for library rfc because we cant find rfcum ...

checking for main() in rfc.lib... no

last try - trying to find rfc32 for windows ...

checking for main() in librfc32.lib... no

In the path variable the path to rfcsdk was included, the error remains.

I tried again with (checked it with and without "" even used both \ / etc)

D:\rubyy\saprfc-0.36>ruby setup.rb config --with-rfcsdk-dir="C:\Progra~1\Sapgui

20\sapgui\rfcsdk"

The error is the same.

What am I missing ?

I would appreciate any help on this topic

Regards

Marcus

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

According to your output, it has not been able to find your RFCSDK, so it will not compile properly. saprfc will be obsolete soon, as I have written a replacement - sapnwrfc - that is based on the new NW SAP RFC SDK from SAP. Why not try this instead - you can find it at http://raa.ruby-lang.org/project/sapnwrfc.

Cheers.

Answers (2)

Answers (2)

marcus_schiffer
Active Participant
0 Kudos

Most interessting: The log file says

have_header: checking for saprfc.h... -


no

"cl -nologo -E -I. -ID:/rubyy/InstantRails/ruby/lib/ruby/1.8/i386-mswin32 -ID:/rubyy/saprfc-0.36/ext/saprfc -MD -Zi -O2b2xg- -G6 -Wall conftest.c -P"

checked program was:

/* begin */

1: #include <saprfc.h>

/* end */

-


for all of the files. Nevertheless: It works

Strange , huh ?

marcus_schiffer
Active Participant
0 Kudos

Hi,

unfortunately the new version does not compile either.

Somehow I finally managed the installation of RFC with a gem install command and in Ruby I can use RFC commands.

Marcus

Former Member
0 Kudos

What did your mkmf.log file say?

Cheers.