This post originated from an RSS feed registered with Ruby Buzz
by Daniel Berger.
Original Post: Ruby, Oracle
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
Because I keep forgetting this trick, I'm documenting it here so I don't forget. To install ruby-oci8 on Ubuntu (and possibly other unixy platforms) do this:
Drop the "-v 1.0.7" if you want the latest version of ruby-oci8, but keep in mind that the latest version is in the 2.x range, and may be incompatible with your Rails app.
Also, instead of setting $LD_LIBRARY_PATH (on Ubuntu anyway), you can create a file under /etc/ld.so.conf.d (I called my oracle.conf), with the path to the Oracle lib directory. Here's what mine looks like: