![]() ![]() Now, because the the Git binary provided by Apple is placed in /usr/bin you need to make sure your $PATH environment variable is setup properly (see below) and that you install your own build of Git into /usr/local/bin for two reasons: Here's a direct link for the June 2012 download (dmg file): If you don't want to use the version provided by Apple. Note: You don't have to install Xcode to use the Command Line Tools it can be downloaded independently from the Apple Developer site (you need to login, but it's free). Additionally, Xcode 4 includes a new "Downloads" preference pane to install optional components, one of which are the Command Line Tools (similar to the Dev Tools package that shipped with older versions of Xcode) and once installed, Git (and many other utilities, such as make) is installed at the system level (located at /usr/bin). Xcode 4 includes the Git binary at the application level so it's available to itself (located at /Applications/Xcode.app/Contents/Developer/usr/bin/git). Furthermore, you're on your own, if you screw something up, it's not my fault. While these steps may work for previous versions of Mac OS X, I cannot confirm this. ![]() This outline for building and installing Git has only been tested against Mac OS X 10.7.x (Lion). Building and installing Git from source on OS X Lion
0 Comments
Leave a Reply. |