自从升级了Mac系统后,同时也升级到了Xcode10.1,明显感觉Xcode运行慢了。
-bash: rvm: command not found
竟然找不到rvm环境,郁闷了。
后来想到,上周末重装系统后,本地的安装环境全都丢失。
可以查看这篇文章:
https://www.jianshu.com/p/f5591af6859d
重装rvm:
- 在终端控制台命令:
$ curl -sSL https://get.rvm.io | bash -s stable 之后按回车键
-bash: rvm: command not found
123:~ humingbo$ curl -L https://get.rvm.io | bash -s stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 194 100 194 0 0 128 0 0:00:01 0:00:01 --:--:-- 128
100 24173 100 24173 0 0 1065 0 0:00:22 0:00:22 --:--:-- 4950
Downloading https://github.com/rvm/rvm/archive/1.29.7.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.29.7/1.29.7.tar.gz.asc
Found PGP signature at: 'https://github.com/rvm/rvm/releases/download/1.29.7/1.29.7.tar.gz.asc',
but no GPG software exists to validate it, skipping.
Upgrading the RVM installation in /Users/humingbo/.rvm/
RVM PATH line found in /Users/humingbo/.mkshrc /Users/humingbo/.profile /Users/humingbo/.bashrc /Users/humingbo/.zshrc.
RVM sourcing line found in /Users/humingbo/.profile /Users/humingbo/.bash_profile /Users/humingbo/.zlogin.
Upgrade of RVM in /Users/humingbo/.rvm/ is complete.
* No new notes to display.
安装了这样,用rvm -v去查看还是:
-bash: rvm: command not found
然后用这个命令:
source ~/.rvm/scripts/rvm
再用rvm -v去查看:
123:~ humingbo$ rvm -v
rvm 1.29.7 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]