è¿½è¨ 2014-05-20 ã©ããjosegonzalez/homebrew-phpã¯åå¨ãããã¦ãããã®ã®private repositoryã«ãªã£ã¦ãã¾ã£ããããã $ brew tap josegonzalez/homebrew-php Cloning into '/usr/local/Library/Taps/josegonzalez/homebrew-php'... remote: Reusing existing pack: 6020, done. remote: Total 6020 (delta 0), reused 0 (delta 0) Receiving objects: 100% (6020/6020), 1.17 MiB | 290.00 KiB/s, done. Resolving deltas: 100% (3741/3741), done. Checking
ãã®URLã®ãã¼ã¸ã¯è¡¨ç¤ºãããã¨ãåºæ¥ã¾ããã§ããã IQãµã¼ãã¼
export PATH=$PATH:$HOME/.phpenv/bin # bashã®å ´å eval "$(phpenv init -)" # zshã®å ´å eval "$(phpenv init - zsh)" php-buildã®ã¤ã³ã¹ãã¼ã« 2013/08/27æç¹ã§ã¯ãHomebrewã®php-buildããGithubã®ãªãã¸ããªã®0.9.0ã®ã¿ã°ããåå¾ããããã«ãªã£ã¦ããã®ã§ãPHPã®ãã¼ã¸ã§ã³ãå°ãå¤ãã£ãã ä»åã¯PHP5.5ãã¤ã³ã¹ãã¼ã«ãããã£ãã®ã§ãFormulaãå°ãä¿®æ£ãã¦ãmasterãã©ã³ãããåå¾ãã¦ã¤ã³ã¹ãã¼ã«ã§ããããã«ããã /usr/local/Library/Formula/php-build.rb ã® url ã®é¨åã以ä¸ã®ããã«ä¿®æ£ãã¦ãããã¤ã³ã¹ãã¼ã«ããã
è¤æ°ã®PHPãã¼ã¸ã§ã³ãã¤ã³ã¹ãã¼ã«ãã¦ç®¡çãããã®ã§ãphpenv + php-build ã®ç°å¢ãå ã«ä½ãã¾ããå ¨ã¦ã¼ã¶ã¼ã§ä½¿ããããã«ãããã®ã§ã/usr/local ã«ã¤ã³ã¹ãã¼ã«ãã¾ãï¼ã·ã¹ãã ã¯ã¤ãã«ã¤ã³ã¹ãã¼ã«ï¼ãä½æ¥ã¯rootã«ã¦ã ã¾ãã/usr/local/src ã« github ãã phpenv ãåã£ã¦ãã¾ãã
å»å¦é¨äºåæ ¡ã«éããªããå½ç¶ã ãã©å¦è²»ãæ¯æãå¿ è¦ãããããã ã§ããå¦è²»ã®ç¸å ´ã¯ã©ããããã ã¨æãï¼äººã«ãã£ã¦çãã¯å¤ããã¨æããã©ãå®ã¯ã³ã£ãããããããé«ãï¼ ãã®è¨äºã§ã¯ããããªå»å¦é¨äºåæ ¡ã®å¦è²»ã«é¢ãã¦è©³ãã説æãã¦ãããã å»å¦é¨äºåæ ¡ã®å¦è²»ã¯ããªãé«ã ã¾ãå»å¦é¨äºåæ ¡ã®å ·ä½çãªå¦è²»ã ãã©ãé«æ ¡çã§æä½200ä¸åç¨åº¦ã¯è¦ç©ãã£ã¦ãããã»ããããã ãã¡ãã200ä¸å以ä¸ãããæãããã ããã§ãé«ã£ï¼ãã¨æã£ã人ã¯æ£ããã 塾ã大æäºåæ ¡ã¯å¹´éæ°åä¸åã§ã100ä¸åãè¶ ãããã¨ã¯ãã£ãã«ç¡ããããã ã¡ãªã¿ã«ãå½ç«å»å¦é¨ã®å¦è²»ãå¹´éæ°åä¸åã§æ¸ãã ããèãããã200ä¸åããã以ä¸ã¨ããéé¡ã¯è² æ ãéããã¨èããã¹ããããããªãã ãã¡ãã100ä¸åå°ã ã§éããå»å¦é¨äºåæ ¡ãããã ãã ãå¦è²»ãå®ãäºåæ ¡ã¯éãããããæ ¡èãå°ãªãã¨éãã®ã大å¤ã ã å¦è²»ã§äºåæ ¡ã®è³ªã®è¯ãæª
ç¶æ³ ãããªç¶æ 㧠% php -v PHP 5.4.8 (cli) (built: Feb 28 2013 16:24:20) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans ãããªãè¨ããã人ã¯åèã«ãã¦ãã ããã Call to undefined function: bindtextdomain() ããæ¹ ããã«ç§»åã㦠phpize ãã¦ããã® make % cd /var/tmp/php-build/source/5.4.8/ext/gettext % phpize % make ããã®ã³ãã¼ % cp
(2013-03-25追è¨)ä¸è¨PHPã®ãã«ãã«ã¯gccãautoconfãautomakeãlibtoolãbisonãre2cãlibmcryptãjpegãlibpngãflexï¼PHP 5.2.17ã®ã¿ï¼ãªã©ã®ã¤ã³ã¹ãã¼ã«ãå¿ è¦ã§ãã PHPã®ãã¼ã¸ã§ã³ãè²ã æãããã¨ãããã¼ãºã¯å¤ãã®äººããæã¡ã ã¨æãã¾ããããã解決ããæ¹æ³ã®ä¸ã¤ã«php-buildãããã¾ãããã®ãã¼ã«ã¨phpenvãçµã¿åããã¦ä½¿ããã¨ã§ãæ§ã ãªãã¼ã¸ã§ã³ã®PHPã楽ã«æ±ããã¨ãã§ãã¾ãã ããã2ã¤ã®ãã¼ã«ã«ã¤ãã¦ã¯æ¢ã«ä»ã®æ¹ãç´¹ä»ããã¦ãã¾ããã両ãã¼ã«ã®ææ°ãã¼ã¸ã§ã³ã«è¿½éãããå ´åãªã©ãå°ã ãããã«ããç¹ãããæ°ããã¾ããã¾ããã¤ã³ã¹ãã¼ã«æ¹æ³ãä½ç¨®é¡ãæµåããããã©ãããã®ããã¹ããæ©ãã§ãã人ãããã®ã§ã¯ãªãã§ããããã æ¬ç¨¿ã§ã¯phpenv+php-buildãåãã©ã使ã£ã¦ããããç´¹ä»ãã¾ã
ä»ã¾ã§æå㧠Apache ã® php ã¢ã¸ã¥ã¼ã«ãåãæ¿ãã¦ããã©ãphpenv-apache-version ãè¯ãã¨èãã¦ç°å¢ãå¤ãã¦ã¿ã¾ããã åææ¡ä»¶ Homebrew 㨠Homebrew çµç±ã§ MySQL ãæ¢ã«å ¥ã£ã¦ã¾ãã Apache ã®ã¤ã³ã¹ãã¼ã« ã¾ã㯠apache ã®ã¤ã³ã¹ãã¼ã«ãã $ brew tap Homebrew/dupes $ brew install httpd ã¿ã¼ããã«ãåèµ·åãã¦ãã¼ã¸ã§ã³ã念ã®ããç¢ºèª $ httpd -v Server version: Apache/2.2.23 (Unix) Server built: Mar 22 2013 13:47:14 httpd.conf ã®ç·¨é /usr/local/etc/apache2/httpd.conf ã®æå¾ã«ä»¥ä¸ãè¿½è¨ # conf.d以ä¸ã®.confããã¹ã¦èªã¿è¾¼ã Inclu
é害
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}