關于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 最后一行。

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容