1- # Installing node-oracledb
1+ # Installing node-oracledb Version 2
22
33* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.*
44
@@ -71,10 +71,11 @@ support C++11.** Note the default compiler on Oracle Linux 6 and RHEL 6
7171does not have the required support. Install [ GCC 4.7 or later] ( https://blogs.oracle.com/opal/getting-a-c11-compiler-for-node-4,-5-and-6-on-oracle-linux-6 )
7272or upgrade to Oracle Linux 7.
7373
74- Python 2.7 is needed by node-gyp. If another version of Python occurs
75- first in your binary path then, when you install node-oracledb, use
76- the ` --python ` option to indicate the correct version. For example:
77- ` npm install --python=/whereever/python-2.7/bin/python oracledb ` .
74+ Python 2.7 is needed by node-gyp, which is invoked by npm. If another
75+ version of Python occurs first in your binary path then, when you
76+ install node-oracledb, use the ` --python ` option to indicate the
77+ correct version. For example: `npm install
78+ --python=/whereever/python-2.7/bin/python oracledb`.
7879
7980### Which Instructions to Follow
8081
@@ -157,7 +158,7 @@ cd /opt
157158tar -Jxf node-v6.9.4-linux-x64.tar.xz
158159```
159160
160- Set PATH to include Node.js:
161+ Set ` PATH ` to include Node.js:
161162
162163```
163164export PATH=/opt/node-v6.9.4-linux-x64/bin:$PATH
@@ -268,7 +269,7 @@ cd /opt
268269tar -Jxf node-v6.9.4-linux-x64.tar.xz
269270```
270271
271- Set PATH to include Node.js:
272+ Set ` PATH ` to include Node.js:
272273
273274```
274275export PATH=/opt/node-v6.9.4-linux-x64/bin:$PATH
@@ -388,7 +389,7 @@ cd /opt
388389tar -zxf node-v6.9.4-linux-x64.tar.gz
389390```
390391
391- Set your PATH variable to include Node.js:
392+ Set ` PATH ` to include Node.js:
392393
393394```
394395export PATH=/opt/node-v6.9.4-linux-x64/bin:$PATH
@@ -696,34 +697,36 @@ if you see `MSVCR100.dll` then you need the VC++ 10 redistributable.
696697
697698## <a name =" instaix " ></a > 9. Node-oracledb Installation on AIX on Power Systems with Instant Client ZIP files
698699
699- ** THIS SECTION HAS NOT BEEN VERIFIED FOR NODE-ORACLEDB 2.x**
700-
701700Questions and issues can be posted as [ GitHub Issues] ( https://github.com/oracle/node-oracledb/issues ) .
702701
703- ### 9.1 Install Node.js
702+ ### < a name = " aixprereqs " ></ a > 9.1 Install Prerequisites
704703
705- Download [ Node.js] ( https://nodejs.org/ ) for AIX on Power Systems.
704+ The GCC compiler is needed. GCC 4.7 (or later) is needed to install
705+ because compiling for Node 4 (or later) requires a C++11 compatible
706+ compiler.
706707
707- Execute the downloaded shell script. For example, if you
708- downloaded Node 4.2 then run:
708+ Use GNU Make 4.1-1 or above.
709709
710- ```
711- sh node-v4.2.1-aix-ppc64.bin
712- ```
710+ Python 2.7 is needed by node-gyp.
713711
714- It will prompt for the Install Folder and Link Folder. Give the
715- desired location, for example ` /opt ` , where the Node binary will be
716- built.
712+ ### 9.2 Install Node.js
717713
718- On completion, a success message will be displayed
714+ Download [ Node.js] ( https://nodejs.org/ ) for AIX on Power Systems. For
715+ example, if you downloaded version 6.11.0 you could install Node.js
716+ into ` /opt ` :
719717
720- Set ` PATH ` to include the Node.js and Node-gyp binaries:
718+ ```
719+ cd /opt
720+ gunzip -c node-v6.11.0-aix-ppc64.tar.gz | tar xvf -
721+ ```
722+
723+ Set ` PATH ` to include Node.js:
721724
722725```
723- export PATH=/opt/node-v4.2.1/bin:/opt/node-v4.2.1/lib/node_modules/npm/bin/node-gyp- bin:$PATH
726+ export PATH=/opt/node-v6.11.0-aix-ppc64/ bin:$PATH
724727```
725728
726- ### 9.2 Install the add-on
729+ ### 9.3 Install the add-on
727730
728731If you are behind a firewall you may need to set your proxy, for
729732example:
@@ -746,26 +749,25 @@ Install node-oracledb from the
746749npm install oracledb
747750```
748751
749- Note: The version of ` make ` should be GNU Make 4.1-1 or above.
750-
751- ### 9.3 Install the free Oracle Instant Client 'Basic' and 'SDK' ZIPs
752+ ### 9.4 Install the free Oracle Instant Client 'Basic' ZIP file
752753
753754Download the ** Basic** ZIP file from
754755[ Oracle Technology Network] ( http://www.oracle.com/technetwork/topics/aix5lsoft-098883.html )
755756and extract it into a directory that is accessible to your application, for example ` /opt/oracle ` :
756757
757758```
758- cd /opt/oracle
759- unzip instantclient-basic-aix.ppc64-12.1.0.2.0.zip
759+ unzip instantclient-basic-aix.ppc64-12.2.0.1.0.zip
760+ mkdir -p /opt/oracle
761+ mv instantclient_12_2 /opt/oracle
760762```
761763
762764To run applications, you will need to set the link path:
763765
764766```
765- export LIBPATH=/opt/oracle/instantclient_12_1 :$LIBPATH
767+ export LIBPATH=/opt/oracle/instantclient_12_2 :$LIBPATH
766768```
767769
768- ### 9.4 Run an example program
770+ ### 9.5 Run an example program
769771
770772Download the
771773[ example programs] ( https://github.com/oracle/node-oracledb/tree/master/examples ) from GitHub.
0 commit comments