美文网首页
OS X上部署Ruby on Rails环境问题

OS X上部署Ruby on Rails环境问题

作者: 欧阳蓝缺 | 来源:发表于2016-07-15 16:39 被阅读82次

部署方法照 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

解决办法:

  1. brew install gnupg gnupg2
  2. 使用gpg2代替gpg

问题3:rvm requirements时提示Error running 'requirements_osx_brew_update_system '

解决办法:需要带sudo执行该命令

相关文章

网友评论

      本文标题:OS X上部署Ruby on Rails环境问题

      本文链接:https://www.haomeiwen.com/subject/ysuyjttx.html