2013-08-21 156 views
1

我是一个完全初学者,在rails和编程方面都是红宝石。我试图做一个月的轨道计划。 在对一些警告进行了一些研究之后,我开始搞乱了我的整个ruby和rails安装。我卸载rvm,红宝石和铁轨,显然我搞砸了一切。 直接打开一个新的终端给我一个错误rvm全新混装后重新安装

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

我试图卸载RVM,以及其他一切,想要从头开始,但与RVM红宝石的每一个新的安装启动和轨道它会导致同样的错误。

接下来的事情就是以下

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. 

有摆脱一切这就是连接的红宝石,导轨和RVM并从一开始就与全新安装一个良好的开端?我无法弄清楚/ etc/rvmrc在哪里,并且

能够得到一些建议是非常好的。我很想学习如何编程,但目前我还没有能够启动教程:(

非常感谢 马克

回答

0

,你遇到来自/用户在外壳的问题/ marcboehle/.profile或/Users/marcboehle/.bash_profile那些将包含RVM的指令,例如,以下是我的:。

brambook-PRO-2:〜$ BRAM更在〜/ .bash_profile 出口PATH = /用户/bram/.rvm/bin:/usr/local/mysql/bin:$PATH $ HOME/.rvm/scripts/rvm

你会想删除包含rvm的PATH项目。然后去这里:https://rvm.io/rvm/install

并按照说明,看看你得到什么。

+0

谢谢@Bramski,我找到了.bash_profile文件,但不知道现在该怎么做。这是在那里: [[-s“$ HOME/.rvm/scripts/rvm”]] && source“$ HOME/.rvm/scripts/rvm”#将RVM加载到shell会话中*作为函数* source /Users/marcboehle/.rvm/scripts/rvm ## #您以前的/Users/marcboehle/.bash_profile文件备份为/Users/marcboehle/.bash_profile.macports-saved_2013-08-08_at_11:46: 03 ## #在2013-08-08_at_11上添加#MacPorts安装程序:46:03:添加适用于MacPorts的适当PATH变量。 export PATH =/opt/local/bin:/ opt/local/sbin:$ PATH –