Skip to content

Commit 64acabb

Browse files
committed
Update for the new "modular yum" Oracle Linux packages
1 parent 551e461 commit 64acabb

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

INSTALL.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,34 +1387,32 @@ Node.js and node-oracledb Linux RPM packages are available on
13871387
[Oracle Linux 6][50] and [Oracle Linux 7][51] channels. This means
13881388
installation is simple, and can be automated.
13891389

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:
13921391

13931392
```
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
14001395
```
14011396

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:
14031400

14041401
```
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
14071404
```
14081405

14091406
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:
14121408

14131409
```
14141410
export NODE_PATH=$(npm root -g)
14151411
node myapp.js
14161412
```
14171413

1414+
See [Node.js for Oracle Linux][46] for details.
1415+
14181416
### <a name="selfhost"></a> 3.13 Building and Hosting your own node-oracledb Packages
14191417

14201418
You can host node-oracledb packages locally.

0 commit comments

Comments
 (0)