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

4

1 回答 1

0

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

brambook-pro-2:~ bram$ more ~/.bash_profile
export PATH=/Users/bram/.rvm/bin:/usr/local/mysql/bin:$PATH
$HOME/.rvm/scripts/rvm

您需要删除PATH包含 RVM 的项目,然后按照安装说明进行操作,看看您会得到什么。

于 2013-08-21T21:55:54.023 回答