(This page is a simplification of another guide to installing oracle on Mac OS X, from which this was forked.)
Run these brew
commands:
brew install InstantClientTap/instantclient/instantclient-basiclite
brew install InstantClientTap/instantclient/instantclient-sdk
brew install InstantClientTap/instantclient/instantclient-sqlplus # optional
Note the version numbers printed above.
Go to the Mac OS X downloads page for Oracle InstantClient.
Download the following packages with the same version numbers as indicated in the brew install
commands above.
- Instant Client Package - Basic Lite x64
- Instant Client Package - SDK x64
- Instant Client Package - SQL*Plus x64 (optional)
Place each of these zip files in the directory reported by brew --cache
, something like /home/user/Library/Caches/Homebrew
.
brew install InstantClientTap/instantclient/instantclient-basiclite
brew install InstantClientTap/instantclient/instantclient-sdk
brew install InstantClientTap/instantclient/instantclient-sqlplus # optional
Set the following environment variables in your shell RC so we can install the node-oracledb
NPM module.
export OCI_LIB_DIR=$(brew --prefix)/lib
export OCI_INC_DIR=$(brew --prefix)/lib/sdk/include
npm install oracledb