Thinker

PHP安装扩展

途径

  • 源码(源码下有一个ext文件夹,大部分扩展都可以找到)
  • PCEL
  • 通过系统包管理器(例如 apt-get yum安装的),不推荐此方式

安装

phpize
./configure --with-php-config=/usr/local/php7.1/bin/php-config
make
make test
make install

修改PHP配置文件

说明:php有可能会有两个配置文件,一个是cli用的 一个是cgi用的,请区分好

extension = /usr/local/php7.2/lib/php/extensions/no-debug-non-zts-20170718/intl.so #intl.so是扩展的名字

查看是否安装成功

php -m | grep intl #intl为扩展名字,请自行替换
posted @ 2018-06-05 15:38  ThinkerBlog  阅读(191)  评论(0编辑  收藏  举报