SAP / node-rfc

Asynchronous, non-blocking SAP NW RFC SDK bindings for Node.js
Apache License 2.0
251 stars 73 forks source link

[SOLVED]The SAP NW RFC SDK could not be loaded, check the installation #119

Closed fredimartins closed 4 years ago

fredimartins commented 4 years ago

Hi,

I'm trying to use this lib on windows 10 and i'm receiving this error image This error Apparently only occurs in 1.0.2 and 1.0.3 versions

The system: Windows 10 Node 8.11.2 nwrfc750P_5-70002726

If i try with 1.0.0 and 1.0.1 version i receive this message it seems to work image

spencer-uk commented 4 years ago

Hello fredimartins,

Let's start with 1 & 2

1) Check the installation and if all files exists and are placed correctly. The error message is cropped on the first screenshot. I believe it reads as "Nao foi possivel encontrar o modulo especificado" that translates to: "The specified module could not be found."

It looks like the file sapnwrfc.node is missing in your installation? This file should match the node release is my understanding.

This file would be deployed with npm install if the node version you are using is supported.

More details on:

Please refer to the link: https://github.com/SAP/node-rfc/issues/78

2) It could be again a path issue again in this case have a look at my previous message and you can also run the commands below to double check if the libs are installed with the right version etc.

cd %SAPNWRFC_HOME%/bin rfcexec

Again, make sure the 1.0.2 1.0.3 binding version libs you are using matches your computer architecture 32 or 64 bits.

*Just to repeat myself I do not work for SAP, I am just trying to help people... :) "

Hope this helps, Felipe

On 20/01/2020, fredimartins notifications@github.com wrote:

Hi,

I'm trying to use this lib on windows 10 and i'm receiving this error image This error Apparently only occurs in 1.0.2 and 1.0.3 versions

The system: Windows 10 Node 8.11.2 nwrfc750P_5-70002726

If i try with 1.0.0 and 1.0.1 version i receive this message it seems to work image

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/SAP/node-rfc/issues/119

ghost commented 4 years ago

Hi,

this is loosely related to issue #115. Your problem is probably a bit different but I have posted several ways to get to the bottom of it that should be able to help you out.

Hint: The error message can be misleading. It might be you are not actually missing the correct sapnwrfc lib but rather the correct version of the Visual C++ runtime.

Hope it helps!

fredimartins commented 4 years ago

Hello fredimartins, Let's start with 1 & 2 1) Check the installation and if all files exists and are placed correctly. The error message is cropped on the first screenshot. I believe it reads as "Nao foi possivel encontrar o modulo especificado" that translates to: "The specified module could not be found." It looks like the file sapnwrfc.node is missing in your installation? This file should match the node release is my understanding. This file would be deployed with npm install if the node version you are using is supported. More details on: Please refer to the link: #78 2) It could be again a path issue again in this case have a look at my previous message and you can also run the commands below to double check if the libs are installed with the right version etc. cd %SAPNWRFC_HOME%/bin rfcexec Again, make sure the 1.0.2 1.0.3 binding version libs you are using matches your computer architecture 32 or 64 bits. *Just to repeat myself I do not work for SAP, I am just trying to help people... :) " Hope this helps, Felipe On 20/01/2020, fredimartins @.***> wrote: Hi, I'm trying to use this lib on windows 10 and i'm receiving this error image This error Apparently only occurs in 1.0.2 and 1.0.3 versions The system: Windows 10 Node 8.11.2 nwrfc750P_5-70002726 If i try with 1.0.0 and 1.0.1 version i receive this message it seems to work image -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: #119

For some reason my s-user only see nwrfc750P_5-70002726 was appear to be a linux version. I asked for my basis to download win10 x64 version and now i have this version. image NOT worked too... I have all versions of vcredist between 2005 and 2017. I try to install again 2015 and 2017 (all x64) AND, NOT worked again. I Try a vcredist with 2015, 2017 AND 2019 included in same installation AND, IT WORKS! I Dont know exacly what happened to it works, the only difference is 2019 vcredist, but after install this https://aka.ms/vs/16/release/vc_redist.x64.exe The module works with 1.0.3 image

"_from": "node-rfc@^1.0.3", "_id": "node-rfc@1.0.3",

Tks for the tip!

fredimartins commented 4 years ago

Ok, Now i have discovered the problem. I uninstall vcredist 2015-2019 and tried:

fredimartins commented 4 years ago

Yeah, its the case, sapnwrfc.node depends of VCRUNTIME140_1.dll, it appear to came with vcredist2019. image https://github.com/RPCS3/rpcs3/issues/6646 https://www.avsim.com/forums/topic/560359-vcruntime140_1dll-was-not-found/

fredimartins commented 4 years ago

solved.

bsrdjan commented 4 years ago

Current SAP NWRFC SDK requires Microsoft C Runtime DLLs version 12.0, which is a part of Microsoft Visual C++ Redistributable Packages for Visual Studio 2013.

The source of this information is SAP OSS Note 2573790 - Installation, Support and Availability of the SAP NetWeaver RFC Library 7.50.

The build toolchain can use also newer Microsoft Build Tools, like VS 2019. See #124.