PHP7安装intl和xsl扩展

背景:解决magento2安装过程中缺少php扩展的问题:ext-intl和ext-xsl

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested PHP extension ext-intl * is missing from your system. Install or enable PHP's intl extension.
  Problem 2
    - The requested PHP extension ext-xsl * is missing from your system. Install or enable PHP's xsl extension.

intl

# yum -y install libicu-devel
# cd soft/php-7.1.6/ext/intl
# phpize
# ./configure --enable-intl --with-php-config=/data/server/php7/bin/php-config
# make
# make install

xsl

# yum -y install libxslt libxslt-devel
# cd soft/php-7.1.6/ext/xsl
# phpize
# ./configure --with-xsl --with-php-config=/data/server/php7/bin/php-config
# make
# make install

php.ini

extension=xsl.so
extension=intl.so
上一篇 Laravel集成EasyWeChat接收普通消息和事件推送
下一篇 Twig模版语言入门
目录
文章列表
1 免费开源后台管理系统模板
免费开源后台管理系统模板
2
Android RecyclerView MVP架构刷新及加载更多数据
Android RecyclerView MVP架构刷新及加载更多数据
3
TestNG分组测试
TestNG分组测试
4
Android NDK 版本选择
Android NDK 版本选择
5
MySQL 5.7 - 通过 BINLOG 恢复数据
MySQL 5.7 - 通过 BINLOG 恢复数据
最新评论
一位WordPress评论者
一位WordPress评论者
2月12日
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。