AbstractBrain Answers About us

Solution: Can't locate SVN/Core.pm in @INC (you may need to install the SVN::Core module)

Question

git svn error “Can’t locate SVN/Core.pm in @INC” on MacOS

git svn has stopped working after the upgrade to MacOS Monterey.

When I run a Subversion command using Git (e.g. git svn rebase) I get this error:

Can't locate SVN/Core.pm in @INC (you may need to install the SVN::Core module)

What should I do?

Answer

In order to fix the git svn error on MacOS you simply need to upgrade Git (using Homebrew):

$ brew upgrade git

Then you will see a notice like this: “Subversion interoperability (git-svn) is now in the git-svn formula.

Basically you just need to install it and everything will work normally:

$ brew install git-svn