-
Notifications
You must be signed in to change notification settings - Fork 133
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
Apple Silicon M1 ARM64 Native Info #198
Comments
Closing as this is information only. |
Feel free to update the readme if you think it could be improved! |
I'd just like to add that maybe a better more future-proof version of the export RUBY_CONFIGURE_OPTS="--with-zlib-dir=$(brew --prefix zlib) --with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline) --with-libyaml-dir=$(brew --prefix libyaml)" |
had the same issue this is what worked for me. had to add gdbm and export the following as well
|
All of the above as one block brew install zlib readline libyaml libffi
export RUBY_CONFIGURE_OPTS="--with-zlib-dir=$(brew --prefix zlib) --with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline) --with-libyaml-dir=$(brew --prefix libyaml) --with-gdbm-dir=$(brew --prefix gdbm)"
export CFLAGS="-Wno-error=implicit-function-declaration" |
Ruby 2.6.10 will not install on Apple silicon + XCode 14 + MacOS Ventura, even with these settings, due to It may work with Xcode 13.4, but you can't downgrade if you are already on MacOS Ventura. |
I can confirm this now works for me running MacOS Sonoma 14.0 |
I had no end of trouble figuring out the exact configuration of ENV vars and tools to use for this, so I thought I'd just document it here for others. With this I have Ruby 2.6.3, 2.6.6 and 2.7.2 installed through asdf-ruby.
libffi
,libyaml
,zlib
,readline
export RUBY_CONFIGURE_OPTS="--with-zlib-dir=/opt/homebrew/opt/zlib --with-openssl-dir=/opt/homebrew/opt/openssl@1.1 --with-readline-dir=/opt/homebrew/opt/readline --with-libyaml-dir=/opt/homebrew/opt/libyaml"
export RUBY_CFLAGS="-Wno-error=implicit-function-declaration"
The text was updated successfully, but these errors were encountered: