Git is a version control system that lets you check out code from a repository, work with that code on your own branch, and then merge that code with any changes that have been made by other developers. Git is an essential tool for distributed development teams, and is a critical component of the continuous integration/continuous development toolchain.
- Go to https://git-scm.com/downloads.
- Under Downloads, click Mac OS X.
- When the download completes, double-click the
.dmg
file open the installer package. - Double-click the installer package to begin the installation.
Security Warning
You may see a warning message that the package can't be opened because it's not from a recognized developer. If this happens, go to System Preferences > Security and Privacy Settings, and click Open Anyway.
- Click Continue for the installation, and enter your local password to authorize the installation.
- Go to https://git-scm.com/downloads
- Under Downloads, click on Windows.
- When the dialog opens asking if you want to allow the app to make changes to your device, click Yes.
- Follow the steps in the setup wizard to complete the installation. You should accept all the default settings.
For Unix/Linux systems we use rbenv. rbenv
is a tool that lets you install, run, and manage multiple versions of ruby
environments on your system.
-
Using
brew
installrbenv
:$ brew install rbenv
-
Setup
rbenv
in your currentbash
shell:$ rbenv init
-
Close and restart your terminal, or run the following command so changes take effect:
$ source ~/.bashrc
-
Verify that
rbenv
is configured correctly, and running on your system:$ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash Checking for `rbenv' in PATH: /usr/local/bin/rbenv Checking for rbenv shims in PATH: OK Checking `rbenv install' support: /usr/local/bin/rbenv-install (ruby-build 20170523) Counting installed Ruby versions: none There aren't any Ruby versions installed under `~/.rbenv/versions'. You can install Ruby versions like so: rbenv install 2.2.4 Checking RubyGems settings: OK Auditing installed plugins: OK
-
Install a version of Ruby using
rbenv
, here are list of the available versions:$ rbenv install <ruby_version>
-
The
ruby
versions are generally stored in the following directory:~/.rbenv/versions
-
Under RubyInstallers, choose the latest version of Ruby+DevKit.
-
Download the package and extract it on you system.
-
Open the executable and follow the prompts to complete installation.
-
To upgrade Ruby, use
ridk install
command.This installer configures Ruby as a native Windows application, to learn more about RubyInstaller refer to the this link
It's recommended to install and Integrated Developer Environment, or a text editor, to help manage package dependencies, interperters, and overall code execution. There are several options available, some of them are free and some require payment:
- Aptana Studio free, IDE developed by GitHub. There are versions for MacOSX, Windows, and Linux.
- RubyMine free trial, paid after 30 days, developed by JetBrains.
- Komodo Edit, free, text editor, stripped down version of Komodo IDE (paid version).
- NetBeans free, open source IDE developed by Apache. Contains source binaries that you must download and compile.