Skip to content

ruby-oci8 works in Apple Silicon (macOS ARM64) now! - #270

Open
Eric-Guo wants to merge 3 commits into
kubo:masterfrom
Eric-Guo:master
Open

Eric-Guo wants to merge 3 commits into
kubo:masterfrom
Eric-Guo:master

Conversation

@Eric-Guo

@Eric-Guo Eric-Guo commented Sep 2, 2025 •

Copy link
Copy Markdown

Please notice I need revert d1daf45 commit in order to make it works.

@Faq

Faq commented Sep 2, 2025

Copy link
Copy Markdown

What mac version and gem version this is tested?

@Eric-Guo

Eric-Guo commented Sep 3, 2025

Copy link
Copy Markdown
Author

macOS 15.6.1 (24G90) on M4 Pro, ruby version 3.4.5, ruby-oci8 version 2.2.14 and main (revert d1daf45)

Copilot AI lite review requested due to automatic review settings September 28, 2026 08:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The version compatibility check and macOS installation documentation have unresolved issues.

Review effort: Lite
Findings: 1 High severity · 1 Low severity

Open (2)
What changed in this PR

Enables Apple Silicon macOS support by removing obsolete binding-dump support, updating version validation, and revising installation guidance.

Changes:

  • Removes binding-dump compilation, initialization, and workflow support.
  • Updates native extension version validation.
  • Adds ARM64 Oracle Instant Client installation instructions.
File Summary
lib/​oci8.rb Updates extension version validation; exact version comparison should be retained.
ext/​oci8/​oci8lib.c Removes binding-dump initialization.
ext/​oci8/​oci8.h Removes the binding-dump declaration.
ext/​oci8/​extconf.rb Stops compiling dump_bindings.o.
ext/​oci8/​dump_bindings.c Removes obsolete binding-dump implementation.
docs/​install-on-osx.md Adds ARM64 guidance; Intel support and several setup steps need correction.
.github/​workflows/​dump-bindings.yml-disabled Removes obsolete workflow configuration.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lib/oci8.rb

require 'oci8/version.rb'
if OCI8::VERSION != OCI8::LIB_VERSION
if OCI8::VERSION.split('.').take(3).join('.') != OCI8::LIB_VERSION.split('.').take(3).join('.')
Comment thread docs/install-on-osx.md
Comment on lines +15 to +19
Go [oracle site](https://www.oracle.com/database/technologies/instant-client/macos-arm64-downloads.html) and download:

* instantclient-basiclite-macos.arm64-23.3.0.23.09.dmg
* instantclient-sdk-macos.arm64-23.3.0.23.09.dmg
* instantclient-sqlplus-macos.arm64-23.3.0.23.09.dmg
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

Successfully merging this pull request may close these issues.

3 participants