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-build ã¯ãè¤æ°ãã¼ã¸ã§ã³ã®PHPã®ãã¦ã³ãã¼ãã»å±éã»ã³ã³ãã¤ã«ã»ã¤ã³ã¹ãã¼ã«ã¾ã§ãã³ãã³ãã²ã¨ã¤ã§è¡ãããã¼ã«ã§ããæ¡å¼µãPEARã©ã¤ãã©ãªã®ç®¡çãªã©ãè¡ã pyrus ãã¤ã³ã¹ãã¼ã«æã«å梱ããããããpearã³ãã³ãã¯ã¤ã³ã¹ãã¼ã«ããã¾ããã ããã§ã¯ãpyrus ã§ã¯ã¤ã³ã¹ãã¼ã«ã§ããªã pecl ã©ã¤ãã©ãªã使ãããã«ã pyrus ãç¡å¹ã«ãã pear ã使ããããã«ããæ¹æ³ãç´¹ä»ãã¾ãã Ubuntuç°å¢ã§ã®æé ã§ã 1. php-build ã®ã¤ã³ã¹ãã¼ã« ã½ã¼ã¹ã³ã¼ãããã§ãã¯ã¢ã¦ããã:
è¤æ°ã®PHPãã¼ã¸ã§ã³ãã¤ã³ã¹ãã¼ã«ãã¦ç®¡çãããã®ã§ãphpenv + php-build ã®ç°å¢ãå ã«ä½ãã¾ããå ¨ã¦ã¼ã¶ã¼ã§ä½¿ããããã«ãããã®ã§ã/usr/local ã«ã¤ã³ã¹ãã¼ã«ãã¾ãï¼ã·ã¹ãã ã¯ã¤ãã«ã¤ã³ã¹ãã¼ã«ï¼ãä½æ¥ã¯rootã«ã¦ã ã¾ãã/usr/local/src ã« github ãã phpenv ãåã£ã¦ãã¾ãã
å»å¦é¨äºåæ ¡ã«éããªããå½ç¶ã ãã©å¦è²»ãæ¯æãå¿ è¦ãããããã ã§ããå¦è²»ã®ç¸å ´ã¯ã©ããããã ã¨æãï¼äººã«ãã£ã¦çãã¯å¤ããã¨æããã©ãå®ã¯ã³ã£ãããããããé«ãï¼ ãã®è¨äºã§ã¯ããããªå»å¦é¨äºåæ ¡ã®å¦è²»ã«é¢ãã¦è©³ãã説æãã¦ãããã å»å¦é¨äºåæ ¡ã®å¦è²»ã¯ããªãé«ã ã¾ãå»å¦é¨äºåæ ¡ã®å ·ä½çãªå¦è²»ã ãã©ãé«æ ¡çã§æä½200ä¸åç¨åº¦ã¯è¦ç©ãã£ã¦ãããã»ããããã ãã¡ãã200ä¸å以ä¸ãããæãããã ããã§ãé«ã£ï¼ãã¨æã£ã人ã¯æ£ããã 塾ã大æäºåæ ¡ã¯å¹´éæ°åä¸åã§ã100ä¸åãè¶ ãããã¨ã¯ãã£ãã«ç¡ããããã ã¡ãªã¿ã«ãå½ç«å»å¦é¨ã®å¦è²»ãå¹´éæ°åä¸åã§æ¸ãã ããèãããã200ä¸åããã以ä¸ã¨ããéé¡ã¯è² æ ãéããã¨èããã¹ããããããªãã ãã¡ãã100ä¸åå°ã ã§éããå»å¦é¨äºåæ ¡ãããã ãã ãå¦è²»ãå®ãäºåæ ¡ã¯éãããããæ ¡èãå°ãªãã¨éãã®ã大å¤ã ã å¦è²»ã§äºåæ ¡ã®è³ªã®è¯ãæª
å¹³ç´ ãããPHPããï¼ãããæ顧ããã ããèª ã«ãããã¨ããããã¾ãã 2006å¹´ããéå¶ãã¦ã¾ããã¾ãããPHPããï¼ãã§ããããµã¼ãã¹ã®å©ç¨ç¶æ³ãéã¿ã¾ãã¦ã2018å¹´9æ25æ¥ï¼ç«ææ¥ï¼ããã¡ã¾ãã¦ãµã¼ãã¹ãçµäºããã¦ããã ããã¨ã«ãªãã¾ããã ãµã¼ãã¹çµäºã«ä¼´ãã¾ãã¦ã2018å¹´8æ28æ¥ï¼ç«ææ¥ï¼ãæã¡ã¾ãã¦ãæ°è¦ä¼å¡ç»é²ãªãã³ã«Q&Aæ²ç¤ºæ¿ã¸ã®æ°ããªè³ªåãåçã®æ稿ãåæ¢ããã¦ããã ãã¾ãã ãªãããç»é²ããã ããçæ§ã®å人æ å ±ã«ã¤ãã¾ãã¦ã¯ããµã¼ãã¹çµäºå¾ãå¼ç¤¾ã責任ããã£ã¦æ¶å»ãããã¾ãã ããã¾ã§å¤ãã®çæ§ã«ãå©ç¨ãããã ãã¾ãã¦ãèª ã«ãããã¨ããããã¾ããã ãµã¼ãã¹çµäºã«ä¼´ããçæ§ã«ã¯ãä¸ä¾¿ãããããããã¾ããã¨ãå¿ãããè©«ã³ç³ãä¸ãã¾ãã æ¬ä»¶ã«é¢ãããåãåããã¯ãã¡ããããé¡ããããã¾ãã
ç¶æ³ ãããªç¶æ 㧠% 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
PHPã®Gettextæ¡å¼µã¯ãPHPã«æ¨æºçã«ã¤ãã¦ãã¾ãã èªåã§ãã«ããããããå ´åãããã©ã«ãã§æ©è½ãæå¹ã«ãªã£ã¦ãªãã£ãããããããããªãã®ã§æ³¨æã§ãã ãªã®ã§ãPHPã§è¤æ°è¨èªå¯¾å¿ããã«ã¯ãgettextã使ãã®ãä¸çªç°¡åã§ãã # ããä¿¡ãã¦ãã¾ããã åè: ã¦ãã¦ã©ã Unoh Labs: 5åã§ããã PHP ã§æ¸ããã Web ãµã¼ãã¹ã®å½éå(ãã®2) http://labs.unoh.net/2006/06/5_php_web_2.html â»ãã»ã¨ãã©ãã¾ãã¾ã§ããã ãã¦ãGettextã®ä½¿ãæ¹ã§ãã åæã¨ãã¦ãphpãåä½ããããã«Webãµã¼ã(apache)ãè¨å®æ¸ã¿ã§ããã¤ãphpã®gettextãæå¹ã«ãªã£ã¦ãããã¨ãå¿ è¦ã§ãã ã¾ããgettext ãã¤ã³ã¹ãã¼ã«ããã¦ããå¿ è¦ãããã¾ãã ã¾ããã¹ã¯ãªããããã ãã¡ã¤ã«ã®ã¨ã³ã³ã¼ãã¯UTF-8ã«ã
(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
I have a brand new Mac, with Lion preinstalled. I enabled Apache, the PHP module. phpinfo() works but there is no support for gettext. Writing extension=php_gettext.so in php.ini did not help. So I tried to locate it in the filesystem, but it seems there are no PHP extensions available. Where are PHP extensions in OS X Lion?
For a recent project I needed to use the ssh2 extension with PHP. I had tried to use phpseclib, but found that it doesnât support for DSA keys (a requirement for my project). Using the instructions below, you can easily install ssh2 support for PHP using homebrew. Using homebrew to install libssh2: brew install libssh2 I was working with a fresh OSX Lion install, so I needed to install pear. Lucki
é害
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}