无法使用自制软件安装Ruby

无法使用自制软件安装Ruby,ruby,homebrew,Ruby,Homebrew,我正在尝试使用自制软件安装Ruby。当我运行brew安装ruby时 Warning: The post-install step did not complete successfully You can try again using 'brew postinstall ruby' 当我试着这么做的时候,它说 Error: Directory not empty - /usr/local/Cellar/ruby/2.1.2_1/lib/ruby/gems 所以我试着删除那个文件夹的内容,现

我正在尝试使用自制软件安装Ruby。当我运行
brew安装ruby时

Warning: The post-install step did not complete successfully
You can try again using 'brew postinstall ruby'
当我试着这么做的时候,它说

Error: Directory not empty - /usr/local/Cellar/ruby/2.1.2_1/lib/ruby/gems
所以我试着删除那个文件夹的内容,现在它说

Error: undefined method `symlink' for #<Pathname:/usr/local/Cellar/ruby/2.1.2_1/lib/ruby/gems>
错误:未定义的方法“symlink”#

有人知道为什么会发生这种情况吗?

您可以在此处跟踪问题或跟踪当前正在讨论的讨论