gpt4 book ai didi

gettext - 雪豹上的 MacPorts : rsync library not loaded libintl

转载 作者:行者123 更新时间:2023-12-04 06:59:45 25 4
gpt4 key购买 nike

升级到 OS X 10.6 后,我遇到了与 MacPorts 相关的各种特殊问题,但通过根据需要简单地重新构建库,我已经解决了大部分问题。有一个问题我似乎无法通过该方法解决,甚至重新构建所有端口,完全删除旧的/opt 目录,也没有任何效果:

$ rsync example.com:foo .
Password:
dyld: Library not loaded: /opt/local/lib/libintl.8.dylib
Referenced from: /opt/local/lib/libpopt.0.dylib
Reason: image not found
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(601) [Receiver=3.0.7]

但是,有问题的库存在,这确实令人沮丧:
$ otool -L /opt/local/lib/libintl.8.dylib
/opt/local/lib/libintl.8.dylib:
/opt/local/lib/libintl.8.dylib (compatibility version 9.0.0, current version 9.2.0)
/opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 124.1.1)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.0.0)

这是来自安装的 gettext 包:
$ port provides /opt/local/lib/libintl.8.dylib
/opt/local/lib/libintl.8.dylib is provided by: gettext

$ port installed | grep gettext
gettext @0.17_4+universal (active)
p5-locale-gettext @1.05_0 (active)

文件在那里:
$ ls -l /opt/local/lib/libintl.8.dylib
lrw-r--r-- 1 root admin 19 Jan 12 17:22 /opt/local/lib/libintl.8.dylib@ -> libintl.8.0.2.dylib
$ ls -l /opt/local/lib/libintl.8.0.2.dylib
-rw-r--r-- 2 root admin 98736 Jan 12 17:22 /opt/local/lib/libintl.8.0.2.dylib

我已经搜索过此类错误,但它们似乎都已过时。以前有人解决过这个问题吗?

最佳答案

您可以使用“file”命令查看 dylib 中存在哪些架构:

文件/opt/local/lib/libintl.8.0.2.dylib

如果只存在 ppc 和 i386,而您需要 x86_64,则无法加载该库。

关于gettext - 雪豹上的 MacPorts : rsync library not loaded libintl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2065904/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com