本文主要是介绍zsh: command not found: rvm问题,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在Mac环境下安装rvm
Last login: Fri Aug 7 15:27:26 on ttys000
Holothurian-iMac ~ % ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
Holothurian-iMac ~ % rvm -v
zsh: command not found: rvm
Holothurian-iMac ~ % git clone https://github.com/rvm/rvm.git
Cloning into 'rvm'...
remote: Enumerating objects: 92, done.
remote: Counting objects: 100% (92/92), done.
remote: Compressing objects: 100% (62/62), done.
remote: Total 59450 (delta 57), reused 53 (delta 29), pack-reused 59358
Receiving objects: 100% (59450/59450), 20.07 MiB | 30.00 KiB/s, done.
Resolving deltas: 100% (38714/38714), done.
Holothurian-iMac ~ % pwd
/Users/holothurian
下载完之后、根据路径、到rvm文件夹下、 找到 /bin/rvm-installer中 rvm-installer双击、
Last login: Fri Aug 7 15:42:51 on ttys001
/Users/holothurian/rvm/binscripts/rvm-installer ; exit;
Holothurian-iMac ~ % /Users/holothurian/rvm/binscripts/rvm-installer ; exit;
Downloading https://github.com/rvm/rvm/archive/master.tar.gz
curl: (56) LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54Could not download 'https://github.com/rvm/rvm/archive/master.tar.gz'.curl returned status '56'.Downloading https://bitbucket.org/mpapis/rvm/get/master.tar.gz
Installing RVM to /Users/holothurian/.rvm/Adding rvm PATH line to /Users/holothurian/.profile /Users/holothurian/.mkshrc /Users/holothurian/.bashrc /Users/holothurian/.zshrc.Adding rvm loading line to /Users/holothurian/.profile /Users/holothurian/.bash_profile /Users/holothurian/.zlogin.
Installation of RVM in /Users/holothurian/.rvm/ is almost complete:* To start using RVM you need to run `source /Users/holothurian/.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之后、还需要配置环境变量
Holothurian-iMac ~ % vi ~/.bash_profile[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*Holothurian-iMac ~ % source ~/.rvm/scripts/rvm
查看当前版本、
Holothurian-iMac ~ % rvm -v
rvm 1.29.10 (master) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
Holothurian-iMac ~ %
这篇关于zsh: command not found: rvm问题的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!