部署方法照 https://ruby-china.org/wiki/install_ruby_guide 進行,但中間遇到些問題,所以記錄一下。
系統版本:10.11.5,brew已安裝。
問題1:brew install libiconv失敗
提示Error: No available formula with the name "libiconv"
解決辦法:
create a personal access token:
https://github.com/settings/tokens/new?scopes=&description=Homebrew
and then set the token as: export HOMEBREW_GITHUB_API_TOKEN="your_new_token"
訪問上面的網址生成token,將生成的token添加的系統環境變量中。
問題2:安裝RVM時提示command not found: gpg
解決辦法:
brew install gnupg gnupg2
- 使用
gpg2
代替gpg
問題3:rvm requirements時提示Error running 'requirements_osx_brew_update_system '
解決辦法:需要帶sudo
執行該命令