npm install odbc error
When trying to install odbc, the compile is failing due to standards.h file not found in gcc:
gmake: Entering directory '/seneca/odbctest/node_modules/odbc/build'
CXX(target) Release/obj.target/odbc/src/odbc.o
In file included from /QOpenSys/pkgs/lib/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/include/stdint.h:9:0,
from /home/LUANN/.cache/node-gyp/12.13.0/include/node/js_native_api_types.h:8,
from /home/LUANN/.cache/node-gyp/12.13.0/include/node/js_native_api.h:7,
from /home/LUANN/.cache/node-gyp/12.13.0/include/node/node_api.h:10,
from /seneca/odbctest/node_modules/node-addon-api/napi.h:4,
from ../src/odbc.cpp:19:
/QOpenSys/pkgs/lib/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/include-fixed-7.1/stdint.h:39:23: fatal error: standards.h: No such file or directory
#include <standards.h>
^
compilation terminated.
Development tools group installed without errors.
Comments (8)
-
-
reporter No. I can ask the client to install it. Are there any other licensed program dependencies?
-
I don’t think so. You need the PASE header files, which are in that separate option. Everything else should come from yum.
-
You will also need the
unixODBC-devel
RPM installed if you don’t have it already (which you probably have already because it’s documented on the odbc npm page, but noting just in case). -
reporter Yes, we have everything documented on the odbc npm page. We’ll try the install again after opt 13 is loaded. Thank you Kevin and Jesse.
-
reporter After installing opt 13 we are getting farther but the compilation step is still failing, this time missing odbc.o.d.raw below? unixodbc and unixodbc-devel are installed (2.3.4-3), i access ODBC driver is installed, and ‘Development tools’ are installed. I haven’t looked on my test server to see where this file was found over there (no problems installing on the test server, this is my client’s prod server).
gmake: Entering directory '/seneca/odbctest/node_modules/odbc/build'
CXX(target) Release/obj.target/odbc/src/odbc.o
In file included from /home/LUANN/.cache/node-gyp/12.13.0/include/node/node_api.h:10:0,
from /seneca/odbctest/node_modules/node-addon-api/napi.h:4,
from ../src/odbc.cpp:19:
/home/LUANN/.cache/node-gyp/12.13.0/include/node/js_native_api.h:39:22: fatal error: opening dependency file ./Release/.deps/Release/obj.target/odbc/src/odbc.o.d.raw: No such file or directory
#define EXTERN_C_END } -
reporter This was an issue with coreutils-gnu-8.25-3. Yum clean metadata followed by yum downgrade coreutils-gnu-8.25-2 solved the problem. This issue is now closed.
-
reporter - changed status to resolved
Resolved with help from Mark Irish at IBM https://github.com/markdirish/node-odbc/issues/51
- Log in to comment
Do you have 5770SS1 Option 13 (System Openness Includes) installed?