Homebrewã使ãã®ãããã
ããã°ã©ã ã®ãä»äºãã¦ãã¨ããããªè¨èªããã¼ã«ãã¤ã³ã¹ãã¼ã«ããã®ã大å¤ã§ãããããã±ã¼ã¸ç®¡çãã¼ã«ã¨ãã使ãã¨ä»åº¦ã¯ãã®ããã±ã¼ã¸ç®¡çãã¼ã«ç±æ¥ã®ãã©ãã«ã«å·»ãè¾¼ã¾ããããããã§ãããããããé¢åã§Homebrewã¨ããªãã¨ãenvã¨ã使ããªããªã£ã¦ã ãã¶çµã¡ã¾ããã
ä»ã¯ã»ã¨ãã©ã®ãã¼ã«ãæåã§ã¤ã³ã¹ãã¼ã«ãã¦ãã¾ããã ããã㯠./configure --prefix=$PREFIX && make && make installãscalaã¨ãã¯zipè½ã¨ãã¦ãã¦å±éãã¦ã¾ãã
ãã£ã¬ã¯ããªæ§æã¨ãã©ãã§ãè¯ãã¨æããã§ãããç§ã¯$HOME/opt/srcã«tarã¨ãzipã¨ãå±éããã½ã¼ã¹ãç½®ãã¦prefixã$HOME/opt/pkg/... ã«ãã$HOME/opt/bin以ä¸ã«ã·ã³ããªãã¯ãªã³ã¯ä½ã£ã¦PATHéãã¦ã¾ããè¤æ°ã®ãã¼ã¸ã§ã³ãä½µç¨ããã®ãåç´ã«ãã«ãã¹ã§ã³ãã³ãå©ãã°è¯ãã ãã§ãããåç´ã§ãã
/Users/toshi/opt âââ bin â  âââ php -> /Users/toshi/opt/pkg/php-7.2.5/bin/php â  âââ python3 -> /Users/toshi/opt/pkg/python-3.6.5/bin/python3 â  âââ ruby -> /Users/toshi/opt/pkg/ruby-2.5.1/bin/ruby â  âââ scala -> /Users/toshi/opt/pkg/scala-2.12.6/bin/scala âââ pkg â  âââ php-7.2.5 â  âââ python-3.6.5 â  âââ ruby-2.5.1 â  âââ scala-2.12.6 âââ src âââ Python-3.6.5 âââ php-7.2.5 âââ ruby-2.5.1
ä¾åã©ã¤ãã©ãªéããããã«ãç°å¢æ´ããã確ãã«æéã¯ããããã§ããããã®ä»£ããåãã¼ã«ã¸ã®ç解ã¯æ·±ã¾ãã¾ãããã«ãã®ã¨ã©ã¼ãåºããã¨ã¯ãã¾ã«ããã¾ããçµæ§åç´ãªãã¤ãå¤ãã®ã§ãããªã«å°ãã»ã©ã§ã¯ãªãã§ããå°ãªãã¨ãHomebrewã¨ããªãã¨ãenvããããã°ããæã®ãããªä¸æ¯ãã¯ãªãããèªåã®ç°å¢ãããææ¡ã§ããã®ã§ãã©ãã«èªä½ãæ¸ãããã«æãã¾ãã
ããã¨ã«ããä¾åã©ã¤ãã©ãªã¨ãå¤ãã¦ãã«ããæ»ã¬ã»ã©ããã©ãããï¼ã£ã¦ã®ã¯dockerã¨ã使ã£ã¦ãã¾ãããããã¾ãããã¨ã¯ããã°ã©ãã³ã°è¨èªã¿ããã«è¤æ°ãã¼ã¸ã§ã³ä½¿ããããå¿ è¦æ§ããããã¤ã§ãªããã°å ¬å¼ã®ã¤ã³ã¹ãã¼ã©ã使ããã¨ãããã¾ãããã®è¾ºæ確ãªåºæºã¯æã£ã¦ããªãã§ããã¾ãåã«Homebrewãæ°ã«é£ããªãã£ãã ãã§ããã