1
我正在運行OSX 10.10.5。無法運行沒有sudo的RubyGems
將rubygems更新到最新版本(2.4.8)後,我不能在沒有sudo的情況下運行gem了。
我得到的文件的簡單
permission denied: myGem
的權限與
sudo gem install myGem
在/ usr/bin中
安裝它後
-rwx------ 1 root wheel 531B Aug 24 15:13 myGem
我居然還沒有修修補補有權限,這就是爲什麼我有點困惑,爲什麼它不工作了。
~ ruby -v
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
~ gem --version
2.4.8
~ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 2.4.8
- RUBY VERSION: 2.0.0 (2014-05-08 patchlevel 481) [universal.x86_64-darwin14]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/2.0.0
- RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-14
- GEM PATHS:
- /Library/Ruby/Gems/2.0.0
- /Users/marcwustrack/.gem/ruby/2.0.0
- /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
任何想法我可以做什麼?