无法使用Brew在Mac上安装Imagemagick

时间:2011-09-15 16:10:04

标签: imagemagick

我在Mac OS Lion上使用Brew v0.8。

当我尝试安装Imagemagick时:

MacBook-kir:rails kir$ brew install imagemagick
/usr/bin/git
==> Cloning https://github.com/adamv/ImageMagick.git
Cloning into /Users/kir/Library/Caches/Homebrew/imagemagick--git...
fatal: https://github.com/adamv/ImageMagick.git/info/refs not found: did you run git update-server-info on the server?
Error: Failure while executing: git clone --depth 1 https://github.com/adamv/ImageMagick.git /Users/kir/Library/Caches/Homebrew/imagemagick--git

如何安装Imagemagick?

2 个答案:

答案 0 :(得分:3)

您需要更新brew安装并重置存储库:

cd /usr/local
brew update
git reset --hard FETCH_HEAD

然后你可以运行:

brew install imagemagick

答案 1 :(得分:0)

可能是Brew下载ImageMagick的镜像被移动了。

尝试再次运行brew update然后再brew install imagemagick