SVN will not work on a new Mac OSX installation

I have a new version of Mac OS 10.7.2. I installed SVN on it, however, when I try to call Subversion, I get an error message:

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 tried to find the error, and it looks like this library is mainly used by PostreSQL (which I also installed), but it works fine. I am a little confused as to why SVN will try to call this library, and also why it fails.

Various user groups on the Internet claim that the solution is to create a symbolic link to the "real" PostgreSQL installation, but I did. (See Also: subclipse ) I reinstalled SVN and PostgreSQL twice without errors. Any help would be appreciated.

+4
source share
2 answers

It turns out that although my PostgreSQL uses version 5.2, SVN depends on 5.3. Therefore, if anyone encounters this problem, please note that you CANNOT just create a symbolic link to your PostgreSQL dylib, it must be 5.3 that comes with the installation.

ie

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

I had a broken connection:

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

I fixed it 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 that, I noticed that the subversion client is too old. This instruction http://subclipse.tigris.org/wiki/JavaHL suggests downloading the latest binaries from CollabNet, but these packages created by the Mac community are for an older version and therefore not compatible.

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

More info here: svn for eclipse on mac os lion

+3
source

Source: https://habr.com/ru/post/1385985/


All Articles