building-ruby-dev-env

 building-ruby-dev-env

Ruby開発環境構築
2013.4.18

5ad0bb268dd2605b09165d464308cb7e?s=128

Kuniaki IGARASHI

March 24, 2013
Tweet

Transcript

  1. 3VCZ 3BJMT ։ൃ؀ڥߏங ,VOJBLJ*("3"4)* 

  2.  B3BJMT*OTUBMMFS 8JOEPXTBOE.BD ɹ ΤσΟλ C7JSUVBM#PY6CVOUVJNBHF ओͳ3VCZ؀ڥͷߏஙํ๏ B·ͨ͸CͲͪΒ͔ͷํ๏Ͱ3VCZ؀ڥΛߏஙͯͩ͘͠ ͍͞ɻ3BJMT*OTUBMMFS ΤσΟλͷํ͕ॳ৺ऀ޲͚Ͱ͢ɻ

  3. B 3BJMT*OTUBMMFS 8JOBOE.BD 

  4. 3BJMT*OTUBMMFS 8JOEPXTBOE.BD ɾ3BJMTΠϯετʔϥʔΛ %PXOMPBE *OTUBMM IUUQSBJMTJOTUBMMFSPSH ɾ໊લͱFNBJMΛೖྗ HJUͷઃఆͰ࢖ΘΕ·͢ɻকདྷɺ͜ͷ৘ใΛެ։͢ΔՄೳੑ͕͋ΔͷͰɺެ։͞Ε ͨ͘ͳ͍৔߹͸χοΫωʔϜ΍μϛʔͷϝʔϧΞυϨεͰ΋େৎ෉Ͱ͢ɻ 

    8JOEPXT൛ .BD൛
  5. 3BJMT*OTUBMMFS 8JOEPXTىಈํ๏ ɾىಈ͢Δ৔߹͸ϝχϡʔ͔ΒҎԼΛ࣮ߦ ʮݕࡧʯ͔Β$PNNBOE1SPNQUXJUI 3VCZBOE3BJMTΛݕࡧ͢Δ ·ͨ͸$PNNBOE1SPNQUXJUI3VCZ BOE3BJMTΞΠίϯΛΫϦοΫ ىಈ͢ΔͱҎԼͷը໘͕දࣔ͞Ε·͢ɻ  ҎԼͷίϚϯυΛଧ͍ͬͯͩ͘͞

    SVCZW SVCZQ ͱදࣔ͞ΕΕ͹0,Ͱ͢ɻ Qͷ਺ࣈ͸ҧͬͯ΋େৎ෉Ͱ͢ɻ
  6. 3BJMT*OTUBMMFS .BDىಈํ๏ ɾλʔϛφϧBQQΛىಈ͢Ε͹0,Ͱ͢ɻ ΞϓϦέʔγϣϯϢʔςΟϦςΟλʔϛφϧBQQ  λʔϛφϧ্ͰҎԼͷίϚϯυΛଧ͍ͬͯͩ͘͞ SVCZW SVCZQ ͱදࣔ͞ΕΕ͹0,Ͱ͢ɻ Qͷ਺ࣈ͸ҧͬͯ΋େৎ෉Ͱ͢ɻ

  7. 3BJMTόʔδϣϯΞοϓ  HFNVQEBUFSBJMTOPSJOPSEPD 3BJMTͷόʔδϣϯΛ࠷৽ʹ͠·͢ɻ ίϚϯυϓϩϯϓτ 8JO PSλʔϛφϧ .BD Λىಈͯ͠ ҎԼͷίϚϯυΛ࣮ߦ͠·͢ɻ

    ˞͸ೖྗෆཁͰ͢ɻTIFMMίϚϯυΛද͢ϚʔΫͰ͢ɻ ࣮ߦޙɺҎԼͷίϚϯυͰόʔδϣϯΛ֬ೝ͍ͯͩ͘͠͞ɻ SBJMTW 3BJMTYͱग़Ε͹0, ࢿྉ࡞੒࣌࠷৽
  8. ΤσΟλ  ΤσΟλ͸ϓϩάϥϜΛॻͨ͘ΊͷΞϓϦͰ͢ɻ 4VCMJNF5FYUͱ͍͏ΤσΟλ͕͓קΊͰ͢ɻ 8JOEPXT༻΋.BD༻΋͋Γ·͢ɻ࣍ϖʔδ͔Β Πϯετʔϧํ๏Λઆ໌͠·͢ɻ ΄͔ʹɺ8JOEPXTͷ৔߹͸,PNPEP&EJUPSɺ .BDͷ৔߹͸$PU&EJUPSͱ͍͏ͷ΋͋Γ·͢ɻ

  9. 4VCMJNF5FYU  ҎԼͷαΠτ͔Βμ΢ϯϩʔυͯ͠Πϯετʔϧ͍ͯͩ͘͠͞ɻ ˞8JOͷਓ͸ࣗ෼ͷ04͕CJU൛͔CJU൛͔ʹԠͯ͡ରԠ͢ΔύοέʔδΛ μ΢ϯϩʔυ͍ͯͩ͘͠͞ɻ΋͠΋෼͔Βͳ͍৔߹͸ɺ·ͣ͸CJU൛ͷΠϯε τʔϥΛ࣮ߦ͍ͯͩ͘͠͞ɻΠϯετʔϧͰ͖ͨ৔߹͸ͦΕͰ0,Ͱ͢ɻΤϥʔ ʹͳͬͨ৔߹͸CJU൛ͷΠϯετʔϥΛ࣮ߦ͍ͯͩ͘͠͞ɻ IUUQXXXTVCMJNFUFYUDPN

  10. 8JOEPXT൛ͷΈ 4VCMJNF5FYU೔ຊޠೖྗमਖ਼ύον  4VCMJNF5FYUͷ8JOEPXT൛͸೔ຊޠೖྗͷද͕ࣔมʹͳΔ ໰୊͕͋Γ·͢ɻमਖ਼ϓϩάϥϜ͕༗ࢤʹΑΓఏڙ͞Ε͍ͯ·͢ ͷͰɺͪ͜Β΋Πϯετʔϧ͍ͯͩ͘͠͞ɻ ͜ͷΑ͏ͳमਖ਼ϓϩάϥϜΛύον ឺ૑ߣ ͱ͍͍·͢ɻ ҎԼ͔Β[JQϑΝΠϧΛμ΢ϯϩʔυͯ͠ղౚ͠·͢ɻ

    IUUQTHJUIVCDPNDIJLBUPJLF*.&4VQQPSUBSDIJWFNBTUFS[JQ 4VCMJNF5FYUΞϓϦΛىಈ͠ɺϝχϡʔͷ1SFGFSFODFT͔Β#SPXTF 1BDLFHFTΛબͼɺϑΥϧμΛදࣔͤ͞·͢ɻμ΢ϯϩʔυͨ͠[JQΛղౚ͠ ͯͰ͖ͨϑΥϧμ *.&4VQQPSUNBTUFS Λ͜͜΁ίϐʔ͠·͢ɻ 4VCMJNF5FYUΛ࠶ىಈ͠·͢ɻ ೔ຊޠΛೖྗதʹมͳ৔ॴʹදࣔ͞Εͳ͚Ε͹मਖ਼ద༻͸੒ޭͰ͢ɻ
  11. C 7JSUVBM#PY6CVOUVJNBHF 

  12. 7. 7JSUVBM.BDIJOF ͋ͳͨͷ8JOEPXTPS.BD 7.-JOVY ผͷ1$ ͋ͳͨͷ1$ͷதͰ ผͷ1$Λಈ͔ٕ͢ज़ 

  13. 7.؀ڥ ͋ͳͨͷ8JOEPXTPS.BD 7.-JOVY ผͷ1$ 7.-JOVY্Ͱ3VCZΛಈ͔͠·͢ɻ ʢ؀ڥ࡞੒͕༰қ͔ͩΒͰ͢ɻʣ ͦͷ͔ΘΓɺϚγϯύϫʔ͸ଟΊʹඞཁͰ͢ɻ 

  14. 7JSUVBM#PY6CVOUVJNBHF ɾ7JSUVBM#PYΛΠϯετʔϧ͠·͢ɻ IUUQTXXXWJSUVBMCPYPSHXJLJ%PXOMPBET ɾ7JSUVBM#PYͰಈ࡞͢Δ6CVOUVΠϝʔδϑΝΠϧ WIE Λ༻ҙͯ͋͠Γ·͢ɻࣗ෼ͷϚγϯ΁ίϐʔ͠·͢ɻ IUUQTHJUIVCDPNJHBJHBIJUPUTVCBTIJSVCZ ɾ7JSUVBM#PYηοτΞοϓํ๏ͷϖʔδ ҎԼͷ63-ΛࢀߟʹηοτΞοϓ͍ͯͩ͘͠͞ɻ IUUQXXXVCVOUVMJOVYKQEPXOMPBEKBSFNJYWIE

    ࣍ϖʔδɺ࣍ʑϖʔδʹϙΠϯτΛషͬͯ͋Γ·͢ɻ 
  15. 

  16. 

  17. 7JSUVBM#PY6CVOUVJNBHF3VCZ؀ڥىಈํ๏ 6CVOUVΛμϒϧΫϦοΫ࣮ͯ͠ߦ͠·͢ɻ ύεϫʔυEFWEFWΛೖྗͯ͠ϩάΠϯ͠ ·͢ɻ 

  18. 7JSUVBM#PY6CVOUVJNBHF3VCZ؀ڥىಈํ๏ ʮ୺຤ 5FSNJOBM ʯΛ࣮ߦ͠·͢ɻ ୺຤Λىಈ͢Δͱ͜ͷ΢Πϯυ΢͕ग़·͢ɻ  ҎԼͷίϚϯυΛଧ͍ͬͯͩ͘͞ SVCZW SVCZQ ͱදࣔ͞ΕΕ͹0,Ͱ͢ɻ

  19. 7JSUVBM#PY6CVOUVJNBHF3VCZ؀ڥىಈํ๏ ΤσΟλΛىಈ͢Δͱ͖͸ɺϝχϡʔʹ͋Δ ࢴͱԖචͷΞΠ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