dyld:在终端中运行命令时出现库未加载错误

发布于 2024-08-22 07:41:20 字数 340 浏览 8 评论 0原文

在终端中运行某些命令时,我收到以下错误消息

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

稍尽春風 2024-08-29 07:41:20

当您的路径开始 /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

辞别 2024-08-29 07:41:20

完成后,

sudo port selfupdate 

不要忘记升级

sudo port upgrade outdated

现有端口。比重新安装一切要好得多:-)

After you do your

sudo port selfupdate 

don't forget to do a

sudo port upgrade outdated

to upgrade your existing ports. Much better than reinstalling everything :-)

无名指的心愿 2024-08-29 07:41:20

在我使用 macports 的 Leopard 机器上,libsdl_image 正在寻找这个未安装的 jpeg 库。 jpeg6b 端口包含它,但位于不同的路径 (/opt/local/lib/jpeg6b/lib/libjpeg.62.dylib)。我通过将 libsdl_image 从 1.2.8_0 升级到 1.2.10_2 来修复它

port selfupdate
port install libsdl_image

,并使问题消失。

On my Leopard machine using macports, libsdl_image was looking for this non-installed jpeg lib. The jpeg6b port includes it, but at a different path (/opt/local/lib/jpeg6b/lib/libjpeg.62.dylib). I fixed it by doing

port selfupdate
port install libsdl_image

which upgraded libsdl_image from 1.2.8_0 to 1.2.10_2 and made the problem go away.

梦罢 2024-08-29 07:41:20

我也有同样的问题。除了 Snow Leopard,我从来没有跑过其他任何东西。我尝试了各种方法并花了大约 10 个小时试图解决这个问题,但没有成功。

我最终完全删除了 macports 并重新安装了它。

这就是我所做的:

首先我得到了所有已安装端口的列表:

> port installed

然后我卸载了所有内容:

> sudo port -f uninstall installed

并再次安装了 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:

> port installed

Then I uninstalled everything:

> sudo port -f uninstall installed

And installed macports again: macports and installed all my packages again.

It was rather tedious, but it did the trick.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文