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
150
How to Brew Coffee at Home - A Guide For Beginners
tetsuya
0
560
Dive into ‘An error occurred while installing mysql2’
tetsuya
0
11
Understanding Syntax Error on Ruby Blocks
tetsuya
0
47
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
最新TCAキャッチアップ
0si43
0
200
2024/11/8 関西Kaggler会 2024 #3 / Kaggle Kernel で Gemma 2 × vLLM を動かす。
kohecchi
5
940
as(型アサーション)を書く前にできること
marokanatani
10
2.7k
Amazon Qを使ってIaCを触ろう!
maruto
0
420
NSOutlineView何もわからん:( 前編 / I Don't Understand About NSOutlineView :( Pt. 1
usagimaru
0
340
Remix on Hono on Cloudflare Workers
yusukebe
1
300
ECS Service Connectのこれまでのアップデートと今後のRoadmapを見てみる
tkikuc
2
250
Compose 1.7のTextFieldはPOBox Plusで日本語変換できない
tomoya0x00
0
200
どうして僕の作ったクラスが手続き型と言われなきゃいけないんですか
akikogoto
1
120
TypeScript Graph でコードレビューの心理的障壁を乗り越える
ysk8hori
3
1.2k
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
2
520
レガシーシステムにどう立ち向かうか 複雑さと理想と現実/vs-legacy
suzukihoge
14
2.3k
Featured
See All Featured
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
We Have a Design System, Now What?
morganepeng
50
7.2k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
900
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
93
16k
KATA
mclloyd
29
14k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Ruby is Unlike a Banana
tanoku
97
11k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Raft: Consensus for Rubyists
vanstee
136
6.6k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
How to Think Like a Performance Engineer
csswizardry
20
1.1k
Building Better People: How to give real-time feedback that sticks.
wjessup
364
19k
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