I\'m trying to install ruby-oci8 on OS X.
I\'ve tried installing both with and without sudo.
Error Message without sudo:
Begin by downloading oracle instantclient version 11.2 for 32 bit Linux from their website. Version 12 or later will not work with visual database (I always grabbed the .zip versions, so that's what the guide assumes. It also assumes the downloaded files are in the /tmp folder.). You will need the basic version, sqlplus, and sdk. Once those downloads are completed, execute the following commands in the terminal
sudo mkdir -p /opt/oracle
sudo cd /opt/oracle
sudo unzip /tmp/instantclient-basic-linux-11.2.0.4.0.zip
sudo unzip /tmp/instantclient-sqlplus-linux-11.2.0.4.0.zip
sudo unzip /tmp/instantclient-sdk-linux-11.2.0.4.0.zip
sudo apt-get install libaio1
sudo cd instantclient_11_2
sudo ln -s libclntsh.so.11.2 libclntsh.so
-Now, we'll need to tell our bash shell where the oracle client is located. So allow yourself to see hidden files, and open up $home/.bashrc with a text editor. Add the following line to the bottom of the file and then save it:
export LD_LIBRARY_PATH=/opt/oracle/instantclient_11_2
-Now source .bashrc to load the new settings with this command in the terminal:
source ~/.bashrc
-Now if we did everything correctly, we should be able to install the oracle database adapter gem. Try it with this command:
gem install ruby-oci8 -v '2.1.5'