#Git for mac os x lion install#
I also found some advice in a document about Migrating a MacPorts install to a new major OS version or CPU architecture. So I hunted some more and found this question on Stack Overflow which had one hint but not everything to fix the situation. Unfortunately this wound up with an error stating:Įrror: Failed to install zlibHunting around, I wound up finding a few things such as this MacPorts issue, only to discover that this issue was closed as invalid. $ sudo port install git-core +bash_completion +doc +svn It completed successfully so I moved on to the actual installation of git using the following command: So I installed the command-line tools from the Xcode preferences panel and then proceeded with the MacPorts installation. Instead, they can be installed optionally using the Components tab of the Downloads preferences panel.' ' The command-line tools are not bundled with Xcode 4.3 by default. After some hunting, I ran across a document titled New Features in Xcode 4.3 which noted the following: Then I attempted to install MacPorts, but began seeing errors about not being able to find the make utility. So from previous experience, I knew that before I could install MacPorts I would need to install Xcode, so I downloaded and installed Xcode 4.3 from the App Store. Later I then updated to OS X Lion and had no issues with git or Xcode. I successfully installed MacPorts and then used the port utility to install git without issue. The last time I installed MacPorts fresh, it was on a previous MacBook Pro that had OS X Snow Leopard installed. Unfortunately I wound up doing a lot of yak shaving. Being that I am a fan of MacPorts, I decided to start there but I ran into some strange errors. Today I needed to set up a new MacBook Pro and as such one of the tasks was to install git on OS X Lion.