Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Getting Started with Ruby and Rails
Search
Bryce "BonzoESC" Kerley
December 05, 2011
Programming
7
490
Getting Started with Ruby and Rails
Decided I could stand to go over how I set rbenv, pow, and such all set up on a new computer.
Bryce "BonzoESC" Kerley
December 05, 2011
Tweet
Share
More Decks by Bryce "BonzoESC" Kerley
See All by Bryce "BonzoESC" Kerley
Ruby in 2020
bryce
1
72
Rails and the Internet of Things
bryce
1
50
It's Not Ruby, But…
bryce
0
40
Ruby 2.5: What's New and What's Cool
bryce
0
44
docker for rubyists
bryce
0
98
Would You Like To Make A Game?
bryce
0
41
WebSockets and ActionCable
bryce
0
72
How I Learned to Stop Worrying and Like RSpec
bryce
0
66
How Do Computers Even Work?
bryce
1
170
Other Decks in Programming
See All in Programming
Domain-Driven Transformation
hschwentner
2
1.5k
検証も兼ねて個人開発でHonoとかと向き合った話
hanetsuki
1
1.3k
敵対的ポイフル
futabato
0
130
Git Rebase
bkuhlmann
11
1.6k
Git Lint
bkuhlmann
4
760
Micro Frontends for Java Microservices - Utah JUG 2024
mraible
PRO
1
110
try! Swift Tokyo 初参加報告LT
hinakko2
0
240
AmperとFleetを使ったAndroidアプリ
yoppie
0
260
効率化に挑戦してみたらモバイル開発が少し快適になった話
ryunakayama
0
140
StoreKit2によるiOSのアプリ内課金のリニューアル
kangnux
0
120
はてなにおける CSS Modules、及び CSS Modules に足りないもの / CSS Modules in Hatena, and CSS Modules missing parts
mizdra
7
970
WebGLで始める コンピュータグラフィックス入門
heller77
0
190
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
27
4k
The World Runs on Bad Software
bkeepers
PRO
61
6.7k
The MySQL Ecosystem @ GitHub 2015
samlambert
244
12k
How to Ace a Technical Interview
jacobian
273
22k
The Invisible Side of Design
smashingmag
294
49k
Visualization
eitanlees
137
14k
Code Review Best Practice
trishagee
56
15k
For a Future-Friendly Web
brad_frost
172
9k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
117
18k
The Straight Up "How To Draw Better" Workshop
denniskardys
228
130k
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.1k
Transcript
Getting Started with Ruby and Rails Bryce Kerley, Ruby Brigade
November 21, 2011 Sunday, November 20, 11
What I Like Today rbenv ruby-build pow Sunday, November 20,
11
rbenv Simple Ruby Version Management http://git.io/rbenv Sunday, November 20, 11
ruby-build Compile and Install Ruby http://git.io/rbbuild Sunday, November 20, 11
pow Zero-config Rack Server for Mac http://pow.cx Sunday, November 20,
11
Opinion Ruby 1.8.7 is dead Ruby 1.9.2 is good Ruby
1.9.3 is better Sunday, November 20, 11
Opinion Bundler rocks Sunday, November 20, 11
Opinion Don’t Use Windows Sunday, November 20, 11
Operating Systems Mac OS X 10.7 Lion Ubuntu 11.10 Oneiric
Ocelot Sunday, November 20, 11
Lion Sunday, November 20, 11
Lion 1.Install GCC 2.Install Homebrew 3.Install rbenv and ruby-build 4.Install
ruby 1.9.3 5.Install pow Sunday, November 20, 11
Lion: Install GCC Install GCC Without Xcode http://git.io/osxgcc Sunday, November
20, 11
What About Xcode Xcode 4.2 only includes LLVM GCC Ruby
core team doesn’t support LLVM GCC Sunday, November 20, 11
Lion 1.Install GCC 2.Install Homebrew 3.Install rbenv and ruby-build 4.Install
ruby 1.9.3 5.Install pow Sunday, November 20, 11
Lion: Install Homebrew Package Manager for OS X http://git.io/homebrew Sunday,
November 20, 11
Lion: Install Homebrew 1. Open Terminal 2. /usr/bin/ruby -e "$(curl
-fsSL https://raw.github.com/gist/323731)" 3. Enter your password 4. brew update Sunday, November 20, 11
Lion: Install Homebrew Sunday, November 20, 11
Lion 1.Install GCC 2.Install Homebrew 3.Install rbenv and ruby-build 4.Install
ruby 1.9.3 5.Install pow Sunday, November 20, 11
Lion: rbenv & ruby-build 1. brew update 2. brew install
rbenv 3. brew install ruby-build Sunday, November 20, 11
Lion 1.Install GCC 2.Install Homebrew 3.Install rbenv and ruby-build 4.Install
ruby 1.9.3 5.Install pow Sunday, November 20, 11
Lion: Installing Ruby 1. rbenv install 1.9.3-p0 2. rbenv global
1.9.3-p0 Sunday, November 20, 11
Lion 1.Install GCC 2.Install Homebrew 3.Install rbenv and ruby-build 4.Install
ruby 1.9.3 Sunday, November 20, 11
Lion: Pow 1. curl get.pow.cx | sh 2. cd yourapp
3. ln -s `pwd` ~/.pow Sunday, November 20, 11
Ubuntu Sunday, November 20, 11
Ubuntu 1.Install dependencies 2.Install rbenv 3.Install ruby-build 4.Install ruby Sunday,
November 20, 11
Ubuntu: Dependencies sudo apt-get install curl zlib1g-dev libssl-dev libreadline6-dev libncursesw5-dev
libxml2 libxml2-dev libxslt1-dev libsqlite3-dev nodejs git Sunday, November 20, 11
Ubuntu 1.Install dependencies 2.Install rbenv 3.Install ruby-build 4.Install ruby Sunday,
November 20, 11
Ubuntu: rbenv 1. git clone https://github.com/sstephenson/ rbenv.git .rbenv 2. echo
‘export PATH=”$HOME/.rbenv/bin:$PATH”’ >> ~/.bashrc 3. echo ‘eval “$(rbenv init -)”’ >> ~/.bashrc 4. exec $SHELL Sunday, November 20, 11
Ubuntu 1.Install dependencies 2.Install rbenv 3.Install ruby-build 4.Install ruby Sunday,
November 20, 11
Ubuntu: ruby-build 1. git clone https://github.com/sstephenson/ ruby-build.git 2. cd ruby-build
3. sudo ./install.sh Sunday, November 20, 11
Ubuntu 1.Install dependencies 2.Install rbenv 3.Install ruby-build 4.Install ruby Sunday,
November 20, 11
Ubuntu: Installing Ruby 1. rbenv install 1.9.3-p0 2. rbenv global
1.9.3-p0 Sunday, November 20, 11
Ubuntu 1.Install dependencies 2.Install rbenv 3.Install ruby-build 4.Install ruby Sunday,
November 20, 11
Living With It Sunday, November 20, 11
Living With rbenv After installing rubies or gems: rbenv rehash
Sunday, November 20, 11
Living With rbenv Per-project Ruby Version rbenv local ree-1.8.7 Sunday,
November 20, 11
Living With rbenv Per-Shell Ruby Version rbenv shell ree-1.8.7 Sunday,
November 20, 11
Living With rbenv List Installed Rubies rbenv versions Sunday, November
20, 11
Living With Bundler Install Dependencies bundle install Sunday, November 20,
11
Living With Bundler Update Dependencies bundle update Sunday, November 20,
11
Living With Bundler Alias “bundle exec” to “be” alias be=”bundle
exec” Sunday, November 20, 11
Living With Bundler Love and version control your Gemfile Only
version control Gemfile.lock if you’re deploying to Heroku Sunday, November 20, 11
Rack App Servers Zero-config, Mac-only pow curl get.pow.cx | sh
Sunday, November 20, 11
Rack App Servers Otherwise: unicorn Put it in your Gemfile,
bundle exec unicorn Sunday, November 20, 11
Rack App Servers If you love configuration passenger For Apache
or Nginx Sunday, November 20, 11
Databases It’s already set up sqlite3 Seriously, check the Gemfile
in a new Rails app Sunday, November 20, 11
Databases The Best postgres Heroku uses this Sunday, November 20,
11
Postgres Caveats Install with Homebrew on Mac, and you may
have to remove some files from /usr/bin At least: createdb, psql, pg_ctl Sunday, November 20, 11
Links These slides: http://db.tt/EDrpfQzu rbenv: http://git.io/rbenv ruby-build: http://git.io/ruby-build pow: http://pow.cx
bundler: http://gembundler.com Sunday, November 20, 11