ruby-oci8 icon indicating copy to clipboard operation
ruby-oci8 copied to clipboard

Compiling in m1 mac

Open ajaya opened this issue 4 years ago • 3 comments

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 avatar Mar 17 '21 23:03 ajaya

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

ajaya avatar Mar 18 '21 04:03 ajaya

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.

kubo avatar Mar 26 '21 06:03 kubo

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

allthesignals avatar Sep 24 '21 21:09 allthesignals

it has been two years, any updates on this ?

bragboy avatar Feb 13 '23 14:02 bragboy

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.

kubo avatar Feb 14 '23 00:02 kubo