【发布时间】:2011-10-26 14:36:27
【问题描述】:
我正在尝试在 OSX Lion 上安装 Imagemagick,但没有按预期工作。
-> brew install imagemagick
/usr/local/git/bin/git
==> Cloning https://github.com/adamv/ImageMagick.git
Cloning into /Users/klebershimabuku/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/kleber/Library/Caches/Homebrew/imagemagick--git
酿酒医生说:
-> brew doctor
We couldn't detect gcc 4.0.x. Some formulae require this compiler.
Some "config" scripts were found in your path, but not in system or Homebrew folders.
`./configure` scripts often look for *-config scripts to determine if software packagesare installed, and what additional flags to use when compiling and linking.
Having additional scripts in your path can confuse software installed via Homebrew if the config script overrides a system or Homebrew provided script of the same name.
/Users/kleber/.rvm/gems/ruby-1.9.2-p180@global/bin
passenger-config
Setting DYLD_LIBARY_PATH can break dynamic linking.
You should probably unset it.
是的,我已经安装并运行了 XCode 4.1。
-> brew update
From http://github.com/mxcl/homebrew
* branch master -> FETCH_HEAD
Already up-to-date.
【问题讨论】:
-
你需要
brew update;我们现在为 ImageMagick 使用不同的镜像,而 adamv 已经消失了。 -
我已经 brew update 了。它已经是最新的了。
-
您可能需要手动更新,我们最近遇到问题:github.com/mxcl/homebrew/…
-
升级到 Lion 后是否重新安装了 xcode?如果您事先安装了它,则该安装不再有效。我有同样的问题,虽然不是 imagemagick。
-
使用那里提到的脚本解决了。谢谢!
标签: git gcc homebrew osx-lion gcc4