I\'m trying to install ruby-oci8 on OS X.
I\'ve tried installing both with and without sudo.
Error Message without sudo:
If you are using OS X El Capitan, Yosemite and Mavericks. You should use Instant Client 12.1.0.2 Download Instant Client 12.1.0.2 from oracle website
Then follow these steps :-
DYLD_LIBRARY_PATH=/opt/oracle/instantclient_12_1 export DYLD_LIBRARY_PATH ORACLE_HOME=/opt/oracle/instantclient_12_1 export ORACLE_HOME
ln -s libclntsh.dylib.12.1 libclntsh.dylib (creates a symbolic link)
ln -s libocci.dylib.12.1 libocci.dylib
Note:- If this still didn't work fro you try disabling SIP on your mac then try it again.
It has worked for me hope it works for you too. All the best