Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How to Setup Your Mac

How to Setup Your Mac

Mac での開発環境構築手順を説明します

Tetsuya Kaneko

February 08, 2014
Tweet

More Decks by Tetsuya Kaneko

Other Decks in Programming

Transcript

  1. • શ͘ҧ͏όʔδϣϯ͕ڞଘՄೳ • ίϚϯυҰͭͰϝΠϯͷόʔδϣϯΛ੾Γସ͑ΒΕΔ OS homebrew rbenv ※2014೥2݄8೔ݱࡏ Ruby 2.0.0p247

    
 (Default) Ruby 2.0.0-p353 
 ʢ2.xܥ҆ఆ൛ʣ Ruby 2.1.0 
 ʢ࠷৽൛ʣ Ruby 1.9.3-p484 
 ʢ1.xܥ҆ఆ൛ʣ
  2. $ 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
  3. OS homebrew gem App1 ※2014೥2݄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ܥ҆ఆ൛ʣ
  4. ࠞͬͯ͟͠·͏ʂ OS homebrew gem App1 App2 ※2014೥2݄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ܥ҆ఆ൛ʣ
  5. OS homebrew .ruby- version App1 App2 ※2014೥2݄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ܥ҆ఆ൛ʣ
  6. .ruby- version rails Ruby 2.0.0-p353 
 ʢ2.xܥ҆ఆ൛ʣ rbenv bundler gem

    bundler gem ͕͜͜ΞϓϦຊମ ͜͜͸railsΠϯετʔϧޙ࡟আՄೳ
  7. .ruby- version rails Ruby 2.0.0-p353 
 ʢ2.xܥ҆ఆ൛ʣ rbenv bundler gem

    bundler gem ΧϨϯτ 
 σΟϨΫτϦΛ 
 ࢦఆ্ͯ͠ॻ͖
  8. Python͸pyenvͰ؅ཧ 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 ※2014೥2݄8೔ݱࡏ
  9. ΍͸Γࠞͬͯ͟͠·ͬͨʂ 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 ※2014೥2݄8೔ݱࡏ
  10. 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 ※2014೥2݄8೔ݱࡏ
  11. • n • nave • ndenv • nenv • nodebrew

    • nodeenv • nvm ͳΜͪΌΒenv for node.js σΟϑΝΫτελϯμʔυ͕ͳ͍