Skip to content

Instantly share code, notes, and snippets.

@pvilas
Created June 24, 2014 15:30
Show Gist options
  • Save pvilas/f438b68b8ae981465d65 to your computer and use it in GitHub Desktop.
Save pvilas/f438b68b8ae981465d65 to your computer and use it in GitHub Desktop.
install joeferner/node-oracle node oracle driver on ubuntu
export OCI_HOME=<directory of Oracle instant client>
export OCI_LIB_DIR=$OCI_HOME
export OCI_INCLUDE_DIR=$OCI_HOME/sdk/include
export OCI_VERSION=<the instant client major version number> # Optional. Default is 11.
export NLS_LANG=AMERICAN_AMERICA.UTF8
cd $OCI_LIB_DIR
ln -s libclntsh.so.11.1 libclntsh.so
ln -s libocci.so.11.1 libocci.so
sudo apt-get install libaio1
# Replace /opt/instantclient_11_2/ with wherever you extracted the Basic Lite files to
echo '/opt/instantclient_11_2/' | sudo tee -a /etc/ld.so.conf.d/oracle_instant_client.conf
sudo ldconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment