@@ -119,7 +119,7 @@ alternatively use `yum` to install these packages from the
119119
120120### 2.3 Install the add-on
121121
122- If you are behind a firewall, you may need to set your proxy, for
122+ If you are behind a firewall you may need to set your proxy, for
123123example:
124124
125125```
@@ -246,7 +246,7 @@ other Oracle software installed, then these variables are not
246246required. See
247247[ Oracle Client Location Heuristic on Linux] ( #linuxinstsearchpath ) .
248248
249- If you are behind a firewall, you may need to set your proxy, for
249+ If you are behind a firewall you may need to set your proxy, for
250250example:
251251
252252```
@@ -338,7 +338,7 @@ export OCI_INC_DIR=$ORACLE_HOME/rdbms/public
338338
339339These variables are only needed during installation.
340340
341- If you are behind a firewall, you may need to set your proxy, for
341+ If you are behind a firewall you may need to set your proxy, for
342342example:
343343
344344```
@@ -393,11 +393,6 @@ node select1.js
393393
394394## <a name =" instosx " ></a > 5. Node-oracledb Installation on OS X with Instant Client
395395
396- * Note* : Users of OS X 10.11 'El Capitan' should review OS X SIP changes to
397- ` DYLD_LIBRARY_PATH ` behavior discussed in
398- [ #149 ] ( https://github.com/oracle/node-oracledb/issues/149 ) and
399- [ #231 ] ( https://github.com/oracle/node-oracledb/issues/231 ) .
400-
401396### 5.1 Install Xcode
402397
403398Building node-oracledb requires Xcode from the Mac App store.
@@ -425,38 +420,23 @@ and
425420into the same directory:
426421
427422```
428- cd /opt/oracle
423+ sudo su -
429424unzip instantclient-basic-macos.x64-11.2.0.4.0.zip
430425unzip instantclient-sdk-macos.x64-11.2.0.4.0.zip
431- mv instantclient_11_2 instantclient
432- cd instantclient
433- ln -s libclntsh.dylib.11.1 libclntsh.dylib
426+ mkdir /opt/oracle
427+ mv instantclient_11_2 /opt/oracle/ instantclient
428+ ln -s /opt/oracle/instantclient/ libclntsh.dylib.11.1 /opt/oracle/instantclient/ libclntsh.dylib
434429```
435430
436- To run applications, you will need to set the link path:
431+ Link the OCI libraries into the default library path:
437432
438433```
439- export DYLD_LIBRARY_PATH= /opt/oracle/instantclient:$DYLD_LIBRARY_PATH
434+ ln -s /opt/oracle/instantclient/{libclntsh.dylib.11.1,libnnz11.dylib,libociei.dylib} /usr/local/lib/
440435```
441436
442- To set the path permanently for future terminal shells, add the export
443- command to ` $HOME/.bash_profile ` and re-login.
444-
445437### 5.4 Install the add-on
446438
447- Tell the installer where to find Instant Client:
448-
449- ```
450- export OCI_LIB_DIR=/whereever/instantclient
451- export OCI_INC_DIR=/whereever/instantclient/sdk/include
452- ```
453-
454- These variables are only needed during installation.
455-
456- If Instant Client is in ` /opt/oracle/instantclient ` , then these
457- variables are not needed at all.
458-
459- If you are behind a firewall, you may need to set your proxy, for
439+ If you are behind a firewall you may need to set your proxy, for
460440example:
461441
462442```
@@ -469,7 +449,7 @@ or, in `csh`:
469449setenv http_proxy http://my-proxy.example.com:80/
470450```
471451
472- Install node-oracledb from the
452+ As a normal user, install node-oracledb from the
473453[ NPM registry] ( https://www.npmjs.com/package/oracledb ) :
474454
475455```
@@ -501,8 +481,6 @@ Run one of the examples:
501481node select1.js
502482```
503483
504- * Note:* Remember to set ` DYLD_LIBRARY_PATH ` first.
505-
506484To run a database on OS X, one option is to use VirtualBox,
507485see
508486[ The Easiest Way to Install Oracle Database on Mac OS X] ( https://blogs.oracle.com/opal/entry/the_easiest_way_to_enable ) .
0 commit comments