问题
After upgrating to OS "El Capitan" I noticed that git-up was no longer installed. I tried to install by:
~ 🍺 gem install git-up
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - /Library/Ruby/Gems/2.0.0/gems/git-up-0.5.12/bin/git-up
~ 🍺
Mal El Capitan
回答1:
After digging in I found the directory is owned by a user other than myself. (/Library/Ruby/Gems/.. is installed by Apple as part of Mac OS X.)
So I simply used brew to get install my own ruby and bingo!
~ 🍺 brew update
~ 🍺 brew install ruby
Then I could run:
~ 🍺 gem install git-up
...
6 gems installed
I started this post as a question but ended with a solution. I hope this helps.
回答2:
The solution worked for me big time
- git-up-0.5.12
- Installing ri documentation for git-up-0.5.12
- Done installing documentation for diff-lcs, mime-types, posix-spawn, grit, colored, git-up after 7 seconds
- 6 gems installed
来源:https://stackoverflow.com/questions/34071868/gem-install-git-up-no-longer-working-in-el-capitan