on 06-01-2007 12:14 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.