2.2.2.2. Installing Required Software
Ruby: interpreted object-oriented scripting language.Git: software version control system.
Mac OS X Lion ships with Ruby 1.8.7 preinstalled. Previous versions of OS X included Ruby as part of the Xcode integrated development environment. If you are installing the client tools on a version of OS X that did not ship with Ruby preinstalled, you can install it one of two ways:
- Use the OS X installation CD
- Download and install the Xcode integrated development environment from the Apple website
- Download and install
Rubyfrom the MacRuby website, or - Visit http://www.ruby-lang.org/en/downloads/ for help installing
Rubywith homebrew
Ruby is installed, run the following command to verify that it has installed correctly:
ruby -e 'puts "Welcome to Ruby"' Welcome to Ruby
$ ruby -e 'puts "Welcome to Ruby"'
Welcome to Ruby
Although there are a number of options available to install Git version control on Mac OS X, Red Hat
recommends to download and install the latest version from here: http://code.google.com/p/git-osx-installer/.
Git has installed correctly:
git --version git version 1.7.11.1
$ git --version
git version 1.7.11.1