
- #INSTALL MAC OS X LION DOWNLOAD INSTALL#
- #INSTALL MAC OS X LION DOWNLOAD ARCHIVE#
- #INSTALL MAC OS X LION DOWNLOAD CODE#
- #INSTALL MAC OS X LION DOWNLOAD FREE#
the directory where you cloned the git repo (not into the git repo directory, but it's parent). #INSTALL MAC OS X LION DOWNLOAD INSTALL#
If you're lazy (I wasn't, however I didn't learn about this "alternative" method until AFTER going through the steps above) there's a MUCH easier way to install the Git documentation: $ sudo make prefix=/usr/local install-docĪn alternative (read FASTER/BETTER/EASIER) method.
#INSTALL MAC OS X LION DOWNLOAD FREE#
For the sake of time, here are the steps, and if anyone decides to dive in, feel free to ping me with questions on how I did it. configure -prefix=/usr/local (you can only run this if you've run the command above)Ī whole separate mission is getting the Git documentation to build on OS X.
$ make configure (this is optional, requires GNU Autoconf be installed). #INSTALL MAC OS X LION DOWNLOAD CODE#
download the latest stable from Google code. $ git checkout v1.7.10.4 (checkout latest stable tag). $ git tag -v v1.7.10.4 (verify latest stable tag). #INSTALL MAC OS X LION DOWNLOAD ARCHIVE#
There are two ways to do this, the first uses Git (if you've installed Command Line Tools, either with or without Xcode) and the second simply downloads a compressed archive of the files needed from the Google project page. *Note: When making $PATH changes, you'll likely need to restart your console session (either a new window or a new tab) to test/verify your changes (which is as easy as $ echo $PATH). For me that simply meant reordering the directories listed in /etc/paths to the following, ensuring /usr/local/bin is first: /usr/local/bin It's easy to get all twisted up here, but all you need to do is ensure /usr/local/bin is in the $PATH variable BEFORE /usr/bin.
~/.MacOSX/ist (searched by loginwindow, useful for paths needed by CLI daemons). ~/.bashrc (optional, usually sourced from. /etc/bashrc (sourced from /etc/profile, if exists).
/etc/paths.d/* (relies on /usr/libexec/path_helper being * called from /etc/profile)./etc/paths (relies on /usr/libexec/path_helper being called from /etc/profile)./etc/profile (interactive login shell, or as a non-interactive shell with the -login option, if exists).I've done plenty of digging on this topic over the years, and here's the skinny (to my knowledge) listed in order of operation: Unfortunately, Apple doesn't make managing the $PATH environment variable easy - there are nearly a dozen ways this variable can be set or changed.
If /usr/bin is in the $PATH variable BEFORE the location where you install your own build of the Git binary (I'm suggesting /usr/local/bin/git) then the Apple binary located at /usr/bin/git will always be used when the git command is run. Apple will silently overwrite whatever Git binary lives at /usr/bin whenever Xcode and/or the Command Line Tools are updated. 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