安裝cocoapods
在運行 “sudo gem install cocoapods” 的時候出現(xiàn)問題:ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/fuzzy_match
則可以改為:
sudo gem install -n /usr/local/bin cocoapods
安裝monkey
hufengdeiMac:~ hufeng$ sudo gem install /usr/bin crash_monkey --no-ri --no-rdoc
ERROR: Could not find a valid gem '/usr/bin' (>= 0) in any repository
ERROR: Possible alternatives: userbin
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
解決:sudo gem install -n /usr/local/bin crash_monkey --no-ri --no-rdoc
<font color=#ff0000>出現(xiàn)類似的問題谦絮,需要設置當前路徑的訪問權限是整;</font>