0
只想學習如何處理所有這些寶石,並且在使用'gem install x'安裝任何東西時遇到問題。我到處都看到它不是使用'sudo'的最佳做法。嘗試安裝gem,/Library/Ruby/Gems/2.0.0目錄時沒有寫入權限。 RVM已安裝
-facts-
創業板安裝黃瓜回報 'You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
'
其中寶石返回/usr/bin/gem
寶石ENV返回
RubyGems Environment:
- RUBYGEMS VERSION: 2.0.14.1
- RUBY VERSION: 2.0.0 (2015-12-16 patchlevel 648) [universal.x86_64-darwin16]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/2.0.0
- RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-16
- GEM PATHS:
- /Library/Ruby/Gems/2.0.0
- /Users/username/.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
- "gem" => "--no-ri --no-rdoc"
- REMOTE SOURCES:
- https://rubygems.org/
我已經安裝了RVM但回報 -
No rvm rubies installed yet. Try 'rvm help install'
不知道該怎麼做,將不勝感激幫助。