2014-06-10 243 views
0

我剛剛升級了我的Mac並使用Time Machine備份進行了更新,該備份具有Rails,Pow和iMagick的全功能Ruby包。出於某種原因,一切似乎都被打破了。rbenv在OS X上安裝錯誤?

我試圖用rbenv install 2.1.2時重新安裝使用紅寶石和rbenv收到以下消息:

/usr/local/Cellar/rbenv/0.4.0/libexec/rbenv-hooks: line 32: cd: ../../../Cellar/rbenv-default-gems/1.0.0/etc/rbenv.d/install: No such file or directory 
/usr/local/Cellar/rbenv/0.4.0/libexec/rbenv-hooks: line 32: cd: ../../../Cellar/rbenv-default-gems/1.0.0/etc/rbenv.d/install: No such file or directory 
/usr/local/Cellar/rbenv/0.4.0/libexec/rbenv-hooks: line 32: cd: ../../../Cellar/rbenv-default-gems/1.0.0/etc/rbenv.d/install: No such file or directory 
/usr/local/Cellar/rbenv/0.4.0/libexec/rbenv-hooks: line 32: cd: ../../../Cellar/rbenv-default-gems/1.0.0/etc/rbenv.d/install: No such file or directory 

上我能做些什麼來解決這個問題的任何意見將非常感謝。

+0

文件是否真的存在。在不同情況下我有這樣的事情,結果證明文件有「錯誤」的所有者。 –

+0

不允許該目錄不存在。我在安裝命令 –

+0

之前運行'brew install rbenv ruby​​-build rbenv-gem-rehash'運行'brew doctor'時會發生什麼情況? – Anthony

回答

1

運行'brew prune'應該擺脫這個問題