我在尝试安装RVM后收到错误消息,我需要帮助弄清楚为什么我收到此消息以及如何解决它。当我打开终端窗口时,这是我收到的消息:
-bash: /etc/profile.d/rvm.sh: No such file or directory
我在主目录中有一个bash文件夹,但是我看不到/ etc / profile。我已经卸载了RVM,但是这个错误信息仍然显示,我目前正在运行Ruby 1.8.7。
运行rvm implode
后,我收到以下消息:
Note you may need to manually remove /etc/rvmrc and ~/.rvmrc if they exist still.
Please check all .bashrc .bash_profile .profile and .zshrc for RVM source lines and delete
or comment out if this was a Per-User installation.
Also make sure to remove `rvm` group if this was a system installation.
Finally it might help to relogin / restart if you want to have fresh environment
如果有人对此有任何想法或见解,我会很高兴听到你的想法,我有点停滞,所以任何建议都会有所帮助。谢谢。
答案 0 :(得分:0)
尝试从终端中删除rvm
$ rm /etc/profile.d/rvm.sh
$ rm ~/.rvmrc
然后检查您的bash个人资料
$ open bash_profile
$ open .bashrc
删除任何包含rvm的行。