GIT-SVN Problem on Mac

I find the git-svn process working on my Mac. I am currently on Lion (but I had similar results when testing on Snow Leopard. I seem to be one of the few people having this problem. This is different from the problem that I see that some people only had SVN / Core.pm.

The following is an attempt to make a git svn clone in the vanille repository (obviously, the node and directory data were changed for publication):

Macbook-Pro:git david$ git svn clone https://somesite.com/SVN/someRepo/ Initialized empty Git repository in /Projects/git/MyWorkspace/.git/ Can't load '/System/Library/Perl/Extras/5.12/darwin-thread-multi-2level/auto/SVN/_Core/_Core.bundle' for module SVN::_Core: dlopen(/System/Library/Perl/Extras/5.12/darwin-thread-multi-2level/auto/SVN/_Core/_Core.bundle, 1): Library not loaded: /usr/lib/libsvn_client-1.0.dylib Referenced from: /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level/auto/SVN/_Core/_Core.bundle Reason: image not found at /System/Library/Perl/5.12/darwin-thread-multi-2level/DynaLoader.pm line 204. at /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level/SVN/Base.pm line 59 BEGIN failed--compilation aborted at /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level/SVN/Core.pm line 5. Compilation failed in require at /Developer/usr/libexec/git-core/git-svn line 58. 
+4
source share
3 answers

In my case, just installing git through Macports solved my problem. I believe this problem was probably caused by outdated installations (possibly Mac OS X git Installer). If you are in this scenario, first install Macports:

http://www.macports.org/install.php

Then, once Macports is installed (with the correct version for your OS), run:

 sudo port install git-core +svn 

After that, I just had to use git in the new location set by Macports:

 /opt/local/bin/git 

I changed my PATH variable so that it is used by default git.

+6
source

I took a slightly different approach to this problem (since I am launching the beta version of Xcode 4.2):

  • Install the Collabnet Subversion package. I downloaded OSX version 10.7 since I am running Lion on my Mac.
  • Create a symlink for all / opt / subversion / libsvn _ * files in / usr / lib /
0
source

I spent a lot of time trying to achieve this. None of the approaches above helped. Actually the problem was removing the next line from my ~/.zshrc ( .bash_profile if you are using bash.)

 export VERSIONER_PERL_PREFER_32_BIT=yes; 
0
source

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


All Articles