问题描述
如何在 CentOS 7 上通过 IUS 存储库安装 PHP 7.2 安装 pecl/pear?
当前安装的是 PHP72u
。
我已尝试安装 PHP-pear
,但在运行 pecl 时导致 PHP 错误:
# pecl
PHP Parse error: Syntax error,unexpected 'new' (T_NEW) in /usr/share/pear/PEAR/Frontend.PHP on line 91
解决方法
IUS 通过包 pear1
提供 pecl/pear 二进制文件,这与其他使用 php-pear
的存储库不同。
yum install pear
pecl