How to install ruby-oci8?
Slightly updated version of install of ruby-oci8 for 10.9/10.10/10.11OSX Mavericks/Yosemite/El Capitan - step-by-step:
- Go here: http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html
- Download the 64bit versions of instantclient-sqlplus, instantclient-sdk, instantclient-basic - the 32bit versions do not work with OSX 10.9
- Create directories at /opt/oracle
- Unzip instantclient-basic first, move to /opt/oracle (should add a folder - something like /opt/oracle/instantclient_11_2/)
- Unzip instantclient-sdk and move its contents to /opt/oracle/instantclient_11_2/
- Unzip instantclient-sqlplus and move its contents /opt/oracle/instantclient_11_2/
- Open Terminal (if you haven't already) and type...
DYLD_LIBRARY_PATH=/opt/oracle/instantclient_11_2 export DYLD_LIBRARY_PATH
ORACLE_HOME=/opt/oracle/instantclient_11_2 export ORACLE_HOME
cd /opt/oracle/instantclient_11_2
ln -s libclntsh.dylib.11.1 libclntsh.dylib
(creates a symbolic link)env
- verify that DYLD_LIBRARY_PATH=/opt/oracle/instantclient_11_2 (be sure there's no trailing / after instantclient_11_2)
- verify ORACLE_HOME=/opt/oracle/instantclient_11_2
- gem install ruby-oci8
Should work after that. The file structure should look similar to this:
troubles with RVM and OpenSSL
Try this:
rvm get head
rvm pkg remove
rvm requirements run # if brew gives you warnings about formulas to install, run "brew install" for each before moving on.
rvm reinstall [the version you need (i.e: 2.0.0)]
Related Topics
Parsing JSON Without Quoted Keys
How to Pass a Variable to a Layout
Simple Neural Network Can't Learn Xor
Accessing One Controller Variable in Another Controller in Rails
Ruby Escape Argv Argument or String as Argument to Shell Command
How to Run a Simple File on Heroku
Capistrano 3 + Sprockets 3 + Rails 4.2.1 Won't Deploy
What Is Purpose of Around_Create Callback in Rails Model
Where Does Ruby Keep Track of Its Open File Descriptors
How to See the Ruby Code in a Proc
Rake Db:Migration Not Working on Travis-Ci Build
Ruby String with Usd "Money" Converted to Number