1
- # Installing node-oracledb
1
+ # Installing node-oracledb Version 2
2
2
3
3
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.*
4
4
@@ -71,10 +71,11 @@ support C++11.** Note the default compiler on Oracle Linux 6 and RHEL 6
71
71
does 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 )
72
72
or upgrade to Oracle Linux 7.
73
73
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`.
78
79
79
80
### Which Instructions to Follow
80
81
@@ -157,7 +158,7 @@ cd /opt
157
158
tar -Jxf node-v6.9.4-linux-x64.tar.xz
158
159
```
159
160
160
- Set PATH to include Node.js:
161
+ Set ` PATH ` to include Node.js:
161
162
162
163
```
163
164
export PATH=/opt/node-v6.9.4-linux-x64/bin:$PATH
@@ -268,7 +269,7 @@ cd /opt
268
269
tar -Jxf node-v6.9.4-linux-x64.tar.xz
269
270
```
270
271
271
- Set PATH to include Node.js:
272
+ Set ` PATH ` to include Node.js:
272
273
273
274
```
274
275
export PATH=/opt/node-v6.9.4-linux-x64/bin:$PATH
@@ -388,7 +389,7 @@ cd /opt
388
389
tar -zxf node-v6.9.4-linux-x64.tar.gz
389
390
```
390
391
391
- Set your PATH variable to include Node.js:
392
+ Set ` PATH ` to include Node.js:
392
393
393
394
```
394
395
export 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.
696
697
697
698
## <a name =" instaix " ></a > 9. Node-oracledb Installation on AIX on Power Systems with Instant Client ZIP files
698
699
699
- ** THIS SECTION HAS NOT BEEN VERIFIED FOR NODE-ORACLEDB 2.x**
700
-
701
700
Questions and issues can be posted as [ GitHub Issues] ( https://github.com/oracle/node-oracledb/issues ) .
702
701
703
- ### 9.1 Install Node.js
702
+ ### < a name = " aixprereqs " ></ a > 9.1 Install Prerequisites
704
703
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.
706
707
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.
709
709
710
- ```
711
- sh node-v4.2.1-aix-ppc64.bin
712
- ```
710
+ Python 2.7 is needed by node-gyp.
713
711
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
717
713
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 ` :
719
717
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:
721
724
722
725
```
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
724
727
```
725
728
726
- ### 9.2 Install the add-on
729
+ ### 9.3 Install the add-on
727
730
728
731
If you are behind a firewall you may need to set your proxy, for
729
732
example:
@@ -746,26 +749,25 @@ Install node-oracledb from the
746
749
npm install oracledb
747
750
```
748
751
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
752
753
753
754
Download the ** Basic** ZIP file from
754
755
[ Oracle Technology Network] ( http://www.oracle.com/technetwork/topics/aix5lsoft-098883.html )
755
756
and extract it into a directory that is accessible to your application, for example ` /opt/oracle ` :
756
757
757
758
```
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
760
762
```
761
763
762
764
To run applications, you will need to set the link path:
763
765
764
766
```
765
- export LIBPATH=/opt/oracle/instantclient_12_1 :$LIBPATH
767
+ export LIBPATH=/opt/oracle/instantclient_12_2 :$LIBPATH
766
768
```
767
769
768
- ### 9.4 Run an example program
770
+ ### 9.5 Run an example program
769
771
770
772
Download the
771
773
[ example programs] ( https://github.com/oracle/node-oracledb/tree/master/examples ) from GitHub.
0 commit comments