datguy
datguy

Reputation: 643

How do I update the perl subversion bindings on OSX?

I'm having a problem with git-svn that may be related to the perl svn bindings. Even after installing new versions of subversion and git using homebrew, git-svn is using an old version of svn:

$ git svn --version
git-svn version 1.8.2.1 (svn 1.6.18)

$ svn --version
svn, version 1.7.7 (r1393599)

How do I make git-svn use the newer version of svn?

Upvotes: 2

Views: 5183

Answers (3)

James Foucar
James Foucar

Reputation: 101

If using homebrew, uninstall git, update/install svn with homebrew, then reinstall git with:

brew install git --with-brewed-svn

Upvotes: 1

user954311
user954311

Reputation: 41

Another way to point the svn-perl binding to a specific svn installation on your system would be to add following line to the bash profile:

export PERL5LIB=/usr/local/lib/svn-perl

The path will vary depending on the installation directory of svn-perl bindings. For e.g., WanDisco svn client installation is usually under /opt/subversion/lib/svn-perl.

I learned about this trick from here.

Upvotes: 0

datguy
datguy

Reputation: 643

Thanks to this answer, I found a reasonable solution. I ran sudo cpan SVN::Core, which updated the svn version of git-svn:

$ git svn --version
git-svn version 1.8.2.1 (svn 1.7.3)

The native svn version was unchanged. So I'm left with two different versions of svn, but at least they are the same major version.

Upvotes: 4

Related Questions