Tesseract不兼容的lib libpng16.16.dylib brew [英] Tesseract Incompatible lib libpng16.16.dylib brew

查看:237
本文介绍了Tesseract不兼容的lib libpng16.16.dylib brew的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

dyld: Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib

Referenced from: /usr/local/opt/leptonica/lib/liblept.5.dylib

Reason: Incompatible library version: liblept.5.dylib requires version 54.0.0 or later, but libpng16.16.dylib provides version 29.0.0

Abort trap: 6

尝试重新安装和升级brew,重新安装tesseract,重新安装leptonica,删除高速缓存,删除libs,强制下载新文件,但无济于事.不知道这是酿造问题还是leptonica或libpng问题.这是高山脉的陷阱吗? High Sierra libpng与安装了相同冲泡器的任何leptonica不兼容吗?在这种情况下,这是Brew的错. Mac Port安装会留下相同的错误. 此处类似,但没有解决方案,注释日期为2016年 http://eeko-amaryllis.hatenablog.com/entry/2016/07/28/181303

Have tried brew reinstall and upgrade, and tesseract reinstall, leptonica reinstall, deleted cache, deleted libs forcing new to be downloaded, nothing works. Not sure if this is a brew problem or leptonica, or the libpng thing. Is this a High Sierra gotcha? High Sierra libpng not compatible with whatever leptonica the same brew is installing? In which case that is brew's fault. Mac Port install leaves same error. Something similar here, but no solution, note date is 2016 http://eeko-amaryllis.hatenablog.com/entry/2016/07/28/181303

推荐答案

    用引号
  • google"liblept.5.dylib需要版本"
  • 为您提供三个结果,第一个是上述查询,但是第二个是调用外部命令tesseract导致旧版本的..." https://fr.mathworks.com/matlabcentral/answers/313225调用外部命令tesseract导致旧版本的tesseract被执行 那里的答案是指DYLD_LIBRARY_PATH 从终端窗口 echo $DYLD_LIBRARY_PATH /Applications/GIMP.app/Contents/Resources/lib:/Users/your_name_here/Downloads/magic/ImageMagick-7.0.7/lib/ 您可以检查库中是否存在该dyld的较早版本,但是我知道我有一段时间没有更新GIMP了,并且发现它使用了图像库也就不足为奇了.我确实通过查看该lib目录来确认该lib是否存在,已更新GIMP,检查ImageMagic是否未使用相同的lib,并且由于新GIMP并未更新DYD_LIBRARY_PATH引用,因此仍然必须删除它.
    • google "liblept.5.dylib requires version" in quotes
    • gives you three results, the first being the above query, but the second is "Calling external command tesseract resulted in old version of ... " https://fr.mathworks.com/matlabcentral/answers/313225-calling-external-command-tesseract-resulted-in-old-version-of-tesseract-being-executed the answer there refers to DYLD_LIBRARY_PATH from terminal window echo $DYLD_LIBRARY_PATH /Applications/GIMP.app/Contents/Resources/lib:/Users/your_name_here/Downloads/magic/ImageMagick-7.0.7/lib/ You can check the libs for the offending older version of the dyld, but I knew I hadn't updated GIMP in a while and it wouldn't be surprising to find it used an imaging library. I did confirm by looking at that lib directory the lib was there, updated GIMP, checked ImageMagic wasn't using same lib, and still had to remove the DYD_LIBRARY_PATH reference as new GIMP didn't update it.
    • 这篇关于Tesseract不兼容的lib libpng16.16.dylib brew的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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