You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=- 3.2 [Node-oracledb Installation on Linux with Instant Client RPMs](#instrpm)
26
+
- 3.2 [Node-oracledb Installation on Linux with Instant Client RPMs](#instrpm)
27
27
- 3.3 [Node-oracledb Installation on Linux with Instant Client ZIP files](#instzip)
28
28
- 3.4 [Node-oracledb Installation on Linux with a Local Database or Full Client](#instoh)
29
29
- 3.5 [Node-oracledb Installation on macOS](#instosx)
@@ -32,13 +32,16 @@ limitations under the License.
32
32
- 3.8 [Node-oracledb Installation on AIX on Power Systems with Instant Client ZIP files](#instaix)
33
33
- 3.9 [Node-oracledb Installation on Oracle Solaris x86-64 (64-Bit) with Instant Client ZIP files](#instsolarisx8664)
34
34
- 3.10 [Node-oracledb Installation from Source Code](#github)
35
-
- 3.10.1 [Installing using GitHub branches and tags](#githubtags)
36
-
- 3.10.2 [Installing GitHub clones and zip files](#githubclone)
37
-
- 3.10.3 [Compiling node-oracledb without GitHub Access](#nogithubaccess)
35
+
- 3.10.1 [Environment for compiling from source code](#compileenv)
36
+
- 3.10.2 [Installing GitHub clones and ZIP files](#githubclone)
37
+
- 3.10.3 [Installing using GitHub branches and tags](#githubtags)
38
+
- 3.10.4 [Installing from a source package](#sourcepackage)
39
+
- 3.10.5 [Installing from Oracle's repository](#nogithubaccess)
40
+
- 3.10.6 [Creating a node-oracledb package from source code](#compilepackage)
38
41
- 3.11 [Node-oracledb Installation Without Internet Access](#offline)
39
42
- 3.11.1 [Copying node-oracledb Binaries on Windows](#winbins)
40
-
- 3.12 [Installing Node.js and Node-oracledb RPMs from yum.oracle.com](#instnoderpms)
41
-
- 3.13 [Building and Hosting your own node-oracledb Packages](#selfhost)
43
+
- 3.12 [Hosting your own node-oracledb Packages](#selfhost)
44
+
- 3.13 [Installing Node.js and node-oracledb RPMs from yum.oracle.com](#instnoderpms)
42
45
- 3.14 [Using node-oracledb in Docker](#docker)
43
46
4.[Installing Older Versions of Node-oracledb](#installingoldvers)
44
47
- 4.1 [Installing node-oracledb 2.x and 3.x](#installingv2)
@@ -84,7 +87,7 @@ guaranteed to be available or usable in your environment.
84
87
- If a binary is not available, you will need to compile node-oracledb
85
88
from source code:
86
89
87
-
- Install [Python 2.7][2]
90
+
- Install [Python 2.7][2] (Note: Node.js tools should work with Python 3).
88
91
89
92
- Install a C Compiler such as Xcode, GCC, Visual Studio
90
93
2017, or similar.
@@ -142,7 +145,7 @@ Linux that uses RPM packages. My database is on another machine | [Node-oracled
142
145
Linux that uses Debian packages. My database is on another machine | [Node-oracledb Installation on Linux with Instant Client ZIP files](#instzip)
143
146
Linux. My database is on the same machine as Node.js | [Node-oracledb Installation on Linux with a Local Database or Full Client](#instoh)
144
147
Linux. I have the full Oracle client (installed via `runInstaller`) on the same machine as Node.js | [Node-oracledb Installation on Linux with a Local Database or Full Client](#instoh)
145
-
Linux. I want to install Node.js and node-oracledb RPM packages | [Installing Node.js and Node-oracledb RPMs from yum.oracle.com](#instnoderpms)
148
+
Linux. I want to install Node.js and node-oracledb RPM packages | [Installing Node.js and node-oracledb RPMs from yum.oracle.com](#instnoderpms)
146
149
AIX on Power Systems | [Node-oracledb Installation on AIX on Power Systems with Instant Client ZIP files](#instaix)
147
150
Solaris x86-64 (64-Bit) | [Node-oracledb Installation on Oracle Solaris x86-64 (64-Bit) with Instant Client ZIP files](#instsolarisx8664)
148
151
Another OS with Oracle Database 19, 18, 12, or 11.2 client libraries available | Update binding.gyp and make any code changes required, sign the [OCA][8], and submit a pull request with your patch.
@@ -189,7 +192,7 @@ additional tools to build from source code:
189
192
190
193
Use Visual Studio on Windows, GCC on Linux or Xcode on macOS.
191
194
192
-
- Python 2.7.
195
+
- Python 2.7. (Note: recent Node.js tools should work with Python 3).
193
196
194
197
[Python 2.7][2] is needed by node-gyp, which is invoked by npm. Run
195
198
`python --version` to find the version you have.
@@ -204,7 +207,7 @@ additional tools to build from source code:
204
207
205
208
Follow these steps if your database is on a remote machine and your
206
209
Linux distribution uses RPM packages. Also see [Installing Node.js and
207
-
Node-oracledb RPMs from yum.oracle.com](#instnoderpms).
210
+
node-oracledb RPMs from yum.oracle.com](#instnoderpms).
208
211
209
212
Questions and issues can be posted as [GitHub Issues][10].
210
213
@@ -1184,10 +1187,14 @@ node example.js
1184
1187
1185
1188
### <aname="github"></a> 3.10 Node-oracledb Installation from Source Code
1186
1189
1187
-
Node-oracledb can be compiled from the source code on [GitHub][1].
1188
-
Some build tools are required.
1190
+
Node-oracledb can be compiled from the source code.
1189
1191
1190
-
Install [Python 2.7][2], which is required for the node-gyp utility:
1192
+
#### <aname="compileenv"></a> 3.10.1 Environment for compiling from source code
1193
+
1194
+
Some build tools are required to compile node-oracledb.
1195
+
1196
+
Install [Python 2.7][2], which is required for the node-gyp utility. (Note:
1197
+
recent Node.js tools should work with Python 3).
1191
1198
1192
1199
- If another version of Python occurs first in your binary path then
1193
1200
run `npm config set python /wherever/python-2.7/bin/python` or use
@@ -1217,73 +1224,73 @@ vcvars.bat if you building with 32-bit binaries) to set the
1217
1224
environment. Alternatively you can open the 'Developer Command Prompt
1218
1225
for Visual Studio' which has environment variables already configured.
1219
1226
1220
-
#### <aname="githubtags"></a> 3.10.1 Installing using GitHub branches and tags
1227
+
#### <aname="githubclone"></a> 3.10.2 Installing GitHub clones and ZIP files
1228
+
1229
+
If you clone the node-oracledb repository, or download a zip from [GitHub][1] to
1230
+
build node-oracledb from source code, then you need to make sure the [ODPI-C
1231
+
submodule][9] is also included. Otherwise the build will fail with an error
1232
+
like **'dpi.h' file not found**.
1233
+
1234
+
- If you download a node-oracledb ZIP file from GitHub, you must separately
1235
+
download the ODPI-C submodule code and extract it into a `odpi` subdirectory.
1236
+
1237
+
- When cloning the node-oracledb repository, include ODPI-C by doing:
0 commit comments