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

Install Rails On Mac OS - RORLab Season 3-2

seapy
March 16, 2013

Install Rails On Mac OS - RORLab Season 3-2

RORLab 에서 발표한 레일스 설치에 대한 내용.
동영상 : http://youtu.be/lBnO2xvwO0k

seapy

March 16, 2013
Tweet

More Decks by seapy

Other Decks in Programming

Transcript

  1. REQUIREMENTS • Over Mac OS X Mountain Lion(10.8) ই݃ 10.7ب

    ؼѢীਃ • Xcode or Command Line Tools for Xcode • ஹ౵ੌ ೡٸ ೙ਃ೤פ׮. ޖܐ૑݅ Command Line Tools ݅ ߉ਵ۰ݶ গ೒ѐߊ੗ ҅੿੉ ೙ਃ.
  2. Command Line Tools for Xcode • http://developer.apple.com/downloads • ӝઓী Xcode

    ܳ ࢸ஖೮ਸ҃਋ "Preferences > Downloads" ীࢲ ࢸ஖
  3. RBENV दझమী ৈ۞ѐ੄ Ruby ܳ ࢸ஖ೞҊ औѱ ੹ജೡࣻ ੓ѱ ೧઱ח

    ೐۽Ӓ۔. ӝઓী RVM ੉ ࢸ஖غয ੓ח҃਋ ઁѢ೧ঠೣ
  4. $ echo 'if which rbenv > /dev/null; then eval "$(rbenv

    init -)"; fi' >> ~/.profile # ऌ੉ द੘ೡٸ݃׮ rbenv ਸ ੸ਊ $ exec $SHELL -l # ऌ ߸҃ࢎ೦ਸ ੸ਊೞӝ ਤ೧ ׮द द੘ $ brew update # homebrew ࢸ஖ झ௼݀౟ܳ ୭नਵ۽ সؘ੉౟ $ brew install rbenv
  5. $ brew install ruby-build $ rbenv install -l # ࢸ஖оמೠ

    ruby ݾ۾ ࠁӝ $ rbenv install 1.9.3-p392 $ rbenv rehash # ࢜۽਍ ruby ܳ ࢸ஖ೞѢա command ݺ۸যܳ ઁҕ ೞח gem ࢸ஖द ݃׮ प೯೧઱যঠ ೠ׮. $ rbenv global 1.9.3-p392 # ݽٚ ऌীࢲ ࢎਊೡ ruby ߡ੹ ࢸ੿ $ rbenv local 1.9.3-p392 # ౠ੿ ಫ؊ ೞਤীࢲ ࢎਊೡ ruby ߡ੹ ࢸ੿
  6. $ brew install mysql $ mkdir /usr/local/var/mysql # ؘ੉ఠܳ ੷੢ೡ

    ಫ؊ ޷ܻ ࢤࢿ $ mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp # ୡӝ ࢸ੿. homebrewܳ ੉ਊ೧ ࢸ஖ೞݶ աয়ח ݫद૑ী ੉ ݺ۸যܳ प೯ೞۄҊ ݺद $ mysql.server start # mysql ࢲߡ द੘. ઙܐח stop $ mysql -uroot $ /usr/local/opt/mysql/bin/mysqladmin -u root password 'new-password' # ࠁউਸ ਤ೧ࢲ root ࠺޻ߣഐܳ ߄Բ੗