Your SlideShare is downloading. ×
Ruby Setup
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Ruby Setup

503
views

Published on

Ruby setup presentation given at ATLRUG Emerald City on 7/14/2012

Ruby setup presentation given at ATLRUG Emerald City on 7/14/2012

Published in: Business, Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
503
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Ruby & Rails Setup Alan Hecht
  • 2. Windows Setup• Rails Installer - Ruby, Rails, Git, Sqlite, SQL Server support - railsinstaller.org• Ruby Installer - Just Ruby - rubyinstaller.org
  • 3. Git on Windows• Git for Windows - Minimal environment to run Git• msysGit - Build Git on Windows as well as run it• GitHub for Windows - GUI front end for msysGit
  • 4. OS X Setup• System version of Ruby & Rails is old• Git included with Lion & Mountain Lion - Version is reasonably up-to-date• Homebrew for additional packages like ImageMagick or ffmpeg
  • 5. OSX - GCC Installation• XCode• Apple provides command line tools for Lion/Mountain Lion which include GCC• OS X GCC Installer available for Snow Leopard on GitHub
  • 6. Linux Setup• Pre-built Ruby package is usually out of date• Pre-built Rubygems package is usually out of date - Rubygems has its own means of updating itself• Need to install prerequisite packages before installing Ruby
  • 7. Ubuntu - Prerequisites• The following packages are needed for rvm & ruby on Ubuntu 12.04:build-essential bison openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev sqlite3 libsqlite3-0 libxml2-dev libxslt-dev autoconf curl libtool
  • 8. Ruby Version Management• Useful for running older or different versions of Ruby• RVM or rbenv on Linux & OS X, pik on Windows
  • 9. RVM• Works by wrapping existing Ruby & shell commands with shell scripts• Configuration can be either single user or multiple users• Support for gem sets
  • 10. rbenv• Works by adding ~/.rbenv/shims to $PATH• Configuration is per user• Optional support for gem sets
  • 11. RVM or rbenv• rbenv is lighter weight & simpler• RVM is easier to use, more suitable for a development environment - Wrapping shell builtins with a script isn’t evil• rbenv more suitable for a production server
  • 12. pik• Installed as a gem• Allows you to choose which Ruby executable to use• Does not manage gem sets

×