本文主要是介绍问题:zsh: command not found: rvm,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
第一步下载rvm
git clone https://github.com/rvm/rvm.git
➜ ~ git clone https://github.com/rvm/rvm.git
Cloning into 'rvm'...
remote: Enumerating objects: 15, done.
remote: Counting objects: 100% (15/15), done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 59819 (delta 5), reused 0 (delta 0), pack-reused 59804
Receiving objects: 100% (59819/59819), 20.74 MiB | 52.00 KiB/s, done.
Resolving deltas: 100% (38696/38696), done.
➜ ~ cd rvm
➜ rvm git:(master) ls
CHANGELOG.md README.md config gem-owners.sh lib rvm-test-rvm1
CONTRIBUTING.md Rakefile contrib gemsets man scripts
FORMATTING.md VERSION docs help patches sign-releases.sh
HACKING.md bin examples hooks patchsets update-remote.sh
LICENSE binscripts gem-cache install rvm-test update-truffleruby.rb
➜ rvm git:(master) cd bin
➜ bin git:(master) pwd
/Users/air/rvm/bin
➜ bin git:(master) ls
ruby-rvm-env rvm-auto-ruby rvm-installer rvm-shebang-ruby rvm-smile
rvm rvm-exec rvm-prompt rvm-shell rvmsudo
➜ bin git:(master) open .
➜ bin git:(master)
第二步安装rvm
打开rvm/bin文件夹,双击rvm-installer
Last login: Tue Feb 2 11:19:21 on ttys000
/Users/air/rvm/binscripts/rvm-installer ; exit;
➜ ~ /Users/air/rvm/binscripts/rvm-installer ; exit;
Downloading https://github.com/rvm/rvm/archive/master.tar.gz
Installing RVM to /Users/air/.rvm/Adding rvm PATH line to /Users/air/.profile /Users/air/.mkshrc /Users/air/.bashrc /Users/air/.zshrc.Adding rvm loading line to /Users/air/.profile /Users/air/.bash_profile /Users/air/.zlogin.
Installation of RVM in /Users/air/.rvm/ is almost complete:* To start using RVM you need to run `source /Users/air/.rvm/scripts/rvm`in all your open shell windows, in rare cases you need to reopen all shell windows.
Thanks for installing RVM 🙏
Please consider donating to our open collective to help us maintain RVM.👉 Donate: https://opencollective.com/rvm/donate[进程已完成]
启用rvm指令
source ~/.rvm/scripts/rvm
➜ ~ source ~/.rvm/scripts/rvm
➜ ~ rvm -v
rvm 1.29.12-next (master) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
这篇关于问题:zsh: command not found: rvm的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!