我如何安装imagemagick与自制软件? [英] How do I install imagemagick with homebrew?

查看:171
本文介绍了我如何安装imagemagick与自制软件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

   - >我试图在OSX Lion上安装Imagemagick,但有些内容不能按预期工作。 brew install imagemagick 

/ usr / local / git / bin / git
==>克隆https://github.com/adamv/ImageMagick.git
克隆到/ Users / klebershimabuku / Library / Caches / Homebrew / imagemagick - git ...
致命的:https:// github。没有找到com / adamv / ImageMagick.git / info / refs:你在服务器上运行git update-server-info?
错误:执行失败:git clone --depth 1 https://github.com/adamv/ImageMagick.git / Users / kleber / Library / Caches / Homebrew / imagemagick - git
code>

brew医生说:

   - > brew doctor 
我们无法检测到gcc 4.0.x.一些公式需要这个编译器。

在您的路径中找到了一些配置脚本,但没有在系统或Homebrew文件夹中找到。

`./configure`脚本经常查找* -config脚本以确定是否安装了软件包,以及编译和链接时使用哪些附加标志。

如果配置脚本覆盖系统或Homebrew提供的同名脚本,则在路径中添加其他脚本可能会将通过Homebrew安装的软件混淆。

/Users/kleber/.rvm/gems/ruby-1.9.2-p180@global/bin
passenger-config

设置DYLD_LIBARY_PATH可以中断动态链接。
您应该可以取消它。

是的,我已安装并运行XCode 4.1。

   - > brew更新
从http://github.com/mxcl/homebrew
*分支大师 - > FETCH_HEAD
已经是最新的。


解决方案

对我来说最快的解决方法是执行以下操作: / p>

  cd / usr / local 
git reset --hard FETCH_HEAD

然后重试 brew install imagemagick ,它正确地从新镜像中取出包,而不是adamv 。

如果这不起作用,请确保 / Library / Caches / Homebrew 不包含任何imagemagick文件或文件夹。删除它们,如果它。


I'm trying to install Imagemagick on OSX Lion but something is not working as expected.

-> 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 says:

-> 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.

And yes, I have XCode 4.1 installed and running.

-> brew update
From http://github.com/mxcl/homebrew
* branch            master     -> FETCH_HEAD
Already up-to-date.

解决方案

The quickest fix for me was doing the following:

cd /usr/local
git reset --hard FETCH_HEAD

Then I retried brew install imagemagick and it correctly pulled the package from the new mirror, instead of adamv.

If that does not work, ensure that /Library/Caches/Homebrew does not contain any imagemagick files or folders. Delete them if it does.

这篇关于我如何安装imagemagick与自制软件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆