Skip to content

Instantly share code, notes, and snippets.

@peterhellberg
Created March 26, 2014 15:39

Revisions

  1. peterhellberg created this gist Mar 26, 2014.
    19 changes: 19 additions & 0 deletions how-to-install-ruby-oci8.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    # Install of ruby-oci8 for 10.9/OSX Mavericks - step-by-step:

    1. Go here: http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html
    2. Download the 64bit versions of instantclient-sqlplus, instantclient-sdk, instantclient-basic - the 32bit versions do not work with OSX 10.9
    3. Create directories at /opt/oracle
    4. Unzip instantclient-basic first, move to /opt/oracle (should add a folder - something like /opt/oracle/instantclient_11_2/)
    5. Unzip instantclient-sdk and move its contents to /opt/oracle/instantclient_11_2/
    6. Unzip instantclient-sqlplus and move its contents /opt/oracle/instantclient_11_2/
    7. Open Terminal (if you haven't already) and type...
    8. DYLD_LIBRARY_PATH=/opt/oracle/instantclient_11_2 export DYLD_LIBRARY_PATH
    9. ORACLE_HOME=/opt/oracle/instantclient_11_2 export ORACLE_HOME
    10. cd /opt/oracle/instantclient_11_2
    11. ln -s libclntsh.dylib.11.1 libclntsh.dylib (creates a symbolic link)
    12. env
    13. verify that DYLD_LIBRARY_PATH=/opt/oracle/instantclient_11_2 (be sure there's no trailing / after instantclient_11_2)
    14. verify ORACLE_HOME=/opt/oracle/instantclient_11_2
    15. gem install ruby-oci8

    This guide is copied from [this answer](http://stackoverflow.com/a/21443313) on Stack Overflow.