简体   繁体   中英

MonoDevelop - using Subversion 1.7 on a Mac

I have homebrew installed, and was able to upgrade subversion to 1.7 using it (and moving /usr/local/bin ahead of /usr/bin in my PATH).

So if I type:

svn help
Subversion command-line client, version 1.7.6.

The problem is MonoDevelop doesn't seem to use the svn in the PATH, because svn 1.7 repos don't appear to be versioned in MonoDevelop.

I need 1.7 because I also use a VM with Windows and I share repos between the host and guest. On Windows I used TortoiseSVN/AnkhSvn which target subversion 1.7.

Is there a way to get MonoDevelop to use svn in a different location? I tried playing with MonoDevelop.VersionControl.Subversion.Unix.dll.config, but couldn't get it to work:

<configuration>
    <dllmap os="osx" dll="libsvn_client-1.so.0" target="libsvn_client-1.dylib" />
    <dllmap os="osx" dll="libapr-0.so.0" target="libapr-1.0.dylib" />
    <dllmap os="freebsd" dll="libapr-0.so.0" target="libapr-1.so" />
</configuration>

I tried creating a symbolic link in the same dir as the Subversion dll:

libsvn_client-1.dylib -> /usr/local/Cellar/subversion/1.7.6/lib/libsvn_client-1.dylib

Try to start monodevelop with MONO's debugging enabled, that is use something like:

export MONO_LOG_LEVEL=debug; export MONO_LOG_MASK=dll; mono MonoDevelop.exe

That should give you some information about exactly where mono is trying to find the subversion library.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM