0

我正在运行 OS X 并试图让 Homebrew、Ruby 和 Git 一起工作。我安装了所有东西,并试图解决 gem 错误。

我遇到了 imagemagick 和 rmagick 不能一起工作的问题,所以我尝试了“使用 Homebrew 在 Mac OS X Mountain Lion 中安装 RMagick ”中描述的解决方案。

现在,当我尝试做任何事情时出现以下错误。我该如何解决这个问题?

$ brew doctor
Error: /usr/local/Library/Formula/imagemagick.rb:99: syntax error, unexpected $end,    expecting kEND
Please report this bug:
    https://github.com/mxcl/homebrew/wiki/troubleshooting
 /usr/local/Library/Homebrew/formulary.rb:40:in `require'
 /usr/local/Library/Homebrew/formulary.rb:40:in `klass'
 /usr/local/Library/Homebrew/formulary.rb:90:in `get_formula'
 /usr/local/Library/Homebrew/formulary.rb:175:in `factory'
 /usr/local/Library/Homebrew/formula.rb:404:in `factory'
 /usr/local/Library/Homebrew/formula.rb:340:in `each'
 /usr/local/Library/Homebrew/formula.rb:338:in `each'
 /usr/local/Library/Homebrew/cmd/doctor.rb:814:in `check_for_linked_keg_only_brews'
 /usr/local/Library/Homebrew/cmd/doctor.rb:1091:in `send'
 /usr/local/Library/Homebrew/cmd/doctor.rb:1091:in `doctor'
 /usr/local/Library/Homebrew/cmd/doctor.rb:1090:in `each'
 /usr/local/Library/Homebrew/cmd/doctor.rb:1090:in `doctor'
 /usr/local/Library/brew.rb:95:in `send'
 /usr/local/Library/brew.rb:95
4

1 回答 1

0

原来公式中有语法错误。我修复了它并且解决方案有效。

于 2013-08-08T16:36:17.547 回答