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
How to Setup Your Mac
Search
Tetsuya Kaneko
February 08, 2014
Programming
0
16
How to Setup Your Mac
Mac での開発環境構築手順を説明します
Tetsuya Kaneko
February 08, 2014
Tweet
Share
More Decks by Tetsuya Kaneko
See All by Tetsuya Kaneko
Migrate from Unicorn to Puma
tetsuya
0
180
How to Brew Coffee at Home - A Guide For Beginners
tetsuya
0
580
Dive into ‘An error occurred while installing mysql2’
tetsuya
0
14
Understanding Syntax Error on Ruby Blocks
tetsuya
0
49
How Did Development Team Cope with Startup Chaos at U-NOTE
tetsuya
1
2k
Ansible - Where to start?
tetsuya
3
1.8k
Other Decks in Programming
See All in Programming
『テスト書いた方が開発が早いじゃん』を解き明かす #phpcon_nagoya
o0h
PRO
2
310
Rails アプリ地図考 Flush Cut
makicamel
1
120
クリーンアーキテクチャから見る依存の向きの大切さ
shimabox
2
490
仕様変更に耐えるための"今の"DRY原則を考える / Rethinking the "Don't repeat yourself" for resilience to specification changes
mkmk884
4
710
楽しく向き合う例外対応
okutsu
0
150
お前もAI鬼にならないか?👹Bolt & Cursor & Supabase & Vercelで人間をやめるぞ、ジョジョー!👺
taishiyade
7
4k
Amazon S3 TablesとAmazon S3 Metadataを触ってみた / 20250201-jawsug-tochigi-s3tables-s3metadata
kasacchiful
0
170
データベースのオペレーターであるCloudNativePGがStatefulSetを使わない理由に迫る
nnaka2992
0
170
なぜイベント駆動が必要なのか - CQRS/ESで解く複雑系システムの課題 -
j5ik2o
12
4.1k
DROBEの生成AI活用事例 with AWS
ippey
0
130
Formの複雑さに立ち向かう
bmthd
1
860
Bedrock Agentsレスポンス解析によるAgentのOps
licux
3
850
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
223
9.3k
How to Think Like a Performance Engineer
csswizardry
22
1.3k
Making Projects Easy
brettharned
116
6k
Docker and Python
trallard
44
3.3k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.3k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
49
2.3k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.5k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
BBQ
matthewcrist
87
9.5k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Building Your Own Lightsaber
phodgson
104
6.2k
Transcript
How to setup your Mac 2014-02-08 AW ษڧձ Presented by
@tetsuya
MacͷੈքΑ͏ͦ͜ʂ Macintosh͕ൃച͞ΕͯࠓͰ30पΛܴ͑·ͨ͠
·ͣɺΞϓϦέʔγϣϯ > ϢʔςΟϦςΟʔͱਐΈʮλʔϛφϧʯΛ։͍ͯΈ·͠ΐ͏
versionίϚϯυΛͬͯঢ়گΛ֬ೝͯ͠Έ·͠ΐ͏ ༷ʑͳڥ͕طʹೖ͍ͬͯ·͢Ͷ
ͳͥϩʔΧϧڥΛԚͨ͘͠ͳ͍ͷ͔
※20142݄8ݱࡏ ʊਓਓਓਓਓਓʊ ʼɹಈ͔ͳ͍ɹʻ ʉY^Y^Y^Y^Yʉ Legacy Code Python 3.3.3 ʢ࠷৽൛ʣ
Python 2.7.5 (Default) Ξοϓσʔτ ͤͳ͍
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
ύοέʔδཧγεςϜ(homebrew)Λ ಋೖͯ͠ΈΑ͏
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
Πϯετʔϧ $ brew install node
$ brew update $ brew upgrade node Ξοϓσʔτ
$ brew uninstall node ͑ʁ͜Ε͚ͩʁ͜Ε͚ͩͰ͢ ΞϯΠϯετʔϧ
• ։ൃʹ͓͍ͯԿͰ࠷৽൛Λ͍Ε͓͚ͯΑ͍ͱ ͍͏Θ͚Ͱͳ͍ • Javaͱҧ͍ɺPythonRubyͳͲޙํޓੑ͕ ͍ݴޠͰͷ։ൃͰɺόʔδϣϯΛ্͛Δ͜ͱͰશ ͘ಈ͔ͳ͘ͳΔ͜ͱ͕͋Δ
homebrewͰRubyཧ͢Ε͍͍Μ͡ΌͶʁ
ࠩྺવ ṷṷɺRubyrbenv
• શ͘ҧ͏όʔδϣϯ͕ڞଘՄೳ • ίϚϯυҰͭͰϝΠϯͷόʔδϣϯΛΓସ͑ΒΕΔ OS homebrew rbenv ※20142݄8ݱࡏ Ruby 2.0.0p247
(Default) Ruby 2.0.0-p353 ʢ2.xܥ҆ఆ൛ʣ Ruby 2.1.0 ʢ࠷৽൛ʣ Ruby 1.9.3-p484 ʢ1.xܥ҆ఆ൛ʣ
$ brew install rbenv ruby-build $ echo 'export RBENV_ROOT=/usr/local/var/rbenv' >>
~/.bash_pro fi le $ echo 'eval "$(rbenv init -)"' >> ~/.bash_pro fi le $ source ~/.bash_pro fi le $ rbenv install -l $ rbenv install 2.0.0-p353 $ rbenv rehash $ rbenv global 2.0.0-p353 $ ruby -v
$ gem install rails $ rails new App1 $ cd
App1 $ rails server
OS homebrew gem App1 ※20142݄8ݱࡏ Ruby 2.0.0p247 (Default) rbenv
Ruby 2.0.0-p353 ʢ2.xܥ҆ఆ൛ʣ Ruby 2.1.0 ʢ࠷৽൛ʣ Ruby 1.9.3-p484 ʢ1.xܥ҆ఆ൛ʣ
ࠞͬͯ͟͠·͏ʂ OS homebrew gem App1 App2 ※20142݄8ݱࡏ Ruby 2.0.0p247
(Default) rbenv Ruby 2.0.0-p353 ʢ2.xܥ҆ఆ൛ʣ Ruby 2.1.0 ʢ࠷৽൛ʣ Ruby 1.9.3-p484 ʢ1.xܥ҆ఆ൛ʣ
OS homebrew .ruby- version App1 App2 ※20142݄8ݱࡏ Ruby 2.0.0p247
(Default) rbenv .ruby- version bundler bundler gem gem σΟϨΫτϦ͝ͱʹར༻͢ΔRubyͷόʔδϣϯΛࢦఆͰ͖Δ σΟϨΫτϦ͝ͱʹgemΛΠϯετʔϧͰ͖Δ Ruby 2.0.0-p353 ʢ2.xܥ҆ఆ൛ʣ Ruby 2.1.0 ʢ࠷৽൛ʣ Ruby 1.9.3-p484 ʢ1.xܥ҆ఆ൛ʣ
.ruby- version rails Ruby 2.0.0-p353 ʢ2.xܥ҆ఆ൛ʣ rbenv bundler gem
bundler gem ͕͜͜ΞϓϦຊମ ͜͜railsΠϯετʔϧޙআՄೳ
.ruby- version rails Ruby 2.0.0-p353 ʢ2.xܥ҆ఆ൛ʣ rbenv bundler gem
bundler gem ΧϨϯτ σΟϨΫτϦΛ ࢦఆ্ͯ͠ॻ͖
ҰํPythonͰ
PythonpyenvͰཧ OS homebrew Python 2.7.5 (Default) Python 3.2.4
ʢ3.2ܥ࠷ऴ൛ʣ Python 3.4.0 beta 3 ʢ࠷৽β൛ʣ Python 2.7.6 ʢ2.xܥ࠷৽൛ʣ pyenv ※20142݄8ݱࡏ
Γࠞͬͯ͟͠·ͬͨʂ OS homebrew Python 2.7.5 (Default) Python 3.2.4
ʢ3.2ܥ࠷ऴ൛ʣ Python 3.4.0 beta 3 ʢ࠷৽β൛ʣ Python 2.7.6 ʢ2.xܥ࠷৽൛ʣ pyenv pip App1 App2 ※20142݄8ݱࡏ
OS homebrew Python 2.7.5 (Default) Python 3.2.4 ʢ3.2ܥ࠷ऴ൛ʣ
Python 3.4.0 beta 3 ʢ࠷৽β൛ʣ Python 2.7.6 ʢ2.xܥ࠷৽൛ʣ pyenv pip App1 App2 pip virtualenv Python 2.7.6 Python 2.7.6 ※20142݄8ݱࡏ
nodeͳΜͪΌΒenvͬͯཧ͠ͳ͍ͷʁ
• n • nave • ndenv • nenv • nodebrew
• nodeenv • nvm ͳΜͪΌΒenv for node.js σΟϑΝΫτελϯμʔυ͕ͳ͍
What about GUI tools?
͑ʁެࣜαΠτߦͬͯɺΠϯετʔϥDLͯ͠ɺΠϯετʔϧը໘ΛϙνϙνΛ Nճ܁Γฦ͢ΜͰ͔͢ʁ
$tap phinze/homebrew-cask $install brew-cask $brew cask install virtualbox