Skip to content

Instantly share code, notes, and snippets.

@kannans
Last active August 29, 2015 14:08
Show Gist options
  • Save kannans/0b07841b6b7a68e75215 to your computer and use it in GitHub Desktop.
Save kannans/0b07841b6b7a68e75215 to your computer and use it in GitHub Desktop.
Install Ruby On Rails In MAC OS X
Make sure Xcode installed in your MAC
$ xcode-select -p
Configure Git
$ git config -l --global
fatal: unable to read config file '/Users/.../.gitconfig': No such file or directory
$ git config --global user.name "Your Real Name"
$ git config --global user.email [email protected]
$ git config -l --global
user.name=Your Real Name
[email protected]
Install RVM
$ \curl -L https://get.rvm.io | bash -s stable --ruby
$ rvm get stable --autolibs=enable
$ rvm install ruby
$ rvm --default use ruby-2.1.3
If library errors comes
http://superuser.com/questions/820364/ruby-installation-issues-with-rvm
References:
http://railsapps.github.io/installrubyonrails-mac.html
Postgres:
gem install lunchy
lunchy start postgres
lunchy stop postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment