Closed t-perry closed 4 years ago
Hi -
Could you try:
export NWRFCSDK_INCLUDE=/usr/local/sap/nwrfcsdk/include
export NWRFCSDK_LIBS=/usr/local/sap/nwrfcsdk/lib
Maybe there is a problem with the switch --with-nwrfcsdk-include
being ignored?
Cheers,
Piers.
Seems like you were correct. I took the approach of installing from within RStudio (a weird mirror error when I tried to do it through SSH).
Sys.setenv(NWRFCSDK_INCLUDE="/usr/local/sap/nwrfcsdk/include")
Sys.setenv(NWRFCSDK_LIBS="/usr/local/sap/nwrfcsdk/lib")
devtools::install_github('piersharding/RSAP', args=c("--configure-args='--with-nwrfcsdk-include=/usr/local/sap/nwrfcsdk/include --with-nwrfcsdk-lib=/usr/local/sap/nwrfcsdk/lib' --no-clean-on-error"))
Which gave me the successful output!
...
checking sapnwrfc.h usability... yes
checking sapnwrfc.h presence... yes
checking for sapnwrfc.h... yes
yes! we have libsapnwrfc
...
I can successfully pull data now!
I am coming across an issue where the package install is failing because sapnwrfc.h isn't being found, while trying to install on RHEL7
However, when I look at the path provided in the args ('--with-nwrfcsdk-include=/usr/local/sap/nwrfcsdk/include), I can see that the file is indeed there.
I have tried changing permissions on the directory ( and file ) with no luck. Would there be any other prerequisites that could be causing this?