cancel
Showing results for 
Search instead for 
Did you mean: 

Installation of new NWRFCSDK does not work with sapnwrfc-0.19.

Former Member
0 Kudos

Hi,

I was trying to install the new nwrfcsdk and the corresponding ruby sapnwrfc-0.19.

The rfsdk is located in D:\downloadmanager\mwrfcsdk (jsut unpacked it after download from service.sap.com and copied the dll into services32)

Unfortunately this does not work. Do I miss something ?

Any help is appreciated !

Here the errors I get:

I get errors on installation of the sapnwrfc-0.19 like:

-


D:\rubyy\sapnwrfc-0.19>ruby setup.rb config --with-nwrfcsdk-dir=D:\downloadmanag

er\nwrfcsdk

---> lib

---> lib/sapnwrfc

<--- lib/sapnwrfc

<--- lib

---> ext

---> ext/nwsaprfc

D:/rubyy/InstantRails/ruby/bin/ruby.exe D:/rubyy/sapnwrfc-0.19/ext/nwsaprfc/extc

onf.rb --with-nwrfcsdk-dir=D:\downloadmanager\nwrfcsdk

Modified CFLAGS: -MD -Zi -O2b2xg- -G6 -DWIN32 -D_CONSOLE -DUNICODE -D_UNICODE -D

SAPwithUNICODE -DSAPonNT -DSAP_PLATFORM_MAKENAME=ntintel

Modified CFLAGS: -MD -Zi -O2b2xg- -G6 -DWIN32 -D_CONSOLE -DUNICODE -D_UNICODE -D

SAPwithUNICODE -DSAPonNT -DSAP_PLATFORM_MAKENAME=ntintel

Modified CPPFLAGS: -ID:\downloadmanager\nwrfcsdk/include

Modified LDFLAGS:

Modified LIBPATH: D:\downloadmanager\nwrfcsdk/lib

checking for sapnwrfc.h... no

adding default nwrfcsdk location for headers ...

checking for sapnwrfc.h... no

This will not work - ABORTING because cannot find sapnwrfc.h

setup.rb:658:in `command': system("D:
rubyy
InstantRails
ruby
bin
ruby.exe"

"D:/rubyy/sapnwrfc-0.19/ext/nwsaprfc/extconf.rb" "--with-nwrfcsdk-dir=D:
downl

oadmanager
nwrfcsdk") failed (RuntimeError)

from setup.rb:663:in `ruby'

from setup.rb:1279:in `extconf'

from setup.rb:1270:in `config_dir_ext'

from setup.rb:1573:in `__send__'

from setup.rb:1573:in `traverse'

from setup.rb:1590:in `dive_into'

from setup.rb:1571:in `traverse'

from setup.rb:1575:in `traverse'

... 9 levels...

from setup.rb:829:in `__send__'

from setup.rb:829:in `invoke'

from setup.rb:776:in `invoke'

from setup.rb:1619

-


Accepted Solutions (0)

Answers (3)

Answers (3)

marcus_schiffer
Active Participant
0 Kudos

Hi ,

here the output of the log file:

-


have_header: checking for sapnwrfc.h... -


no

"cl -nologo -E -I. -ID:/rubyy/InstantRails/ruby/lib/ruby/1.8/i386-mswin32 -ID:/rubyy/sapnwrfc-0.19/ext/nwsaprfc -ID:/downloadmanager/nwrfcsdk/include -MD -Zi -O2b2xg- -G6 -DWIN32 -D_CONSOLE -DUNICODE -D_UNICODE -DSAPwithUNICODE -DSAPonNT -DSAP_PLATFORM_MAKENAME=ntintel conftest.c -P"

checked program was:

/* begin */

1: #include <sapnwrfc.h>

/* end */

-


have_header: checking for sapnwrfc.h... -


no

"cl -nologo -E -I. -ID:/rubyy/InstantRails/ruby/lib/ruby/1.8/i386-mswin32 -ID:/rubyy/sapnwrfc-0.19/ext/nwsaprfc -ID:/downloadmanager/nwrfcsdk/include -MD -Zi -O2b2xg- -G6 -DWIN32 -D_CONSOLE -DUNICODE -D_UNICODE -DSAPwithUNICODE -DSAPonNT -DSAP_PLATFORM_MAKENAME=ntintel -I/usr/sap/nwrfcsdk/include conftest.c -P"

checked program was:

/* begin */

1: #include <sapnwrfc.h>

/* end */

-


Regards

Marcus

Former Member
0 Kudos

We fixed our problem. We didn't have the environment variables set correctly.

Edited by: Adrian Zehnder on Jul 29, 2009 9:57 AM

Former Member
0 Kudos

And we learned a lot on the way. The most important learnings:

- compiling c-extensions on windows is not easy

- rbconfig.rb contains compilation specific commands, i.e. if ruby was compiled with mingw, VisualStudio or whatever. The idea is that extensions are compiled with the same compiler.

- this link contains a good recipe of what you have to do:

[http://www.kleinfelter.com/build-ruby-guitest-win32|http://www.kleinfelter.com/build-ruby-guitest-win32]

Former Member
0 Kudos

Hi,

I meet exactly the same problem than you when i try to install SAPNWRFC on my windows xp workstation. If i understood well, looks like everything works fine now. Could you explain a little bit more what you've done please ?

Thanks in advance for your help,

Johnny Baillargeaux

Former Member
0 Kudos

Hi

sorry, I did not see your question till now...

And because it has been quite a while ago, I don't remember any more details than what is described in the link. Are you still interested ? I could email you the resulting gem that we're still using.

Best regards

Adrian

marcus_schiffer
Active Participant
0 Kudos

Hi ,

I have tried with all combinations of slashes.

Unfortunately the error is the same.

Regards

Marcus

Former Member
0 Kudos

Have you looked at the mkmf output - usually found in a file mkmf.log ?

Former Member
0 Kudos

Hi - in your output it says that it can't find nwrfcsdk include+lib - also there seems to a mixture of forward and back slashes in the path. Hae you tried it with using forward slashes to denote the path?

former_member184549
Participant
0 Kudos

On ubuntu linux 7.10:

If setup.rb seems to die with

"checking for sapnwrfc.h... no

adding default nwrfcsdk location for headers ...

checking for sapnwrfc.h... no

This will not work - ABORTING because cannot find sapnwrfc.h"

The problem is not that it cannot find sapnwrfc.h!

If you look in mkmf.log and see something like

"In file included from /usr/include/sapnwrfc.h:9,

from conftest.c:1:

/usr/include/sapuc.h:626:25: error: wchar.h: No such file or directory

/usr/include/sapuc.h:627:44: error: wctype.h: No such file or directory

/usr/include/sapuc.h:629:80: error: sys/types.h: No such file or directory

/usr/include/sapuc.h:630:24: error: dirent.h: No such file or directory"

Then you need to install the C standard headers:

sudo aptitude install libc6-dev

Hope this helps someone else...