Skip to content

Instantly share code, notes, and snippets.

@sferik
Last active December 13, 2015 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sferik/4950108 to your computer and use it in GitHub Desktop.
Save sferik/4950108 to your computer and use it in GitHub Desktop.
Web Programming with Ruby on Rails

Install the following on your Mac before class on Wednesday

GNU Compiler Collection (GCC)

You will need a C compiler to install Ruby. Download and install the pre-build binary for your version of OS X. If you're not sure what version of OS X you're using, go to the  menu and select "About This Mac".

https://github.com/kennethreitz/osx-gcc-installer#option-1-downloading-pre-built-binaries

Homebrew

Open Applications > Utilities > Terminal.app and paste in the following command:

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

Ruby

After Homebrew is installed, use it to update your version of Ruby:

brew install ruby

After that finishes, enter this command to set your default ruby version:

echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile

Then quit and restart Terminal.app.

Rails

After Ruby is updated, install the latest version of Rails:

gem install rails

Install either TextMate or Sublime Text 2

TextMate

http://macromates.com/

Sublime Text 2

http://www.sublimetext.com/2

Optional

Xcode

https://itunes.apple.com/us/app/xcode/id497799835

Bookmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment