gem install git-up no longer working in El Capitan

拈花ヽ惹草 提交于 2019-12-06 19:16:17

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!