@@ -119,7 +119,7 @@ alternatively use `yum` to install these packages from the
119
119
120
120
### 2.3 Install the add-on
121
121
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
123
123
example:
124
124
125
125
```
@@ -246,7 +246,7 @@ other Oracle software installed, then these variables are not
246
246
required. See
247
247
[ Oracle Client Location Heuristic on Linux] ( #linuxinstsearchpath ) .
248
248
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
250
250
example:
251
251
252
252
```
@@ -338,7 +338,7 @@ export OCI_INC_DIR=$ORACLE_HOME/rdbms/public
338
338
339
339
These variables are only needed during installation.
340
340
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
342
342
example:
343
343
344
344
```
@@ -393,11 +393,6 @@ node select1.js
393
393
394
394
## <a name =" instosx " ></a > 5. Node-oracledb Installation on OS X with Instant Client
395
395
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
-
401
396
### 5.1 Install Xcode
402
397
403
398
Building node-oracledb requires Xcode from the Mac App store.
@@ -425,38 +420,23 @@ and
425
420
into the same directory:
426
421
427
422
```
428
- cd /opt/oracle
423
+ sudo su -
429
424
unzip instantclient-basic-macos.x64-11.2.0.4.0.zip
430
425
unzip 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
434
429
```
435
430
436
- To run applications, you will need to set the link path:
431
+ Link the OCI libraries into the default library path:
437
432
438
433
```
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/
440
435
```
441
436
442
- To set the path permanently for future terminal shells, add the export
443
- command to ` $HOME/.bash_profile ` and re-login.
444
-
445
437
### 5.4 Install the add-on
446
438
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
460
440
example:
461
441
462
442
```
@@ -469,7 +449,7 @@ or, in `csh`:
469
449
setenv http_proxy http://my-proxy.example.com:80/
470
450
```
471
451
472
- Install node-oracledb from the
452
+ As a normal user, install node-oracledb from the
473
453
[ NPM registry] ( https://www.npmjs.com/package/oracledb ) :
474
454
475
455
```
@@ -501,8 +481,6 @@ Run one of the examples:
501
481
node select1.js
502
482
```
503
483
504
- * Note:* Remember to set ` DYLD_LIBRARY_PATH ` first.
505
-
506
484
To run a database on OS X, one option is to use VirtualBox,
507
485
see
508
486
[ 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