Problems encountered when installing Ruby
Problems encountered when installing Ruby
- Homebrew Error: No formula found in taps
Solution:
git -C $(brew --repo homebrew/core) checkout master
brew doctor
- 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.
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.