-
Notifications
You must be signed in to change notification settings - Fork 75
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 in M1 and ruby 2.5.1 #236
Comments
Could you use ruby-oci8 under $ arch -x86_64 ruby -roci8 -e "p OCI8.oracle_client_version" |
Nop :( mkenar@MacBook-Pro-de-mkenar ios-ui2 % arch -arm64 ruby -roci8 -e "p OCI8.oracle_client_version" Traceback (most recent call last): |
Could you use |
arch -x86_64 ruby -roci8 -e "p OCI8.oracle_client_version" Traceback (most recent call last): |
Could you post the output of the following commands? $ file /Users/mkenar/.rbenv/versions/2.5.1/bin/ruby
$ file /Users/mkenar/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/ruby-oci8-2.2.9/lib/oci8lib_250.bundle If |
mkenar@MacBook-Pro-de-mkenar ~ % file /Users/mkenar/.rbenv/versions/2.5.1/bin/ruby |
Could you rebuild it as |
Oracle Instant Client for macOS arm64 is out. I hope it works without ruby-oci8 code change. |
ruby-oci8 2.2.13 was released. It runs on macOS arm. |
Hi,
ruby version :2.5.1
SO: Big Sur 11.3.1
Chip Apple M1
I cant use ruby-oci8, I just tried with 2.2.7, 2.2.8 and 2.2.9 and all have same error.
dlopen(/Users/mkenar/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/ruby-oci8-2.2.7/lib/oci8lib_250.bundle, 9): no suitable image found. Did find: (LoadError)
/Users/mkenar/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/ruby-oci8-2.2.7/lib/oci8lib_250.bundle: mach-o, but wrong architecture
/Users/mkenar/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/ruby-oci8-2.2.7/lib/oci8lib_250.bundle: mach-o, but wrong architecture - /Users/mkenar/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/ruby-oci8-2.2.7/lib/oci8lib_250.bundle
I used this command to install it in my mac -> arch -x86_64 gem install ruby-oci8
If I do not use arch -x86_64, the command gem install
return this:
`Error Message:
Could not compile with Oracle instant client.
You may need to set the environment variable RC_ARCHS or ARCHFLAGS as follows:
or
ARCHFLAGS='-arch x86_64'
export RC_ARCHS
If it does not fix the problem, delete all '-arch arm64'
in '/Users/mkenar/.rbenv/versions/2.5.1/lib/ruby/2.5.0/-darwin20/rbconfig.rb'.`
Thanks
The text was updated successfully, but these errors were encountered: