启动终端或使用 RVM 时,我不断收到此错误。我已经尝试删除 PATH ,但我仍然一无所获。
cat: /Users/admin/.rvm/VERSION: No such file or directory
Warning! PATH is not properly set up, '/Users/admin/.rvm/gems/ruby-2.0.0-p247/bin' is not available,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
to fix temporarily in this shell session run: 'rvm use ruby-2.0.0-p247'.
-bash: /Users/admin/.rvm/scripts/base: No such file or directory
-bash: /Users/admin/.rvm/scripts/help: No such file or directory
我的 ~/.bash_profile,为简洁而编辑:
source ~/.rvm/scripts/rvm
PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin