部署方法照 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
执行该命令
网友评论