# Oci8 mac os x intel

**URL:** <https://www.ruby-forum.com/t/oci8-mac-os-x-intel/58319>\
**Category:** Rails\
**Created:** [April 20, 2006, 4:34pm UTC](https://www.ruby-forum.com/t/oci8-mac-os-x-intel/58319 "2006-04-20T16:34:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [April 20, 2006, 4:34pm UTC](https://www.ruby-forum.com/t/oci8-mac-os-x-intel/58319/1 "2006-04-20T16:34:37Z")

</div>

Is rails + oci8 + mac os x intel a winning combination? It appears  
that oci8 might be a issue.

---

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [April 20, 2006, 5:49pm UTC](https://www.ruby-forum.com/t/oci8-mac-os-x-intel/58319/2 "2006-04-20T17:49:35Z")

</div>

Bryan L. wrote:

> Is rails + oci8 + mac os x intel a winning combination? It appears  
> that oci8 might be a issue.

OCI8 is not really the issue. The issue is that you need an Intel  
compatible library from Oracle (for example, an Intel version of the  
InstantClient).

Strangely, the Oracle Mac Instant Client DOES work, on it’s own, through  
the magic of Rosetta. For instance, you can run SQLPLUS. But you  
can’t, for example, use it with OCI, because OCI compiles as a native  
Intel binary, and cannot link against the PPC binaries of the Oracle  
Instant Client.

If you REALLY wanted to cripple yourself, you could try to install/build  
PPC binaries of your entire Ruby/Rails stack, and then run in  
compatibility (read sloooooow) mode via Rosetta. I wouldn’t recommend  
it, but you could try.

Or production server is RedHat with Oracle, so we do need Oracle. But  
we made the decision to run with MySQL on our Intel iMacs, and then we  
have a Continuous Build server that lives on Fedora Core with Oracle XE  
installed. It catches all the MySQL/Oracle “oops”, which aren’t really  
that bad, after the first week or so 😉

–  
Regards, Lori O.  
[http://blog.dragonsharp.com](http://blog.dragonsharp.com)

---

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [April 21, 2006, 2:34am UTC](https://www.ruby-forum.com/t/oci8-mac-os-x-intel/58319/3 "2006-04-21T02:34:42Z")

</div>

Hi,

Lori O. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

> can’t, for example, use it with OCI, because OCI compiles as a native  
> Intel binary, and cannot link against the PPC binaries of the Oracle  
> Instant Client.
> 
> If you REALLY wanted to cripple yourself, you could try to install/build  
> PPC binaries of your entire Ruby/Rails stack, and then run in  
> compatibility (read sloooooow) mode via Rosetta. I wouldn’t recommend  
> it, but you could try.

Some people have tried.

Here is what I add to the README file in the next ruby-oci8 release.

=== Intel Mac

Oracle intant client is still, when I write this, pcc.

1. check whether the ruby is ppc bianry.

2. fix compilation flags.

3. config, make and install

4. rollback the changes in 2.

---

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [June 17, 2006, 6:46am UTC](https://www.ruby-forum.com/t/oci8-mac-os-x-intel/58319/4 "2006-06-17T06:46:08Z")

</div>

I like this approach, and I got that driver to work on my mactel with  
ruby, but there  
are no ODBC Rails adapters. Did you write your own? or did you find one  
somewhere?

For me running Rails/Ruby in PPC mode is not an option.

Does anyone know the ETA for Oracle releasing intel versions of their  
drivers?

---

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [April 24, 2006, 2:24pm UTC](https://www.ruby-forum.com/t/oci8-mac-os-x-intel/58319/5 "2006-04-24T14:24:37Z")

</div>

On Apr 20, 2006, at 8:33 PM, KUBO Takehiro wrote:

> > InstantClient).  
> > PPC binaries of your entire Ruby/Rails stack, and then run in  
> > Oracle intant client is still, when I write this, pcc.
> 
> If they haven’t ‘-arch ppc’, add it.
> 
> 1. config, make and install
> 
> 2. rollback the changes in 2.

That is a great HOWTO. I came up with another solution. I purchased  
an Oracle ODBC driver from [http://www.actualtechnologies.com/](http://www.actualtechnologies.com/)  
product\_oracle.php. I then configured rails to use odbc. I don’t  
want to run ppc binaries if I don’t have to.
