Skip to content

Instantly share code, notes, and snippets.

@rossov
Last active August 29, 2015 13:56
Show Gist options
  • Save rossov/8949785 to your computer and use it in GitHub Desktop.
Save rossov/8949785 to your computer and use it in GitHub Desktop.
Install ruby-oci8 on Mac OS X Mavericks
# Install Oracle Instant Client
sudo mkdir /opt
sudo chown ${USER}:admin /opt
mkdir -p /opt/oracle
cd /opt/oracle/
unzip ~/Downloads/instantclient-basic-macos.x64-11.2.0.3.0.zip
unzip ~/Downloads/instantclient-sdk-macos.x64-11.2.0.3.0.zip
unzip ~/Downloads/instantclient-sqlplus-macos.x64-11.2.0.3.0.zip
cd instantclient_11_2/
ln -s libclntsh.dylib.11.1 libclntsh.dylib
# Add following to your profile
export DYLD_LIBRARY_PATH=/opt/oracle/instantclient_11_2
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export PATH=/opt/oracle/instantclient_11_2:$PATH
# check if SQL*Plus runs
./sqlplus /nolog
# install ruby-oci8 gem
gem ins ruby-oci8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment