# AMD64 + Debain + rails + Oracle?

**URL:** <https://www.ruby-forum.com/t/amd64-debain-rails-oracle/63119>\
**Category:** Rails\
**Created:** [June 12, 2006, 1:12pm UTC](https://www.ruby-forum.com/t/amd64-debain-rails-oracle/63119 "2006-06-12T13:12:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bealach\_Na\_Bo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e19b73/32.png) [@Bealach\_Na\_Bo](https://www.ruby-forum.com/u/Bealach_Na_Bo)\
**Post date:** [June 12, 2006, 1:12pm UTC](https://www.ruby-forum.com/t/amd64-debain-rails-oracle/63119/1 "2006-06-12T13:12:07Z")

</div>

Hi folks,

Does anyone know how to install the OCI8 ruby interface on Debian64  
without having to install Oracle?

My understanding, from experience with Debian i386, is that you need  
Oracle (specifically the SQLPlus) installed to be able to compile  
OCI8. Since my new dev machine is AMD64 running Debian, I’m stuck.  
My rails applications need to connect to a remote Oracle 10g, but  
cannot since I can’t install OCI8 and I can’t install SQLPlus since I  
can’t install Oracle on AMD64! “Chicken and egg”?

Bealach

---

<div class="post-metadata">

**Author:** ![Bealach\_Na\_Bo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e19b73/32.png) [@Bealach\_Na\_Bo](https://www.ruby-forum.com/u/Bealach_Na_Bo)\
**Post date:** [June 12, 2006, 4:10pm UTC](https://www.ruby-forum.com/t/amd64-debain-rails-oracle/63119/2 "2006-06-12T16:10:02Z")

</div>

On 6/12/06, Bealach Na Bo [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> can’t install Oracle on AMD64! “Chicken and egg”?

Your best bet is probably the Oracle Instant Client.  
Also, just in case you haven’t seen this…

> **[Oracle 10g Release 2](https://linux.togaware.com/survivor/Oracle_10g.html)**
>
> Oracle 10g Release 2

…that’s a pretty nice writeup about Oracle on 64bit Debian.

---

<div class="post-metadata">

**Author:** ![Bealach\_Na\_Bo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e19b73/32.png) [@Bealach\_Na\_Bo](https://www.ruby-forum.com/u/Bealach_Na_Bo)\
**Post date:** [June 12, 2006, 5:04pm UTC](https://www.ruby-forum.com/t/amd64-debain-rails-oracle/63119/3 "2006-06-12T17:04:57Z")

</div>

Thanks very much Wilson. I should have read the README for the  
ruby-oci package! Anyhow, I’ve got a lot further, thanks to you, but  
I’m not quite there.

I’ve got the instant client working and run SQLPlus queries  
I’ve compiled and installed the OCI8 ruby libraries without errors  
But, when I run

irb\> require ‘oci8’  
LoadError: libclntsh.so.10.1: cannot open shared object file: No such  
file or directory -  
/usr/local/lib/site\_ruby/1.8/x86\_64-linux/oci8lib.so  
from /usr/local/lib/site\_ruby/1.8/x86\_64-linux/oci8lib.so  
from /usr/local/lib/site\_ruby/1.8/oci8.rb:7  
from (irb):2:in `require’  
from (irb):2

which makes no sense whatever since,

home$ ls /usr/local/lib/site\_ruby/1.8/x86\_64-linux/oci8lib.so  
/usr/local/lib/site\_ruby/1.8/x86\_64-linux/oci8lib.so

Any more good ideas would be most welcome.

Bealach

---

<div class="post-metadata">

**Author:** ![Bealach\_Na\_Bo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e19b73/32.png) [@Bealach\_Na\_Bo](https://www.ruby-forum.com/u/Bealach_Na_Bo)\
**Post date:** [June 12, 2006, 5:20pm UTC](https://www.ruby-forum.com/t/amd64-debain-rails-oracle/63119/4 "2006-06-12T17:20:31Z")

</div>

Got it to work now. Had forgotten to export my LD\_LIBRARY\_PATH.

Thanks again for your help,

Bealach
