如何重新安装RVM

问题描述 投票:1回答:1

我正在尝试做一个月的Rails程序。在研究了一些警告之后,我损坏了Ruby和Rails的安装。我卸载了RVM,Ruby和Rails并弄乱了所有内容。

直接打开新终端会给我:

Last login: Wed Aug 21 23:04:17 on ttys001
-bash: /Users/marcboehle/.rvm/scripts/rvm: No such file or directory

我试图卸载RVM以及所有其他内容,并希望从头开始,但是每次安装RVM,Ruby和Rails都会导致相同的错误。

接下来是:

Upgrading the RVM installation in /usr/local/rvm/
Can not automatically remove lines with 'rvm_autolibs_flag=' from '/etc/rvmrc', please clean it manually.
Found 4800 directories with mode different then '775', use `--debug` to see the list, prefix the command with 'rvmsudo' to fix it, if the situation persist report a bug.
Found 18220 files with mode different then '664' or '775', use `--debug` to see the list, prefix the command with 'rvmsudo' to fix it, if the situation persist report a bug.
Upgrade of RVM in /usr/local/rvm/ is complete.




lab037:~ username$ rvm install
Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-1.9.2-p320/bin' is not at first place,
     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-1.9.2-p320'.
Can not use or install 'all' rubies.

是否有一种很好的方法来摆脱与Ruby,Rails和RVM相关的一切,并从头开始进行全新安装?我不知道/etc/rvmrc在哪里。

ruby-on-rails ruby path rvm uninstall
1个回答
0
投票

您遇到的外壳问题来自/Users/marcboehle/.profile或/Users/marcboehle/.bash_profile。这些将包含RVM的指令。例如,这是我的:

brambook-pro-2:〜更多bram $〜/ .bash_profile导出PATH = / Users / bram / .rvm / bin:/ usr / local / mysql / bin:$ PATH$ HOME / .rvm / scripts / rvm

您将要删除包含rvm的PATH项。然后转到此处:https://rvm.io/rvm/install

并按照说明进行操作,然后看得到什么。

© www.soinside.com 2019 - 2024. All rights reserved.