SVN 无法在全新的 Mac OSX 安装上运行

发布于 2024-12-21 00:15:10 字数 711 浏览 2 评论 0原文

我安装了全新的 Mac OS 10.7.2。我已经在上面安装了 SVN,但是,当我尝试调用 Subversion 时,出现错误:

dyld: Library not loaded: /usr/lib/libpq.5.dylib
  Referenced from: /opt/subversion/bin/svn
  Reason: no suitable image found.  Did find:
    /usr/lib/libpq.5.dylib: no matching architecture in universal wrapper
    /usr/lib/libpq.5.dylib: no matching architecture in universal wrapper

我已尝试搜索错误,看起来该库主要由 PostreSQL 使用(我也安装了),但是运行良好。我有点困惑为什么 SVN 会尝试调用这个库,以及为什么它会失败。

网上的各种用户组都指出,解决方案是创建一个指向“真实”PostgreSQL 安装的符号链接,但我已经这样做了。 (另请参阅:subclipse)我已经重新安装了 SVN 和 PostgreSQL 两次,没有任何错误。任何帮助将不胜感激。

I have a brand new install of Mac OS 10.7.2. I have installed SVN on it, however, when I try to invoke Subversion, I get the error:

dyld: Library not loaded: /usr/lib/libpq.5.dylib
  Referenced from: /opt/subversion/bin/svn
  Reason: no suitable image found.  Did find:
    /usr/lib/libpq.5.dylib: no matching architecture in universal wrapper
    /usr/lib/libpq.5.dylib: no matching architecture in universal wrapper

I have tried searching for the error, and it looks like that library is used primarily by PostreSQL (which I also have installed), but that is running fine. I am a little confused as to why SVN would be trying to call this library, and furthermore why it fails.

Various user groups online state that the solution is to create a symbolic link to the 'real' PostgreSQL install, but I have done that. (See also: subclipse) I have reinstalled SVN and PostgreSQL twice now with no errors. Any help would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

说不完的你爱 2024-12-28 00:15:10

事实证明,虽然我的 PostgreSQL 使用的是 5.2 版本,但 SVN 依赖于 5.3。因此,如果有人遇到此问题,请注意,您不能简单地创建指向 PostgreSQL dylib 的符号链接,它必须是安装时附带的 5.3。

IE

ln -s libpq.5.3.dylib libpq.5.dylib

Turns out that although my PostgreSQL is using version 5.2, SVN depends on 5.3. So if anyone runs into this problem, note that you CANNOT simply create a symbolic link to your PostgreSQL dylib, it has to be the 5.3 that comes with the install.

ie

ln -s libpq.5.3.dylib libpq.5.dylib
梦巷 2024-12-28 00:15:10

我的链接断开了:

/usr/lib/libpq.5.dylib -> /Library/PostgreSQL/8.4/lib/libpq.5.dylib

我用以下方法修复了这个问题:

$ sudo rm /usr/lib/libpq.5.dylib
$ sudo ln -s /usr/libpq.5.dylib /usr/lib/libpq.5.3.dylib

如之前所建议的。

之后我注意到,那个颠覆客户端太旧了。
此指令 http://subclipse.tigris.org/wiki/JavaHL 建议下载最新的二进制文件来自 CollabNet,但那些社区构建的 Mac 软件包适用于旧版本,因此不兼容。

“已加载不兼容的 JavaHL 库。需要 1.7.x 或更高版本。”

更多信息请参见:svn for eclipse on mac os lion

I had a broken linkage:

/usr/lib/libpq.5.dylib -> /Library/PostgreSQL/8.4/lib/libpq.5.dylib

I fixed this with:

$ sudo rm /usr/lib/libpq.5.dylib
$ sudo ln -s /usr/libpq.5.dylib /usr/lib/libpq.5.3.dylib

As suggested earlier.

After this I noticed, that subversion client is too old.
This instruction http://subclipse.tigris.org/wiki/JavaHL suggests to download latest binaries from CollabNet, but those community built Mac packages are for older version and therefore incompatible.

"Incompatible JavaHL library loaded. 1.7.x or later required."

More information here: svn for eclipse on mac os lion

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