gettext - Snow Leopard 上的 MacPorts : rsync library not loaded libintl

标签 gettext rsync macports

升级到 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 - Snow Leopard 上的 MacPorts : rsync library not loaded libintl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2065904/

相关文章:

python - 为 Fabric rsync_project() 函数输入密码

python - 如何使 macports python 使用自己的软件包而不是其他安装的软件包?

postgresql - 如何在 PostgreSQL 9.0(MacPorts 安装)上安装 hstore 模块?

php - 如何更改 Woocommerce 结帐页面中的 "Have a coupon?"文本

java - java中从GUI文本字段获取文本错误

linux - rsync 模块路径需要是主目录

c++ - MacPorts gcc48 无法识别的命令行选项 '-stdlib=libc++'

php - 如何加载两个 mo 文件以进行 gettext 本地化

Python gettext i18n 具有相同语言的不同版本

linux - rsync 只同步最后一个子目录中的 n 个文件