ImageMagick和OS X Lion麻烦 [英] ImageMagick and OS X Lion trouble

查看:137
本文介绍了ImageMagick和OS X Lion麻烦的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[edit] 当我发现我的一个问题是对ImageMagick的依赖时,我正在解决我的开发环境问题,因为它是我的应用程序的重要部分。

[edit] I was troubleshooting problems with my development environment when I noticed one of my problems was the dependency on ImageMagick, since it's a vital part of my app.

升级到OS X Lion(10.7)后我不再使用ImageMagick,然后尝试使用MacPorts再次安装,但没有成功,我从源代码安装,安装不是很成功,我已经转换和识别,但它输出错误消息,我不幸没有了,我通过一些奇怪的原因决定删除我的所有MacPort库并开始使用Homebrew,我尝试安装ImageMagick,它安装确定但是当我尝试使用它时会抛出此错误

After upgrading to OS X Lion (10.7) i no longer had ImageMagick available, i then tried installing again using MacPorts without success, i then installed from source, and the install wasn't very successfully i had convert and identify but it output error messages that i unfortunately dont have anymore, i by some strange reason decided to remove all of my MacPort libraries and started using Homebrew, i tried installing ImageMagick, it installs OK but when i try to use it throws this error

dyld: Library not loaded: /opt/local/lib/libltdl.7.dylib
  Referenced from: /usr/local/bin/convert
  Reason: Incompatible library version: convert requires version 11.0.0 or later, but libltdl.7.dylib provides version 10.0.0
Trace/BPT trap: 5

我在线阅读但我不清楚这里发生了什么,我发现libltdl被称为libtool,我显然需要将其升级到更新的版本,但我没有找到任何关于如何或在何处找到源的指示,或者是否应该已经由homebrew处理,以及为什么它没有。

I read online but i have no clue on whats going on here, i found that libltdl is called libtool, and that i obviously need to upgrade it to a newer version, but i havent found any indication of how or where to find the source, or if this should be already be handled by homebrew and why it hasn't.

我尝试使用此安装程序再次从源代码安装ImageMagick脚本https://github.com/masterkain/ImageMagick-sl 但是当我尝试使用转换它会引发类似的错误。

I tried installing ImageMagick again from source using this installer script https://github.com/masterkain/ImageMagick-sl but when i try to use convert it throws a similar error.

$ convert gnome.jpg -resize 50% gnome_.jpg
dyld: Library not loaded: /opt/local/lib/libltdl.7.dylib
  Referenced from: /usr/local/bin/convert
  Reason: Incompatible library version: convert requires version 11.0.0 or later, but libltdl.7.dylib provides version 10.0.0
Trace/BPT trap: 5

$ which convert
/usr/local/bin/convert

我能做些什么来解决我的问题?

What can i do to solve my problem?

推荐答案

我也升级到Lion并丢失了ImageMagick,虽然我遇到了不同的错误。

I also upgraded to Lion and lost ImageMagick, although i'm getting different errors.

i在imagemagick.org上找到了 Lion发行版。不是DYLD_LIBRARY_PATH环境变量的忠实粉丝,但是它可以工作。

i found a Lion distribution on imagemagick.org. not a big fan of the DYLD_LIBRARY_PATH environment variable but it works.

确定没问题。我刚刚下载了ImageMagick源并重新编译:

ok scratch that. i just downloaded the ImageMagick source and re-compiled:

cd /tmp
curl -OL ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
tar -xzf ImageMagick.tar.gz
cd ImageMagick-6.7.2-7/
./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --disable-openmp --with-gs-font-dir=/usr/local/share/ghostscript/fonts
make
sudo make install

这篇关于ImageMagick和OS X Lion麻烦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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