我在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?
答案 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