rvm新的重新安装后的总混乱

时间:2013-08-21 21:23:44

标签: ruby ruby-on-rails-3 path rvm uninstall

我是一个完整的初学者,在轨道和编程上都有ruby。我正在尝试做一个月的铁路计划。 在对一些警告进行一些研究之后,我开始弄乱我的整个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在哪里和

获得一些建议会很棒。我很想学习如何编程,但目前我甚至无法启动教程:(

非常感谢 马克

1 个答案:

答案 0 :(得分:0)

你来自/Users/marcboehle/.profile或/Users/marcboehle/.bash_profile的shell问题。那些将包含RVM的指令。例如,这是我的:

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

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

按照说明操作,看看你得到了什么。