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
Nurturing OpenJDK distribution: Eclipse Temurin Success History and plan
ivargrimstad
0
940
카카오페이는 어떻게 수천만 결제를 처리할까? 우아한 결제 분산락 노하우
kakao
PRO
0
110
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
120
型付き API リクエストを実現するいくつかの手法とその選択 / Typed API Request
euxn23
8
2.2k
色々なIaCツールを実際に触って比較してみる
iriikeita
0
330
macOS でできる リアルタイム動画像処理
biacco42
9
2.4k
Amazon Bedrock Agentsを用いてアプリ開発してみた!
har1101
0
340
Flutterを言い訳にしない!アプリの使い心地改善テクニック5選🔥
kno3a87
1
190
CSC509 Lecture 13
javiergs
PRO
0
110
Make Impossible States Impossibleを 意識してReactのPropsを設計しよう
ikumatadokoro
0
180
シェーダーで魅せるMapLibreの動的ラスタータイル
satoshi7190
1
480
Arm移行タイムアタック
qnighy
0
330
Featured
See All Featured
The Cost Of JavaScript in 2023
addyosmani
45
6.8k
Raft: Consensus for Rubyists
vanstee
136
6.6k
Testing 201, or: Great Expectations
jmmastey
38
7.1k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.8k
The Art of Programming - Codeland 2020
erikaheidi
52
13k
How to Ace a Technical Interview
jacobian
276
23k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
What's in a price? How to price your products and services
michaelherold
243
12k
What's new in Ruby 2.0
geeforr
343
31k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
130
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