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
570
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
非ブラウザランタイムとWeb標準 / Non-Browser Runtimes and Web Standards
petamoriken
0
430
『改訂新版 良いコード/悪いコードで学ぶ設計入門』活用方法−爆速でスキルアップする!効果的な学習アプローチ / effective-learning-of-good-code
minodriven
28
4.2k
Androidアプリの One Experience リリース
nein37
0
1.2k
functionalなアプローチで動的要素を排除する
ryopeko
1
210
Fixstars高速化コンテスト2024準優勝解法
eijirou
0
190
ある日突然あなたが管理しているサーバーにDDoSが来たらどうなるでしょう?知ってるようで何も知らなかったDDoS攻撃と対策 #phpcon.2024
akase244
2
7.7k
混沌とした例外処理とエラー監視に秩序をもたらす
morihirok
13
2.3k
生成AIでGitHubソースコード取得して仕様書を作成
shukob
0
630
shadcn/uiを使ってReactでの開発を加速させよう!
lef237
0
300
サーバーゆる勉強会 DBMS の仕組み編
kj455
1
300
オニオンアーキテクチャを使って、 Unityと.NETでコードを共有する
soi013
0
370
Асинхронность неизбежна: как мы проектировали сервис уведомлений
lamodatech
0
1.3k
Featured
See All Featured
Product Roadmaps are Hard
iamctodd
PRO
50
11k
The Pragmatic Product Professional
lauravandoore
32
6.4k
Building Your Own Lightsaber
phodgson
104
6.2k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
26
1.9k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
GitHub's CSS Performance
jonrohan
1030
460k
The World Runs on Bad Software
bkeepers
PRO
66
11k
Agile that works and the tools we love
rasmusluckow
328
21k
Testing 201, or: Great Expectations
jmmastey
41
7.2k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
27
1.5k
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