我正在运行OS X并试图让Homebrew,Ruby和Git一起工作。我安装了所有东西,并试图解决宝石错误。
我遇到了imagemagick和rmagick无法协同工作的问题,所以我尝试了“Installing RMagick in Mac OS X Mountain Lion with Homebrew”中描述的解决方案。
现在,当我尝试做任何事情时,我收到以下错误。我该如何解决这个问题?
$ 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
答案 0 :(得分:0)
原来,公式中存在语法错误。我修好了解决方案。