gem install git-up 不再在 El Capitan 中工作
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34071868/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
gem install git-up no longer working in El Capitan
提问by LanceP
After upgrating to OS "El Capitan" I noticed that git-up was no longer installed. I tried to install by:
升级到操作系统“El Capitan”后,我注意到不再安装 git-up。我尝试通过以下方式安装:
~ 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
马埃尔卡皮坦
回答by LanceP
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.)
深入研究后,我发现该目录归我以外的其他用户所有。(/Library/Ruby/Gems/.. 由 Apple 作为 Mac OS X 的一部分安装。)
So I simply used brew to get install my own ruby and bingo!
所以我只是使用 brew 来安装我自己的 ruby 和宾果游戏!
~ 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.
我开始这篇文章是一个问题,但以一个解决方案结束。我希望这有帮助。
回答by Tim Daniels
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
- git-up-0.5.12
- 为 git-up-0.5.12 安装 ri 文档
- 7 秒后完成 diff-lcs、mime-types、posix-spawn、grit、colored、git-up 的文档安装
- 安装了 6 颗宝石