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
500
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
87
Rails and the Internet of Things
bryce
1
56
It's Not Ruby, But…
bryce
0
43
Ruby 2.5: What's New and What's Cool
bryce
0
57
docker for rubyists
bryce
0
98
Would You Like To Make A Game?
bryce
0
49
WebSockets and ActionCable
bryce
0
77
How I Learned to Stop Worrying and Like RSpec
bryce
0
66
How Do Computers Even Work?
bryce
1
180
Other Decks in Programming
See All in Programming
AWS Lambdaから始まった Serverlessの「熱」とキャリアパス / It started with AWS Lambda Serverless “fever” and career path
seike460
PRO
1
260
Realtime API 入門
riofujimon
0
150
タクシーアプリ『GO』のリアルタイムデータ分析基盤における機械学習サービスの活用
mot_techtalk
4
1.4k
Hotwire or React? ~アフタートーク・本編に含めなかった話~ / Hotwire or React? after talk
harunatsujita
1
120
エンジニアとして関わる要件と仕様(公開用)
murabayashi
0
290
聞き手から登壇者へ: RubyKaigi2024 LTでの初挑戦が 教えてくれた、可能性の星
mikik0
1
130
Amazon Bedrock Agentsを用いてアプリ開発してみた!
har1101
0
340
Duckdb-Wasmでローカルダッシュボードを作ってみた
nkforwork
0
130
役立つログに取り組もう
irof
28
9.6k
ECS Service Connectのこれまでのアップデートと今後のRoadmapを見てみる
tkikuc
2
250
初めてDefinitelyTypedにPRを出した話
syumai
0
410
TypeScriptでライブラリとの依存を限定的にする方法
tutinoko
2
670
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
A Tale of Four Properties
chriscoyier
156
23k
Building Applications with DynamoDB
mza
90
6.1k
Become a Pro
speakerdeck
PRO
25
5k
Facilitating Awesome Meetings
lara
50
6.1k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
Side Projects
sachag
452
42k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
410
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.3k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Code Reviewing Like a Champion
maltzj
520
39k
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