Mac OSX Snow Leopard上的ImageMagick。有没有办法让它编译和运行? [英] ImageMagick on Mac OSX Snow Leopard. Is there any way to get it to compile and run?

查看:211
本文介绍了Mac OSX Snow Leopard上的ImageMagick。有没有办法让它编译和运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎我在Snow Leopard上运行标准Unix的东西比任何其他平台都要困难 - 包括Windows cygwin

It seems that I have more trouble getting standard Unix things to run on Snow Leopard than any other platform--including Windows cygwin

在过去的几天里,我一直试图让ImageMagick在Snow Leopard上运行。

For the past couple of days, I've been trying to get ImageMagick to run on Snow Leopard.

最明显的方式,Mac Ports,失败:

The most obvious way, Mac Ports, fails:

tppllc-Mac-Pro:ImageMagick-sl swirsky$ sudo port install imagemagick
--->  Computing dependencies for p5-locale-gettext
--->  Configuring p5-locale-gettext
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-locale-gettext/work/gettext-1.05" && /opt/local/bin/perl Makefile.PL INSTALLDIRS=vendor " returned error 2
Command output: checking for gettext... no
checking for gettext in -I/opt/local/include -arch i386 -L/opt/local/lib -lintl...gettext function not found. Please install libintl at Makefile.PL line 18.
 no

Error: Unable to upgrade port: 1
Error: Unable to execute port: upgrade xorg-libXt failed
Before reporting a bug, first run the command again with the -d flag to get complete output.
tppllc-Mac-Pro:ImageMagick-sl swirsky$ 

不想再花两个我弄清楚为什么我的libintl没有gettext函数,我尝试了另一种方法:这里提到的脚本: http://github.com/masterkain/ImageMagick-sl

Not wanting to spend another two days figuring out why my libintl doesn't have a "gettext" function, I tried a different route: the script mentioned here: http://github.com/masterkain/ImageMagick-sl

此脚本独立于MacPorts问题下载并安装ImageMagic

This script downloads and installs an ImageMagic independently of MacPorts issues

tppllc-Mac-Pro:ImageMagick-sl swirsky$ /usr/local/bin/convert
dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib
  Referenced from: /opt/local/lib/libfontconfig.1.dylib
  Reason: Incompatible library version: libfontconfig.1.dylib requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
Trace/BPT trap

它会下载所有内容并编译得很好,但是当我尝试运行它时会失败,并显示上面的消息。

It downloads everything and compiles fine, but fails when I try to run it, with the message above.

所以现在我是两个离ImageMagick只有几步之遥,试图在我的机器上安装一个更新的libiconv。

So now I'm two steps away from ImageMagick, trying to get a newer libiconv on my machine.

我下载了最新的libiconv,编译并构建它。我把结果库放在/ opt / local / lib中,我仍然得到相同的错误信息:

I downloaded the latest libiconv, compiled and built it. I put the resulting library in /opt/local/lib, and I still get the same error message:

tppllc-Mac-Pro:.libs swirsky$ sudo mv libiconv.2.dylib /opt/local/lib/libiconv.2.dylib
tppllc-Mac-Pro:.libs swirsky$ convert
dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib
  Referenced from: /opt/local/lib/libfontconfig.1.dylib
  Reason: Incompatible library version: libfontconfig.1.dylib requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
Trace/BPT trap

现在这里有一些有趣的东西。错误消息显示它正在/opt/local/lib/libiconv.2.dylib中查找。

Now here's something interesting. The error message shows it's looking in /opt/local/lib/libiconv.2.dylib.

otools -L表明这确实实现了8.0.0:

otools -L shows that this does implement 8.0.0:

tppllc-Mac-Pro:.libs swirsky$ otool -L /opt/local/lib/libiconv.2.dylib
/opt/local/lib/libiconv.2.dylib:
    /usr/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.0.0)
tppllc-Mac-Pro:.libs swirsky$ 

而且,为了更好的衡量,我设置了DYLD_LIBRARY_PATH确保这个目录是动态库的目录。

And, for good measure, I set the DYLD_LIBRARY_PATH to make sure this directory is the one for dynamic libraries.

所以即使我有一个提供8.0.0的库,它也被视为7.0.0 !有什么想法会发生这种情况吗?

So even though I do have a library that provides 8.0.0, it's being seen as 7.0.0! Any ideas why this would happen?

所以这是我的问题:是否有可能让ImageMagick在OSX Snow Leopard上运行?是否有任何二进制发行版都有静态库,所以我不必担心这些问题/

So here's my question: Is it possible to get ImageMagick to run on OSX Snow Leopard? Are there any binary distributions that have static libraries baked in so I don't have to worry about these issue/

推荐答案

我的谷歌出现了一些点击,第一个或第二个有一个链接到二进制文件

My google showed up a few hits, and the first or second one had a link to the binary.

这篇关于Mac OSX Snow Leopard上的ImageMagick。有没有办法让它编译和运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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