@@ -1387,34 +1387,32 @@ Node.js and node-oracledb Linux RPM packages are available on
1387
1387
[ Oracle Linux 6] [ 50 ] and [ Oracle Linux 7] [ 51 ] channels. This means
1388
1388
installation is simple, and can be automated.
1389
1389
1390
- As an example, to install Node 10 on Oracle Linux 7, run these commands
1391
- as the root user:
1390
+ As an example, to install Node 10 on Oracle Linux 7, run these commands:
1392
1391
1393
1392
```
1394
- cd /etc/yum.repos.d
1395
- mv public-yum-ol7.repo public-yum-ol7.repo.bak
1396
- wget http://yum.oracle.com/public-yum-ol7.repo
1397
- yum install yum-utils
1398
- yum-config-manager --enable ol7_developer_nodejs10 ol7_oracle_instantclient
1399
- yum install nodejs node-oracledb-node10 oracle-instantclient18.3-basic
1393
+ sudo yum install -y oracle-nodejs-release-el7 oracle-release-el7
1394
+ sudo yum install nodejs node-oracledb-node10
1400
1395
```
1401
1396
1402
- As the root user, add Instant Client to the library search path:
1397
+ This will also install Oracle Instant Client, which needs to be
1398
+ configures. As the root user, add Instant Client to the library
1399
+ search path:
1403
1400
1404
1401
```
1405
- echo /usr/lib/oracle/18.3/client64/lib > /etc/ld.so.conf.d/oracle-instantclient.conf
1406
- ldconfig
1402
+ sudo sh -c " echo /usr/lib/oracle/18.3/client64/lib > /etc/ld.so.conf.d/oracle-instantclient.conf"
1403
+ sudo ldconfig
1407
1404
```
1408
1405
1409
1406
Since node-oracledb is installed globally, set ` NODE_PATH ` before
1410
- running applications. You can find the global module directory by
1411
- running ` npm root -g ` .
1407
+ running applications:
1412
1408
1413
1409
```
1414
1410
export NODE_PATH=$(npm root -g)
1415
1411
node myapp.js
1416
1412
```
1417
1413
1414
+ See [ Node.js for Oracle Linux] [ 46 ] for details.
1415
+
1418
1416
### <a name =" selfhost " ></a > 3.13 Building and Hosting your own node-oracledb Packages
1419
1417
1420
1418
You can host node-oracledb packages locally.
0 commit comments