Comments (6)
You can build with 64 bit client. We haven't tested 32bit but other people report it works.
To help people identify your issue, can you list what you have done and installed, and how you installed it, starting with letting us know which version of Windows you have! Thanks.
from node-oracledb.
I got this working successfully after much gnashing of teeth.
My environment:
- WIndows 7 x64
- Visual Studio 2013 compiler (vc12)
- NodeJS x64 v0.10.35
- Python 2.7
Here's my important notes:
- Follow instructions from
README.md
, take care of the following:- Make sure the NodeJS architecture (x86 vs x64) matches the architecture of the Oracle client installation
- Do NOT set the
PYTHON
environment variable (or if you do make sure it works) - if this env var is not pointing at a Python executable thennode-gyp
is going to fail with processspawn ENEONT
errors
- Use NodeJS v0.10.35 - haven't tested on another version
- Find
~./node-gyp/0.10.35/common.gypi
- for me this was in:%USERPROFILE%\.node-gyp\0.10.35
(this could be different depending on how you installed node, and if you chose a different node version)- Make the following changes below to add
msbuild_toolset
line to the belowDebug
section AND to theRelease
section.
- Make the following changes below to add
'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 common.gypi
it looks like node-gyp was only targeting the VS2010 compiler (I have both installed on my machine), and I got the following error:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets(64,5): error MSB8020: The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found. To build using the v100 build tools, please install Visual Studio 2010 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Upgrade Solution...". [C:\tools\node-oracledb\build\oracledb.vcxproj]
I hope this helps someone...
from node-oracledb.
Thanks for the detail. This piece of the jigsaw will help.
from node-oracledb.
My environment:
- Windows 7 x64
- Visual Studio Community 2013
- NodeJS v0.10.36 x64
- Python 2.7.9 x64
I made the modifications to add the msbuild_toolset as shown above (also modified the platform to be x64, since in my common.gypi it was showing x86 before.
I'll try going to the v0.10.35 version to see if that makes any difference.
from node-oracledb.
OK, it was a bit issue - I had installed x86 when I downgraded to v0.10.36 of Node.
I also had to get around a self-signed certificate error I was seeing as described at http://stackoverflow.com/questions/9626990/receiving-error-error-ssl-error-self-signed-cert-in-chain-while-using-npm
npm config set strict-ssl false
Got everything built without mucking with the common.gypi this time.
from node-oracledb.
Done!
node 10.35 x64.
Oracle client 12.1 x64.
activating the right compiler(amd64).
setting the variables:
set client_dir=C:\jason\generic_workspace\oracleclient\instantclient_12_1
set oci_lib_dir=%client_dir%\sdk\lib\msvc
set oci_inc_dir=%client_dir%\sdk\include
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\vcvars64.bat"
set path=%path%;%client_dir%
set lib=%lib%;%client_dir%;
set libpath=%lib%;%client_dir%;
and running installer:
mpn install oracledb.
And! removing the oracle_server_bin from path variable.
from node-oracledb.
Related Issues (20)
- NNE support for thin client HOT 6
- Add ability to pass in file content directly when connecting to Cloud Autonomous Databases with mTLS and 'thin' mode HOT 3
- When another Java-based service updates Oracle tables, the changes are not being detected by my subscription mechanism. HOT 1
- Error in host connection HOT 5
- Upgrading from 5.5.0 to latest 6 version HOT 12
- Testing with mocha times out on failed assert HOT 9
- Next.js 14 Thin mode: Critical dependency HOT 4
- Unable to run on Thick mode when using Bun runtime HOT 3
- Unable to get custom Package Type Object class using getDbObjectClass() HOT 3
- Is there any way to verify oracle SQL database connection is still alive or not? HOT 9
- Node version 20 upgrade is failing with node-oracledb v6.5.1 HOT 6
- executeMany() offsets index of dbl returning variables on index HOT 6
- NJS-111: internal error: read a negative integer when expecting a positive integer at position 4475 of packet 80463 HOT 14
- Intermittent "ORA-12154: TNS:could not resolve the connect identifier specified" HOT 4
- When batchErrors=true and dmlRowCounts=true the dmlRowCounts property returns values of 0's in a executeMany of a MERGE statement after first error is hit HOT 1
- macOS (Darwin) arm64 binary variant? HOT 2
- `esbuild --bundle` no longer works with v6.6.0 as missing packages HOT 8
- node-oracledb 6.6 is now available! HOT 1
- segmentation fault while closing connection pool to db HOT 2
- Error: Module not found: Can't resolve '@azure/app-configuration' HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-oracledb.