dyld:未加载库:/opt/local/lib/libglib-2.0.0.dylib [英] dyld: Library not loaded: /opt/local/lib/libglib-2.0.0.dylib

查看:155
本文介绍了dyld:未加载库:/opt/local/lib/libglib-2.0.0.dylib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为OSX编译了MDB-Tools,但是当我尝试在另一台计算机上运行示例命令行程序时,出现此错误:

I've gotten MDB-Tools compiled for OSX, but when I try to run a sample command line program on another computer I get this error:

dyld:未加载库:/opt/local/lib/libglib-2.0.0.dylib 引用自:/Users/dev/mdb/mdb-test 原因:找不到图片 跟踪/BPT陷阱:5

dyld: Library not loaded: /opt/local/lib/libglib-2.0.0.dylib Referenced from: /Users/dev/mdb/mdb-test Reason: image not found Trace/BPT trap: 5

我相信这意味着目标系统缺少一个库,并且我认为它与链接有关,但是我对如何解决此问题并不完全肯定.有人能指出我正确的方向吗?

I believe that this means that the target system is missing a library and I think its something to do with linkage, but I'm not exactly positive how to go about fixing this. Could anyone point me in the right direction?

推荐答案

/opt/local目录通常由MacPorts使用.您编译的程序依赖于MacPorts中的glib.您需要将其安装在要运行程序的计算机上,或者需要将程序及其依赖的所有库捆绑在一起.

The /opt/local directory is typically used by MacPorts. Your compiled program has a dependency on glib from MacPorts. You either need to install that on the machines where you want to run your program or you need to bundle together your program and all of the libraries it depends on.

检查Apple的动态库编程主题.

这篇关于dyld:未加载库:/opt/local/lib/libglib-2.0.0.dylib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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