dyld:在终端中运行命令时出现库未加载错误
在终端中运行某些命令时,我收到以下错误消息
dyld: Library not loaded: /opt/local/lib/libjpeg.62.dylib
Referenced from: /opt/local//lib/libTIFF.dylib
Reason: no suitable image found. Did find:
/opt/local//lib/libjpeg.62.dylib: can't map
/opt/local/lib/libjpeg.62.dylib: can't map
Trace/BPT trap
我的 xcode 是最新的。
When running some commands in the terminal, I get the following error message
dyld: Library not loaded: /opt/local/lib/libjpeg.62.dylib
Referenced from: /opt/local//lib/libTIFF.dylib
Reason: no suitable image found. Did find:
/opt/local//lib/libjpeg.62.dylib: can't map
/opt/local/lib/libjpeg.62.dylib: can't map
Trace/BPT trap
My xcode is up to date.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
当您的路径开始 /opt/local 时,我假设您正在使用 macports
如果是这样,我认为您至少需要执行 sudo 端口 selfupdate,因为当前 tiff 端口依赖于 /libjpeg.7.dylib。
如果 macports 是在 Leopard 或更早版本下安装的,则可能需要完全重新安装
As your paths begin /opt/local I assume you are using macports
If so I think you need to at least do a sudo port selfupdate as the current tiff port depends on /libjpeg.7.dylib.
Possible a complete reinstall is needed if the macports was installed under Leopard or earlier
完成后,
不要忘记升级
现有端口。比重新安装一切要好得多:-)
After you do your
don't forget to do a
to upgrade your existing ports. Much better than reinstalling everything :-)
在我使用 macports 的 Leopard 机器上,
libsdl_image
正在寻找这个未安装的 jpeg 库。jpeg6b
端口包含它,但位于不同的路径 (/opt/local/lib/jpeg6b/lib/libjpeg.62.dylib
)。我通过将 libsdl_image 从 1.2.8_0 升级到 1.2.10_2 来修复它,并使问题消失。
On my Leopard machine using macports,
libsdl_image
was looking for this non-installed jpeg lib. Thejpeg6b
port includes it, but at a different path (/opt/local/lib/jpeg6b/lib/libjpeg.62.dylib
). I fixed it by doingwhich upgraded libsdl_image from 1.2.8_0 to 1.2.10_2 and made the problem go away.
我也有同样的问题。除了 Snow Leopard,我从来没有跑过其他任何东西。我尝试了各种方法并花了大约 10 个小时试图解决这个问题,但没有成功。
我最终完全删除了 macports 并重新安装了它。
这就是我所做的:
首先我得到了所有已安装端口的列表:
然后我卸载了所有内容:
并再次安装了 macports: macports 并再次安装了我的所有软件包。
这相当乏味,但它确实达到了目的。
I had the same problem. I have never runned anything else than Snow Leopard. I have tried all kind of stuff and used about 10 hours trying to fix this problem, but with no success.
I ended up removing macports completely and installed it again.
This is what I did:
First I got a list of all my installed ports:
Then I uninstalled everything:
And installed macports again: macports and installed all my packages again.
It was rather tedious, but it did the trick.