Skip to main content

Problems encountered when installing Ruby

Problems encountered when installing Ruby

  1. Homebrew Error: No formula found in taps

Solution:

    git -C $(brew --repo homebrew/core) checkout master

brew doctor


  1. permission
     ~ % gem install bundle
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.

Reference: https://stackoverflow.com/questions/57003932/riod-ios-error-you-dont-have-write-permissions-gemfilepermissionerror

looks like you are using the system Ruby that ships with MacOS. In order for this to work you would need to try running these commands with sudo. You can also try installing Ruby with RVM(https://rvm.io/)then running those same commands without sudo
RVM makes it very easy. Run this from your terminal:
\curl -sSL https://get.rvm.io | bash -s stable --ruby
This command will install RVM and the latest stable Ruby version now 2.6.3

I originally wanted to use RVM, but there were permission issues, so I sudoed it directly. Please don’t imitate me and read the original article.