Skip to content

Instantly share code, notes, and snippets.

@lealhugui
Created March 9, 2018 12:38
Show Gist options
  • Save lealhugui/e298080eb6adbd035c652bd1c4d5c570 to your computer and use it in GitHub Desktop.
Save lealhugui/e298080eb6adbd035c652bd1c4d5c570 to your computer and use it in GitHub Desktop.
Oracle error with pr #851
oracledb: c:\my_proj\node_modules\oracledb\src\njsCommon.h(64): fatal error C1
error C:\my_proj\node_modules\oracledb: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: C:\my_proj\node_modules\oracledb
Output:
C:\my_proj\node_modules\oracledb>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info spawn C:\Users\201438\.windows-build-tools\python27\python.exe
gyp info spawn args [ 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'C:\\my_proj\\node_modules\\oracledb\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\201438\\.node-gyp\\8.9.3\\include\\node\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\201438\\.node-gyp\\8.9.3',
gyp info spawn args '-Dnode_gyp_dir=C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\Users\\201438\\.node-gyp\\8.9.3\\<(target_arch)\\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\\my_proj\\node_modules\\oracledb',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\my_proj\\node_modules\\oracledb\\build',
gyp info spawn args '-Goutput_dir=.' ]
Warning: Missing input files:
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiContext.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiStmt.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiSubscr.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiHandlePool.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiEnqOptions.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiError.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiDeqOptions.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiMsgProps.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiRowid.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiUtils.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiGen.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiLob.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiVar.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiData.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiOci.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiGlobal.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiPool.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiObjectType.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiEnv.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiObject.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiOracleType.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiDebug.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiConn.c
C:\my_proj\node_modules\oracledb\build\..\odpi\src\dpiObjectAttr.c
gyp info spawn C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
njsCommon.cpp
njsOracle.cpp
njsPool.cpp
njsConnection.cpp
c:\my_proj\node_modules\oracledb\src\njsCommon.h(64): fatal error C1083: Cannot open include file: 'dpi.h': No such file or directory (compiling source file ..\src\njsCommon.cpp) [C:\my_proj\node_modules\oracledb\build\oracledb.vcxproj]
c:\my_proj\node_modules\oracledb\src\njsCommon.h(64): fatal error C1083: Cannot open include file: 'dpi.h': No such file or directory (compiling source file ..\src\njsConnection.cpp) [C:\my_proj\node_modules\oracledb\build\oracledb.vcxproj]
c:\my_proj\node_modules\oracledb\src\njsCommon.h(64): fatal error C1083: Cannot open include file: 'dpi.h': No such file or directory (compiling source file ..\src\njsOracle.cpp) [C:\my_proj\node_modules\oracledb\build\oracledb.vcxproj]
c:\my_proj\node_modules\oracledb\src\njsCommon.h(64): fatal error C1083: Cannot open include file: 'dpi.h': No such file or directory (compiling source file ..\src\njsPool.cpp) [C:\my_proj\node_modules\oracledb\build\oracledb.vcxproj]
njsResultSet.cpp
njsMessages.cpp
njsIntLob.cpp
win_delay_load_hook.cc
c:\my_proj\node_modules\oracledb\src\njsCommon.h(64): fatal error C1083: Cannot open include file: 'dpi.h': No such file or directory (compiling source file ..\src\njsIntLob.cpp) [C:\my_proj\node_modules\oracledb\build\oracledb.vcxproj]
c:\my_proj\node_modules\oracledb\src\njsCommon.h(64): fatal error C1083: Cannot open include file: 'dpi.h': No such file or directory (compiling source file ..\src\njsResultSet.cpp) [C:\my_proj\node_modules\oracledb\build\oracledb.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\my_proj\node_modules\oracledb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment