on 07-20-2007 2:12 PM
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
-
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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]
Hi ,
I have tried with all combinations of slashes.
Unfortunately the error is the same.
Regards
Marcus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.