Thursday, July 24, 2014

Install git on MAC OS X 10.8 Mountain Lion

Installing git from http://git-scm.com for MAC OS X 10.8 is kind of cumbersome, and does not work.

You get the following error, when you try to clone the repository.
> git clone ....

dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk
  Referenced from: /usr/local/git/bin/git
  Expected in: /usr/lib/libSystem.B.dylib



Solution::

NOTE: In case you do not have Apple developer account, please register it in 2 seconds and proceed.

step1: go to https://developer.apple.com/xcode/downloads/


step2: scroll down and click on "View Downloads" in Additional Tools as shown above.


step3: We have to install "Command Line Tools for XCode". Scroll down the list and look for the description that suits your MAC OS flavor. In this case of course it is MAC OS Mountain Lion (10.8)




step4: Install DMG file as usual and you are all set. Open a terminal and enjoy git :)



No comments:

Post a Comment