-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't install on Windows #31
Comments
Where did you install Oracle Instant Client? |
Hi, I installed instant client: c:\oracle\instantclient Thanks for being so prompt-- I am excited to get this up and running |
And where did you unzip the SDK to - what's the actual path of your oci.h file? The error is about the SDK files. |
Hi, I deleted and reinstalled the Instant Client-- it resolved the errors for oci.h and oratypes.h (noting that path = c:/oracle/instantclient, which is default) New Errors: |
When are you getting the errors? When building or running? The current instructions aren't clear that you need to set PATH in the system settings. There is a comment in #7 (comment) with a link that might help. (Note you don't need to keep OCI_INC_DIR and OCI_LIB_DIR set after installation completes, so setting these in the cmd shell should be fine) |
Errors are on the build.
|
Just sounds like PATH is not set. Hard for me to tell offhand, since I don't personally use Windows. If you list one complete scenario that you tried, including the compiler version, how it was installed, where you got Instant Client from and how you extracted it, how & where you set any variables. Basically list all the things we'd see if we looked over your shoulder. |
I got this working successfully after much gnashing of teeth. My environment:
Here's my important notes:
'Debug': {
'defines': [ 'DEBUG', '_DEBUG' ],
'cflags': [ '-g', '-O0' ],
'conditions': [
['target_arch=="x64"', {
'msvs_configuration_platform': 'x64',
'msbuild_toolset': 'v120_xp' // added to target VS 2013 compiler
}],
], Without this change to
I hope this helps someone... |
Have you tried running vcvars64.bat from your VC/bin/ directory. This maps to the correct environment and so the above mentioned additional entries are not required. |
@x10ba I can resume that, you need install instanclient basi and sdk (this include oci.h and oratypes.h) |
Not able to install it either: Environment:
Environment variables:
Basic and SDK folder:
Error: c:\tools\node-oracledb>npm i -g
C:\tools\nodist\bin\node_modules\oracledb>if not defined npm_config_node_gyp (node "C:\tools\nodist\bin\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (rebuild) npm ERR! oracledb@0.4.1 install: npm ERR! Please include the following file with any support request: |
This is awesome news @Bigous! I tried even with the node 0.10 and I still got the same issue. Hopefully I'll be able to get around with this new pull request you guys are working on. @cjbj I ran the |
@rogah Check OCI_LIB_DIR and OCI_INC_DIR. You stated you had OCI_LIB_DIR = C:\oracle\instantclient The instructions https://github.com/oracle/node-oracledb/blob/master/INSTALL.md#instwin say: If you have Instant Client in a location that is not C:\oracle\instantclient, then tell the installer where to find the Oracle libraries and headers: set OCI_LIB_DIR=D:\instantclient_12_1\sdk\lib\msvc So try either unsetting the vars, or appending the appropriate subdirectories. (Maybe I should change the instructions and not mention the default location, forcing everyone to set the variables?) |
I just copy and paste by mistake the same value here. This is how my env variables are actually setup. OCI_LIB_DIR = C:\oracle\instantclient\sdk\lib\msvc I even have this other one as well: OCI_INCLUDE_DIR = C:\oracle\instantclient\sdk\include I'm going try to clenup my VS environment and redo it again. I have other versions of VC installed. |
I'm closing this issue. The original poster of this issue has been silent for a month. The thread is spreading. I've made some tweaks to the Windows install doc that may help some people. Everyone: Please open new threads for new issues |
Hi,
Here is my env:
OS: Windows 7 Enterprise
Node Version: v0.10.36
node-gyp Version: v1.0.1
I am pretty new to windows, but after using node, mongodb, rethinkdb, npm for several years, this is the first module that has given me problems-- I've already used up 10 hours in trying to get it to work :(
Here is the info, any suggestions helps.
I get these errors:
Failed at oracledb@0.3.1 install script
It fails on node-gyp rebuild
The text was updated successfully, but these errors were encountered: