【问题标题】:Error installing imagemagick with homebrew使用自制软件安装 imagemagick 时出错
【发布时间】:2012-08-07 04:57:34
【问题描述】:

我正在尝试通过 home brew 安装 imagemagick,但出现以下错误:

Error: Failed executing: make install (imagemagick.rb:97)
These existing issues may help you:
https://github.com/mxcl/homebrew/issues/13618
Otherwise, this may help you fix or report the issue:
https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist

我已经完全卸载了xcode并重新安装了它和命令行工具,它仍然抛出这个错误。

brew doctor 正在引发一些警告:

Warning: /Library/Frameworks/Mono.framework detected
This can be picked up by CMake's build system and likely cause the build to
fail. You may need to move this file out of the way to compile CMake.
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
/usr/local/lib/libcdt.5.dylib    /usr/local/lib/libcgraph.6.dylib /usr/local/lib/libgraph.5.dylib    /usr/local/lib/libgvc.6.dylib    /usr/local/lib/libgvpr.2.dylib    /usr/local/lib/libpathplan.4.dylib     /usr/local/lib/libxdot.4.dylib
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .pc files:
/usr/local/lib/pkgconfig/libcdt.pc    /usr/local/lib/pkgconfig/libcgraph.pc    /usr/local/lib/pkgconfig/libgraph.pc    /usr/local/lib/pkgconfig/libgvc.pc    /usr/local/lib/pkgconfig/libgvpr.pc    /usr/local/lib/pkgconfig/libpathplan.pc    /usr/local/lib/pkgconfig/libxdot.pc
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:

2to3
pkg-config

Consider amending your PATH so that /usr/local/bin
occurs before /usr/bin in your PATH.
Warning: You have a non-Homebrew 'pkg-config' in your PATH:
/usr/bin/pkg-config => /Library/Frameworks/Mono.framework/Versions/2.10.9/bin/pkg-config

This was most likely created by the Mono installer. `./configure` may
have problems finding brew-installed packages using this other pkg-config.

您认为其中任何一个都可能是问题所在吗?

感谢您的帮助!

编辑:

我正在运行 Lion。 Brew 是最新的。

【问题讨论】:

  • 没有来自 brew doctor 的单声道警告会让我担心。就个人而言,我会解决 PATH 问题,看看你是否仍然遇到同样的失败。
  • @remear 我该怎么做?
  • 找出 ~/.bashrc、~/.bash_profile、~/.profile 或 ~/.zshrc 中的哪一个,看看其中是否有涉及设置 PATH 的语句。如果它已经在那里,您将想要放置或移动,“/usr/local/bin”位于路径的开头。所以,它最终看起来像 export PATH=/usr/local/bin:$PATH 或者它可能看起来像 export PATH=/usr/local/bin:/path/to/more/stuff (似乎不能获得正确的格式 =/ )

标签: imagemagick homebrew


【解决方案1】:

好吧,我昨天遇到了同样的问题,在我的情况下,解决方案令人惊讶地导致在 Uninstalling Mono on Mac OS X 之后卸载 Mono 框架,删除所有放置意外 dynlib 和 .pc 文件的包(在我的情况下是保险丝相关)。

但是,我确实根据自制软件的意愿设置了 PATH,将/usr/local/bin 修改为 PATH 环境变量。

【讨论】:

  • 我不能说这行得通,因为我不愿意卸载单声道,但它似乎对其他人有用,所以我会接受这个答案。
猜你喜欢
  • 1970-01-01
  • 2011-10-26
  • 1970-01-01
  • 1970-01-01
  • 2012-07-05
  • 2022-07-27
  • 1970-01-01
  • 2023-01-26
  • 1970-01-01
相关资源
最近更新 更多