2.7.2)įrom there you just need to remember to tell brew arch -x86_64 when installing other versions of Ruby.
Mac os 11.2 install#
Then finally install the version you want using arch -x86_64 rbenv install x.x.x (x = some number i.e. You want to tell brew to install the older architecture x86_64 arch -x86_64 brew install rbenv If you run brew install rbenv should produce output saying "Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!". Install the x86_64 version of Homebrew with: arch -x86_64 /bin/bash -c "$(curl -fsSL )" Uninstall the ARM version of Homebrew with: /bin/bash -c "$(curl -fsSL )" Be sure you also remove all the downloaded versions of ruby if you have any (minus the system default) located in /Users//.rbenv/versions/. Uninstall your current rbenv following these instructions Removing rbenv.
Mac os 11.2 how to#
You can find how to do that using Google. Make sure your Terminal is using Rosetta. I'm sure the rbenv devs are working on an actual solution but this workaround should help others who are setting up their ruby environments on the new M1 chips for Mac. Why is this happening and how can I fix this? ?♂️ If there is any specifics you want to see in the log file let me know where from, the log file is too big to share here. zshrc file also contains this line eval "$(rbenv init -)"Īt this point I'm not sure where else to turn ? Homebrew version is 3.0.0 and brew doctor say's I'm ready to brew. Linking shared-object json/ext/generator.bundle Results logged to /var/folders/rn/c7nmr3x12gg5r8qwsr4ty8hh0000gn/T/Ĭompiling. Inspect or clean up the working tree at /var/folders/rn/c7nmr3x12gg5r8qwsr4ty8hh0000gn/T/
The version of Ruby also doesn't seem to matter, I've tried 3.0.0 as well and get the same results.Īdditionally this is the original output when I try to just install ruby with rbenv install Downloading openssl-1.1.1i.tar.gz. I get this error for both commands mentioned above and both give this same output. Installing capi-docs: /Users/richard/.rbenv/versions/2.5.3/share/doc/ruby Installing rdoc: /Users/richard/.rbenv/versions/2.5.3/share/ri/2.5.0/system
Installing bundled gems: /Users/richard/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0 (build_info, cache, doc, extensions, gems, specifications) Results logged to /var/folders/rn/c7nmr3x12gg5r8qwsr4ty8hh0000gn/T/ Inspect or clean up the working tree at /var/folders/rn/c7nmr3x12gg5r8qwsr4ty8hh0000gn/T/9O It only receives critical security updates, no bug fixes. WARNING: ruby-2.5.3 is nearing its end of life. Installed openssl-1.1.1i to /Users/richard/.rbenv/versions/2.5.3 This is the output in my Terminal: Downloading openssl-1.1.1i.tar.gz. My macOS is Big Sur and the version I have is 11.2 and it was the closest I could find to the issue I'm having with my OS, I followed what I could by trying CFLAGS="-Wno-error=implicit-function-declaration" rbenv install 2.5.3Īnd also RUBY_CFLAGS=-DUSE_FFI_CLOSURE_ALLOC rbenv install 2.5.3 I looked at this Ruby installation (2.2.2) fails in macOS Big Sur