在Mac OSX 10.9.2上未链接libpng [英] libpng not linked on Mac OSX 10.9.2

查看:308
本文介绍了在Mac OSX 10.9.2上未链接libpng的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac上安装了matrix2png,并在上周安装其他图像处理工具"circos"之前毫无问题地使用了它. Circos要求我安装其他版本的libpng,而我做到了.在那之后,我不再能够运行matrix2png,这给了我以下错误.我认为旧的ligpnb已不再链接.有人知道如何解决此错误吗? -感谢您的帮助.

I installed matrix2png on my Mac and had used it without problem before last week when I installed another image manipulating tool "circos". Circos requires me to install a different version of libpng, and I did. After that, I am no longer able to run matrix2png, which gives me the following error. I think the old ligpnb is not linked any more. Does anyone know how to fix this error? - appreciate your help.

dyld: Library not loaded: /usr/local/lib/libpng15.15.dylib
  Referenced from: /usr/local/bin/matrix2png
  Reason: image not found

推荐答案

那一步解决了我的问题:

Those step solve my problem:

brew versions libpng

您将看到某些版本的libpng,但不幸的是没有找到1.5.15,因此接下来您应该安装1.5.18.

You will see some versions of libpng, but unfortunately not 1.5.15, so next you should install 1.5.18.

git checkout 7bec702 Library/Formula/libpng.rb
brew install libpng

您将找到1.5.18版和其他一些版本.

You'll will find version 1.5.18 and some another versions.

ln -s /usr/local/Cellar/libpng/1.5.18/lib/libpng15.15.dylib /usr/local/lib/libpng15.15.dylib`

请参见 https://github.com/Homebrew/homebrew-php/issues/1055

有关安装某些特定冲泡公式版本的更多信息,请参见 https://coderwall.com/p/lqphzg .

Some more info on installing certain versions of brew formulas can be found at https://coderwall.com/p/lqphzg.

这篇关于在Mac OSX 10.9.2上未链接libpng的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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