用
brew install ruby
會(huì)安裝在哪個(gè)路徑下逢渔?
答:在/usr/local/Cellar/ruby/2.4.1/bin/ruby
路徑下安裝 RVM
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
失敗蝎抽,提示command not found: gpg
胖腾,如何解決铝阐?
答:用 Homebrew 安裝 GnuPG :brew install gnupg gnupg2
安裝 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
安裝 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
這行文本復(fù)制到 .bash_profile
最后一行。