###前提・実現したいこと
npmにてoracledbがインストールできない。
1.Install NodeJS version 6.10.0 x64.
2.Reboot.
3.Add folder C:\Test,
4.Opened CMD prompt (run as Administrator)
5.cd c:\test
6.npm install --global npm
7.npm install --global --production windows-build-tools
8.npm install instantclient
9.on Environment Variables add Path c:\test\instantclient;
set OCI_LIB_DIR=c:\test\instantclient\sdk\lib\msvc
set OCI_INC_DIR=c:\test\instantclient\sdk\include
10.reboot.
11.npm install oracledb
上記を実行しています。
###発生している問題・エラーメッセージ
$ npm install oracledb
npm WARN lifecycle The node binary used for scripts is C:\Program Files\Nodist\bin\node.exe but npm is using C:\Program Files\Nodist\v\6.10.0\node.exe itself. Use the --scripts-prepend-node-path
option to include the path for the node binary npm was executed with.
oracledb@1.13.0 install C:\node\node_modules\oracledb
node-gyp rebuild
C:\node\node_modules\oracledb>if not defined npm_config_node_gyp (node "C:\Program Files\Nodist\bin\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
このソリューション内のプロジェクトを 1 度に 1 つずつビルドします。並行ビルドを有効にするには、"/m" スイッチを追加してください。
njsOracle.cpp
njsPool.cpp
njsConnection.cpp
njsResultSet.cpp
C:\node\node_modules\oracledb\src\dpi\include\dpiLob.h(34): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\njs\src\njsConnection.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
C:\node\node_modules\oracledb\src\dpi\include\dpiLob.h(34): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\njs\src\njsResultSet.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
njsMessages.cpp
njsIntLob.cpp
C:\node\node_modules\oracledb\src\dpi\include\dpiLob.h(34): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\njs\src\njsIntLob.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
dpiEnv.cpp
C:\node\node_modules\oracledb\src\dpi\src\dpiEnvImpl.h(30): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\dpi\src\dpiEnv.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
dpiEnvImpl.cpp
C:\node\node_modules\oracledb\src\dpi\src\dpiEnvImpl.h(30): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\dpi\src\dpiEnvImpl.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
dpiException.cpp
dpiExceptionImpl.cpp
dpiConnImpl.cpp
C:\node\node_modules\oracledb\src\dpi\src\dpiConnImpl.h(30): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\dpi\src\dpiConnImpl.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
dpiDateTimeArrayImpl.cpp
C:\node\node_modules\oracledb\src\dpi\src\dpiUtils.h(30): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\dpi\src\dpiDateTimeArrayImpl.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
dpiPoolImpl.cpp
C:\node\node_modules\oracledb\src\dpi\src\dpiEnvImpl.h(30): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\dpi\src\dpiPoolImpl.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
dpiStmtImpl.cpp
C:\node\node_modules\oracledb\src\dpi\include\dpiStmt.h(30): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\dpi\src\dpiStmtImpl.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
dpiUtils.cpp
C:\node\node_modules\oracledb\src\dpi\src\dpiUtils.h(30): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\dpi\src\dpiUtils.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
dpiLob.cpp
C:\node\node_modules\oracledb\src\dpi\include\dpiLob.h(34): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\dpi\src\dpiLob.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
dpiCommon.cpp
..\src\dpi\src\dpiCommon.cpp(28): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
win_delay_load_hook.cc
C:\node\node_modules\oracledb\src\dpi\include\dpiLob.h(34): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\njs\src\njsPool.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
C:\node\node_modules\oracledb\src\dpi\include\dpiLob.h(34): fatal error C1083: Cannot open include file: 'oci.h': No such file or directory (compiling source file ..\src\njs\src\njsOracle.cpp) [C:\node\node_modules\oracledb\build\oracledb.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files\MSBuild\14.0\bin\msbuild.exe
failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\Nodist\bin\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files\Nodist\v\6.10.0\node.exe" "C:\Program Files\Nodist\bin\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\node\node_modules\oracledb
gyp ERR! node -v v6.10.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
npm WARN node@1.0.0 No description
npm WARN node@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! oracledb@1.13.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the oracledb@1.13.0 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the oracledb package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs oracledb
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls oracledb
npm ERR! There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\u12790\AppData\Roaming\npm-cache_logs\2017-03-27T08_37_26_559Z-debug.log
###該当のソースコード
ここにご自身が実行したソースコードを書いてください
###試したこと
課題に対してアプローチしたことを記載してください
###補足情報(言語/FW/ツール等のバージョンなど)
より詳細な情報
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。