RVM error while running make install. Error comes while installing power_assert gem
Same issue. This worked for me:
rvm get master
rvm reinstall 2.2.2
I used the head version of rvm before...
Rails / RVM: Issue running rails server and bundler
Have you tried to run rvm get stable --auto-dotfiles
as suggested in the last error message to set up rmv right? It seems it searches in the gems for Ruby 2.0 for the dependency (shown in the first error message).
Ruby/RVM with @global gem - bundle run fails with `require': cannot load such file — bundler (LoadError)
1) Skip the sudo just run gem install bundler
2) run bundle install
Now it should work
Ruby: BUILD FAILED (macOS 11.2 using ruby-build 20210119) Mac Big Sur
This is not an official solution. 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.
Make sure your Terminal is using Rosetta. You can find how to do that using Google.
Uninstall your current
rbenv
following these instructions Removing rbenv. Be sure you also remove all the downloaded versions of ruby if you have any (minus the system default) located in/Users/<your user name>/.rbenv/versions/
.Uninstall the ARM version of Homebrew with:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
Install the x86_64 version of Homebrew with:
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
If you run
brew install rbenv
should produce output saying "Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!". This is expected.You want to tell brew to install the older architecture x86_64
arch -x86_64 brew install rbenv
Then finally install the version you want using
arch -x86_64 rbenv install x.x.x
(x = some number i.e. 2.7.2)
From there you just need to remember to tell brew arch -x86_64
when installing other versions of Ruby.
Once an actual fix comes through you'll be able to switch back to the newer architecture and not have to use the arch
argument. You also don't have to do this all the time with brew either, just rbenv.
Related Topics
How to Implement Yes/No Instead of Boolean for Certain Cases in Rails
Change String in a Date Format to Another Format
Sort a List of Objects by Using Their Attributes in Ruby
Custom Filtering of Parameters in Rails 3 Using Config.Filter_Parameters
Could Not Find Rake-10.1.0 in Any of the Sources
Yielding in an Anonymous Block
How to Share State Between Scenarios Using Cucumber
Grabbing Snapshots from Webcams in Ruby
Ror - How to Remove Rails 4.1.1 Version
How to Inherit from Nilclass or How to Simulate Similar Function
Ruby Map Method Syntax Question
Running into Issues with Rvm During Ruby Install (1.9.2)
Ruby: Differencebetween the Comparatives: "||" and "Or"
How to Create a Charge and a Customer in Stripe (Rails)