美文网首页
IOS -bash: rvm: command not foun

IOS -bash: rvm: command not foun

作者: 明似水 | 来源:发表于2019-03-16 22:22 被阅读0次

自从升级了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]

相关文章

网友评论

      本文标题:IOS -bash: rvm: command not foun

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