2014-06-10 252 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'应该摆脱这个问题