Skip to content

Commit 3ca2c76

Browse files
committed
Support OCI_LIB_DIR and OCI_INC_DIR on Windows
1 parent 2c29cbd commit 3ca2c76

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

INSTALL.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,13 @@ set OCI_INC_DIR=C:\instantclient_12_1\sdk\include
510510
set OCI_LIB_DIR=C:\instantclient_12_1\sdk\lib\msvc
511511
```
512512

513+
If you are installing with a local database, try:
514+
515+
```
516+
OCI_INC_DIR=C:\oracle\product\12.1.0\dbhome_1\oci\include
517+
OCI_LIB_DIR=C:\oracle\product\12.1.0\dbhome_1\oci\lib\msvc
518+
```
519+
513520
Run the installer:
514521

515522
```

binding.gyp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
],
6868
["OS=='win'", {
6969
"variables" : {
70-
"oci_inc_dir%" : "C:/instantclient/sdk/include",
71-
"oci_lib_dir%" : "C:/instantclient/sdk/lib/msvc",
70+
"oci_lib_dir%": "<!(IF DEFINED OCI_LIB_DIR (echo %OCI_LIB_DIR%) ELSE (echo C:\oracle\instantclient\sdk\lib\msvc))",
71+
"oci_inc_dir%": "<!(IF DEFINED OCI_INC_DIR (echo %OCI_INC_DIR%) ELSE (echo C:\oracle\instantclient\sdk\include))",
7272
},
7373
"configurations" : {
7474
"Release" : {

0 commit comments

Comments
 (0)