OS X上的rbenv安装错误?

时间:2014-06-10 20:34:12

标签: ruby macos homebrew rbenv

我刚刚升级了Mac并使用Time Machine备份更新了它,该备份具有Rails,Pow和iMagick的功能齐全的Ruby包。由于某种原因,一切似乎都被打破了。

我正在尝试使用rbenv重新安装Ruby,并在使用rbenv install 2.1.2时收到以下消息:

/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

我非常感谢您就如何解决问题所做的任何建议。

1 个答案:

答案 0 :(得分:1)

运行'brew prune'应该摆脱这个问题