Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install on M1 #255

Closed
maxgronlund opened this issue Nov 8, 2023 · 3 comments
Closed

Install on M1 #255

maxgronlund opened this issue Nov 8, 2023 · 3 comments

Comments

@maxgronlund
Copy link

I'm installing version 2.2.12 on a M1 mac.
bundle install
/Users/maxgronlund/.asdf/installs/ruby/2.7.7/lib/ruby/gems/2.7.0/gems/ruby-oci8-2.2.12/ext/oci8/oraconf.rb:507

It looks like the environment files are invalid, but after a little more invistigation i found that the problem is the support for the M1 processor is the problem.

I have installed instantclient in my download folder and it works as it should

Here is a message from the terminal

	from /Users/maxgronlund/.asdf/installs/ruby/2.7.7/lib/ruby/gems/2.7.0/gems/ruby-oci8-2.2.12/ext/oci8/oraconf.rb:257:in `get'
	from extconf.rb:22:in `<main>'
  skip: /opt/oracle/instantclient_19_8/libclntsh.dylib.19.1 is for x86_64 cpu.
@kubo
Copy link
Owner

kubo commented Nov 8, 2023

Could you check your ruby architecture?

file /Users/maxgronlund/.asdf/installs/ruby/2.7.7/bin/ruby

If it prints Mach-O 64-bit executable arm64, you need to install ruby for intel architecture.

See https://www.stufro.com/2023/03/24/mac-m1-oracle-instant-client.html and then use intel ruby to install ruby-oci8.

@kubo
Copy link
Owner

kubo commented Jun 23, 2024

Oracle Instant Client for macOS arm64 is out.
https://www.oracle.com/database/technologies/instant-client/macos-arm64-downloads.html

I hope it works without ruby-oci8 code change.

@kubo
Copy link
Owner

kubo commented Jul 27, 2024

ruby-oci8 2.2.13 was released. It runs on macOS arm.

@kubo kubo closed this as completed Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants