git-svnがMavericksで壊れました(Mountain Lionでも起きるらしいけど)

beer 開発ツール

homebrewで入れたgitとsvnは正しく動くのですがgit-svnがそのままだと動きません。。

~~~
$ git svn –version
Can’t locate loadable object for module SVN::_Core in @INC (@INC contains: /usr/local/Cellar/git/1.8.4.1/lib/perl5/site_perl/5.16.2/darwin-thread-multi-2level /usr/local/Cellar/git/1.8.4.1/lib/perl5/site_perl/5.16.2 /usr/local/Cellar/git/1.8.4.1/lib/perl5/site_perl /Library/Perl/5.16/darwin-thread-multi-2level /Library/Perl/5.16 /Network/Library/Perl/5.16/darwin-thread-multi-2level /Network/Library/Perl/5.16 /Library/Perl/Updates/5.16.2 /System/Library/Perl/5.16/darwin-thread-multi-2level /System/Library/Perl/5.16 /System/Library/Perl/Extras/5.16/darwin-thread-multi-2level /System/Library/Perl/Extras/5.16 .) at /System/Library/Perl/Extras/5.16/SVN/Base.pm line 59.
BEGIN failed–compilation aborted at /System/Library/Perl/Extras/5.16/SVN/Core.pm line 5.
Compilation failed in require at /usr/local/Cellar/git/1.8.4.1/lib/perl5/site_perl/Git/SVN/Utils.pm line 6.
BEGIN failed–compilation aborted at /usr/local/Cellar/git/1.8.4.1/lib/perl5/site_perl/Git/SVN/Utils.pm line 6.
Compilation failed in require at /usr/local/Cellar/git/1.8.4.1/lib/perl5/site_perl/Git/SVN.pm line 26.
BEGIN failed–compilation aborted at /usr/local/Cellar/git/1.8.4.1/lib/perl5/site_perl/Git/SVN.pm line 33.
Compilation failed in require at /usr/local/Cellar/git/1.8.4.1/libexec/git-core/git-svn line 25.
BEGIN failed–compilation aborted at /usr/local/Cellar/git/1.8.4.1/libexec/git-core/git-svn line 25.
~~~

perlがおかしいっぽいのですが、brew install svn –perl も落ちてしまってインストールできず。。
よくわかりませんがシンボリックリンクで解決できたので書いておきます

~~~
$ sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.16/darwin-thread-multi-2level/SVN /System/Library/Perl/Extras/5.16/SVN
$ sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.16/darwin-thread-multi-2level/auto/SVN/ /System/Library/Perl/Extras/5.16/auto/SVN
~~~

~~~
$ git svn –version
git-svn version 1.8.4.1 (svn 1.7.10)
~~~

参考サイト:
Solved: git svn Broken in Mavericks (or Mountain Lion)

コメント

タイトルとURLをコピーしました