2013-08-21 197 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 –