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.
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.
ln -s libpq.5.3.dylib libpq.5.dylib