homebrew - brew install php56-intl 裝上了,但php並沒有載入

來源:互聯網
上載者:User
系統 os x 10.11
用的是 brew 下的php56
brew 下的 nginx

下了一個項目,在安裝過程中提示缺少,intl 和 apc擴充,就用下面的語句下載了,也裝上了,但php還是沒有載入,這怎麼弄?
另外問下,apc 擴充怎麼裝,用 brew search php56 並沒有 apc 擴充

➜  brew reinstall php56-intl  --build-from-source==> Reinstalling homebrew/php/php56-intl==> Downloading https://php.net/get/php-5.6.17.tar.bz2/from/this/mirrorAlready downloaded: /Library/Caches/Homebrew/php56-intl-5.6.17==> /usr/local/opt/php56/bin/phpize==> ./configure --prefix=/usr/local/Cellar/php56-intl/5.6.17 --with-php-config=/us==> make==> CaveatsTo finish installing intl for PHP 5.6:  * /usr/local/etc/php/5.6/conf.d/ext-intl.ini was created,    do not forget to remove it upon extension removal.  * Validate installation via one of the following methods:  *  * Using PHP from a webserver:  * - Restart your webserver.  * - Write a PHP page that calls "phpinfo();"  * - Load it in a browser and look for the info on the intl module.  * - If you see it, you have been successful!  *  * Using PHP from the command line:  * - Run "php -i" (command-line "phpinfo()")  * - Look for the info on the intl module.  * - If you see it, you have been successful!==> Summary?  /usr/local/Cellar/php56-intl/5.6.17: 3 files, 372.8K, built in 41 seconds

回複內容:

系統 os x 10.11
用的是 brew 下的php56
brew 下的 nginx

下了一個項目,在安裝過程中提示缺少,intl 和 apc擴充,就用下面的語句下載了,也裝上了,但php還是沒有載入,這怎麼弄?
另外問下,apc 擴充怎麼裝,用 brew search php56 並沒有 apc 擴充

➜  brew reinstall php56-intl  --build-from-source==> Reinstalling homebrew/php/php56-intl==> Downloading https://php.net/get/php-5.6.17.tar.bz2/from/this/mirrorAlready downloaded: /Library/Caches/Homebrew/php56-intl-5.6.17==> /usr/local/opt/php56/bin/phpize==> ./configure --prefix=/usr/local/Cellar/php56-intl/5.6.17 --with-php-config=/us==> make==> CaveatsTo finish installing intl for PHP 5.6:  * /usr/local/etc/php/5.6/conf.d/ext-intl.ini was created,    do not forget to remove it upon extension removal.  * Validate installation via one of the following methods:  *  * Using PHP from a webserver:  * - Restart your webserver.  * - Write a PHP page that calls "phpinfo();"  * - Load it in a browser and look for the info on the intl module.  * - If you see it, you have been successful!  *  * Using PHP from the command line:  * - Run "php -i" (command-line "phpinfo()")  * - Look for the info on the intl module.  * - If you see it, you have been successful!==> Summary?  /usr/local/Cellar/php56-intl/5.6.17: 3 files, 372.8K, built in 41 seconds

不太清楚你具體的環境配置是怎麼樣的。不過需要注意的有如下:
php的ISAPI有好幾個,cli模式,apache模式等等,可能每個模式都對應一個php.ini,是不是在正確的ini檔案中添加extension=/path/path/intl.so了?
apc如果brew沒有提供,那就只能手動編譯安裝了,一般步驟是這樣的:
到apc源碼根目錄,phpize-》configure-》make-》make install,到ini檔案中添加extension=/path/apc.so

  • 相關文章

    聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.