我继续使用以下命令安装ImageMagick:
1. $ brew update
2. $ brew uninstall imagemagick
3. $ brew install imagemagick
引发以下错误:
错误:版本'3'应为字符串
请报告此错误:
https://github.com/mxcl/homebrew/wiki/troubleshooting
/usr/local/Library/Homebrew/formula_support.rb:44:in `detect_version'
/usr/local/Library/Homebrew/formula_support.rb:65:in `version'
/usr/local/Library/Formula/imagemagick.rb:61
/usr/local/Library/Homebrew/formula.rb:666:in `instance_eval'
/usr/local/Library/Homebrew/formula.rb:666:in `bottle'
/usr/local/Library/Formula/imagemagick.rb:60
/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:410:in `factory'
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in `formulae'
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in `map'
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in `formulae'
/usr/local/Library/Homebrew/cmd/install.rb:22:in `install'
/usr/local/Library/brew.rb:95:in `send'
/usr/local/Library/brew.rb:95
如何解决此问题?
答案 0 :(得分:1)
这是公式中的错误。您应该向Homebrew开发人员报告它,如果它尚未修复,它将被修复。
答案 1 :(得分:1)
我在下面的链接中找到了帮助。只需按照说明操作: