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
160
How to Brew Coffee at Home - A Guide For Beginners
tetsuya
0
560
Dive into ‘An error occurred while installing mysql2’
tetsuya
0
12
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
クリエイティブコーディングとRuby学習 / Creative Coding and Learning Ruby
chobishiba
0
3.9k
Keeping it Ruby: Why Your Product Needs a Ruby SDK - RubyWorld 2024
envek
0
190
rails stats で紐解く ANDPAD のイマを支える技術たち
andpad
1
290
Webエンジニア主体のモバイルチームの 生産性を高く保つためにやったこと
igreenwood
0
330
From Translations to Multi Dimension Entities
alexanderschranz
2
130
良いユニットテストを書こう
mototakatsu
7
2.2k
わたしの星のままで一番星になる ~ 出産を機にSIerからEC事業会社に転職した話 ~
kimura_m_29
0
180
Amazon S3 NYJavaSIG 2024-12-12
sullis
0
100
testcontainers のススメ
sgash708
1
120
ブラウザ単体でmp4書き出すまで - muddy-web - 2024-12
yue4u
3
470
コンテナをたくさん詰め込んだシステムとランタイムの変化
makihiro
1
130
Symfony Mapper Component
soyuka
2
730
Featured
See All Featured
Site-Speed That Sticks
csswizardry
2
190
We Have a Design System, Now What?
morganepeng
51
7.3k
Statistics for Hackers
jakevdp
796
220k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
28
4.4k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
66k
Facilitating Awesome Meetings
lara
50
6.1k
Navigating Team Friction
lara
183
15k
4 Signs Your Business is Dying
shpigford
181
21k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
Optimizing for Happiness
mojombo
376
70k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
32
2.7k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
170
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