Closed nygma2004 closed 4 years ago
Could you please post the output of
$ node -v
$ npm -v
also the full error log, starting with npm install node-rfc
node-rfc-log.txt node-rfc-commandline.txt
Attached the npm log file and the dump from the command line.
node v10.19.0 npm v6.13.4
The node-rfc npm package contains platform dependent binary lib, whose pre-compiled versions are provided for Windows, macOS and Ubuntu Linux. When another target platform detected, the npm installer try to build the binary from source, during install on that platform. That happens in your case and fails because GCC compiler (and possibly more build tools) are missing.
commandline log
ERR! OMG C++ Compiler toolset is not available. Install proper compiler toolset with your package manager, eg. 'sudo apt-get install g++'.
I would recommend to clone the node-rfc repository on your Linux system, install prerequisites and build the package from source, following the documentation. Then install that locally build package. Build from source is recommended for Linux systems anyway.
Could you please try with the latest 1.1.0
version, with deployment dependencies fixed.
I have consulted with a few colleagues and we also run into issues installing the node-red-contrib- saprfc module as well. The snap environment proved too difficult for us to understand how it can be done. Now I have migrated over to a Windows machine. On that I was able to npm install just yesterday without any issues. So this must have been a specific issue with Suse and snap environment. I have not been able to make a connection yet, but I am checking my system settings and user authorisation to role those out first. I think we can close this issue for now.
Sounds good. I just installed and started RED, as a npm module on macOS and also tried node-red-contrib-saprfc
, ending with errors. Perhaps to ask the author, posting the issue there?
Please consider that npm install node-rfc
works also without SAP NWRFC SDK installed but the SDK is required for node-rfc runtime and must be acquired/installed separately.
I just managed to put a simple flow together and I am getting a "NOT_AUTHORIZED" error. So hopefully I just need to sort out the user access and all the other components/modules are properly installed and working. I am so happy!
Do you happen to know what authorization objects are required for a user to use SAP RFC? Is this documented anywhere? I assume same access as in the GUI for SE37 and execute the test tool, and SE16 to access tables. Anything else that I missed?
The user must be authorised also for RFC calls: https://help.sap.com/doc/saphelp_nwpi711/7.1.1/en-US/48/8d1bd1ae444e6ee10000000a421937/frameset.htm
Please re-open if still active.
Dear SAP,
I am trying to install node-rfc on as I would like to communicate with SAP under node-red. I have install Node-Red using snap, and was installing node-rfc like this:
I am seeing the following in the log file:
I am sorry, my Linux skills are rather limited. The version I am using is:
Would you be able to give some advice what I am doing wrong? Cheers, Csongor