MonoDevelop - using Subversion 1.7 on a Mac

烂漫一生 提交于 2020-01-14 18:05:12

问题


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

回答1:


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.



来源:https://stackoverflow.com/questions/12444081/monodevelop-using-subversion-1-7-on-a-mac

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!