Error installing Ruby on a Mac using RVM
First, you'll need to install the Apple Developers Toolkit (XCode
) from the Mac App Store (it's free)
Once that's installed, you'll need to install the CLI command line utilities by running:
xcode-select --install
Then try your install again, and it should work for you.
Additionally, you may want to install the latest version of Ruby, which at the time of this writing is 2.1.0
(via rvm install 2.1.0
)
Finally, if you haven't already, I would recommend installing homebrew
as well, as this has the added benefit of checking your runtime environment for errors (via brew doctor
). You can find instructions here: http://brew.sh/
Good luck!
How to fix RVM installation error on Mac OS Catalina 10.15.4
Try to install the Apple Developers Toolkit (XCode) from the Mac App Store (it's free) first (if it's not installed yet), then you need to install the CLI command line utilities by running:
xcode-select --install
Then try your install again.
If it will not helped, try to:
- Install rvm master with rvm get master;
Reinstall rvm:
rvm implode
\curl -sSL https://get.rvm.io | bash
rvm pkg install openssl
rvm install 2.3.1 --with-openssl-dir=$HOME/.rvm/usr
Can't install ruby 2.6.6 via rvm, error running '__rvm_make -10' on macbook pro m1
rvm install 2.6.6 --with-out-ext=fiddle
worked for me
Error when trying to install Ruby 3.0.0 through RVM
Try doing it using homebrew by running 'brew upgrade ruby'. That should upgrade it to the latest Ruby version.
Error when installing Ruby 2.1.3 with RVM
I had the same problem
rvm reinstall 2.1.3 --disable-binary
worked for me
(based on Fresh Installs of RVM and Ruby 2.1.1 - dyld library/pathing error).
Related Topics
Getting Viewable Text Words via Nokogiri
Devise Custom Messages When Validation Fails
What Command Opens Ruby's Repl
How to Use the Rails Helper "Distance_Of_Time_In_Words" in Plain Old Ruby (Non-Rails)
How to Compare a String Against Multiple Other Strings
Why Doesn't Rails' "Errors.Full_Messages" Replace Attribute and Message Variables
Rails: Plus Sign in Get-Request Replaced by Space
Why Is 'Return a or B' a Void Value Expression Error in Ruby
Could Not Find 'Cocoapods' (>= 0) Among N Total Gem(S) (Gem::Loaderror)
Error When Doing Rake Db:Migrate on Heroku
Retrieving a Braintree Customer's Subscriptions
How to Determine the Md5 Digest of a Given Asset in the Rails Asset Pipeline
Devise: How to Override Devise Error Messages on Password Change