Sunday
Jul222007
Getting git-svn working on the Mac
Sunday, July 22, 2007 at 11:38PM
I had a little trouble getting the `git-svn` command working on my Mac. For future Google reference, here's how I did it:
Firstly, install Subversion (currently 1.4.4) from downloads.open.collab.net - this version is compiled with all the language bindings, so you don't have to mess about with building SWIG by yourself. The `git-svn` integration depends on having the Perl bindings available.
Next, I downloaded and built git 1.5.2.4 by hand. Unless you have the Expat XML parser installed, you'll want to define the `NO_EXPAT` environment variable to prevent the part of git that depends on it failing to compile.
Finally, and this is the trick, you need to add `/usr/local/lib/svn-perl` to `$PERL5LIB` so that `git-svn` can find the Perl bindings to Subversion. If you're getting errors about "can't find SVN/Core.pm" or some such, this is what you're missing.
Firstly, install Subversion (currently 1.4.4) from downloads.open.collab.net - this version is compiled with all the language bindings, so you don't have to mess about with building SWIG by yourself. The `git-svn` integration depends on having the Perl bindings available.
Next, I downloaded and built git 1.5.2.4 by hand. Unless you have the Expat XML parser installed, you'll want to define the `NO_EXPAT` environment variable to prevent the part of git that depends on it failing to compile.
Finally, and this is the trick, you need to add `/usr/local/lib/svn-perl` to `$PERL5LIB` so that `git-svn` can find the Perl bindings to Subversion. If you're getting errors about "can't find SVN/Core.pm" or some such, this is what you're missing.



Reader Comments (15)
Or, for the lazy MacPorts users,
sudo port install git-core +svn:-)Hi,
What does adding `/usr/local/lib/svn-perl` to `$PERL5LIB` mean? What is $PERL5LIB, where do I find it and how do I add to it?
i agree with you ,but i want to say that ,we are young people ,we love freash things ,so i hope you can refersh you arctile usually ,thank you.by the way do you know about
cheap dvds
and vertuand
Tiffany Jewelryandreplica handbags
A great post but How to select a cool handbags. we sell cheap handbags We are the best store provided various cheap designer handbags but only a little white to make coach handbags online
Windows XP has Microsoft Office 2010 also been criticized Microsoft Office 2007 by some customers for Office 2010 security vulnerabilities, tight Office 2007 integration of applications like Internet Explorer 6 Office 2010 Microsoft and Windows Media Microsoft Office Player Let’s think for another MS office 2007 time. You take 200 customers and Microsoft outlook 2010 stop working with our Affiliate Program Office 2007 key, the reason is that you Microsoft outlook do not have enough time. Then you are able to Office 2007 download earn 4000 every year Outlook 2010! Versions with Service Pack 2, Service Pack 3, and download Office 2007 Internet Explorer 8 addressed Microsoft Office 2010 download some of these concerns. The Benefits of our Program Office 2010 download is written below: first, Our affiliate office 2010 trial program is FREE to take part Office 2010 key in .Then, You are able to earn on every purchase office 2010 pro of your customers. At the same time microsoft office 2010 trial, We have payouts office 2010 home – accept download Office 2010 a check monthly for office 2010 professional your sales.
I just read through the full article of yours and it was quite good. nice information!First place in google results…Thank you.
Thank you for sharing so useful informations!
I was searching for something like that for quite a long time and at last I have found it here. Your blog is better than others because of useful and meaningful posts
I have been a regular visitor of this site and I love reading blogs posted here. They are truly very well written, precise and to the point. Thanks.
Welcome to our site, buy the things you like. Please click on my name, this simple action may give you a surprise! Thank you.
Thank you for sharing so useful informations!
I am extremely delight to be on this website reading this great blog. The author has done a fantastic job. Thanks for sharing.
Thank you for sharing so useful informations!
I am great to see this blog, I hope many people can research it.
you mean you don’t need a special tool? That’s refreshing! Thanks!burberry bags outlet online