2021-10-20-pecl install mongodb 报错

ERROR: `phpize' failed

running: phpize
Can't find PHP headers in /usr/include/php
The php-devel package is required for use of this command.
ERROR: `phpize' failed

yum list installed | grep php

检查是否已安装多个版本的 php, 如果是,则执行以下指令去掉即可。

yum remove php74xx-xx

你可能感兴趣的:(2021-10-20-pecl install mongodb 报错)