php - CentOS 7 安装 pecl/pear ius

标签 php centos centos7 pear pecl

如何在通过 IUS 存储库安装 PHP 7.2 的 CentOS 7 上安装 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

关于php - CentOS 7 安装 pecl/pear ius,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66207685/

相关文章:

magento - 如何使用 CentOS 在 Amazon Web Service 托管上设置 Magento?

java - PhantomJs CentOS 5.8 无法呈现页面

python - 未找到导入 MySQLdb 和 `GLIBC_2.14'

python-2.7 - 在Centos 7上运行的HDFS上的Tweepy导入错误

linux - centOS 7 上的 Docker-CE 无法运行容器

php - yii2 mongodb 迁移不起作用

php - 使用 PDO 获取最后插入的行 ID(不合适的结果)

python - PyInstaller:导入 geopandas 时出现 StopIteration 错误

php - 我如何在 CodeIgniter Controller 中调用这个函数?

php - FB 好友选择器框架位于 https 中,无法与 http 中的托管页面交互