途径

  • 源码(源码下有一个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为扩展名字,请自行替换

相关文章:

  • 2022-12-23
  • 2021-12-27
  • 2021-12-18
  • 2021-12-18
  • 2022-01-11
  • 2021-07-28
  • 2021-05-30
猜你喜欢
  • 2021-12-18
  • 2021-12-21
  • 2021-10-17
  • 2022-12-23
相关资源
相似解决方案