关于Ruby环境配置的疑问

  1. brew install ruby 会安装在哪个路径下?
    答:在/usr/local/Cellar/ruby/2.4.1/bin/ruby路径下

  2. 安装 RVM gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 失败,提示command not found: gpg,如何解决?
    答:用 Homebrew 安装 GnuPG :brew install gnupg gnupg2

  3. 安装 RVM gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 失败,提示 gpg no keyserver available,如何解决?
    答:替换 keyserver 地址为 'hkp://pgp.mit.edu',完整命令为 gpg --keyserver hkp://pgp.mit.edu --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

  4. 安装 RVM \curl -sSL https://get.rvm.io | bash -s stable 提示

 WARNING: You have '~/.profile' file, you might want to load it,
    to do that add the following line to '/Users/XXX/.bash_profile':

      source ~/.profile

答: 打开 /Users/XXX/.bash_profile 文件,把 source ~/.profile 这行文本复制到 .bash_profile 最后一行。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

友情链接更多精彩内容