kubo / ruby-oci8

Ruby-oci8 - Oracle interface for ruby
Other
169 stars 78 forks source link

Compiling in m1 mac #231

Closed ajaya closed 1 year ago

ajaya commented 3 years ago

Sorry. This isn't an issue per se and feel free to close it. Just wondering if anyone has found out a way to compile and install this gem in Apple M1 chip mac? rvm, brew, ruby install just fine. But can't get this gem to work. I know Oracle libraries are all x64.

Any help?

ajaya commented 3 years ago

Just an update that I can run the sqlplus client in arm using Rosetta 2(I think so). This was installed using brew.

kubo commented 3 years ago

I guess that it works if both ruby and ruby-oci8 are all x64. Compile ruby and ruby-oci8 on intel mac and copies all files to m1 mac.

allthesignals commented 2 years ago

Also seeing this on an M1 machine, but unsure because this is the error output I'm seeing: https://github.com/kubo/ruby-oci8/issues/116

bragboy commented 1 year ago

it has been two years, any updates on this ?

kubo commented 1 year ago

It works when ruby is compiled for x86_64.

In https://github.com/kubo/ruby-oci8/issues/252#issuecomment-1412288318:

After I switched to x86 version it is able to install the gem.