如何解决不能不安装任何包throw pecl?
当我尝试在我的 mac 上安装 xdebug 时,而不仅仅是这个包任何东西!
pecl install xdebug
我收到此错误:
downloading xdebug-3.0.3.tgz ...
Starting to download xdebug-3.0.3.tgz (215,952 bytes)
.............................................done: 215,952 bytes
87 source files,building
running: phpize
Configuring for:
PHP Api Version: 20200930
Zend Module Api No: 20200930
Zend Extension Api No: 420200930
autom4te: need GNU m4 1.4 or later: /usr/bin/m4
ERROR: `phpize' failed
我只是遵循 this sluation 它对我不起作用!
➜ ~ which m4
/usr/bin/m4
➜ ~ which autom4te
/usr/local/bin/autom4te
解决方法
这是您的错误消息的重要内容:
autom4te:需要 GNU m4 1.4 或更高版本:/usr/bin/m4
pecl 使用一个古老的 UNIX 程序 m4 来设置您的扩展。您的系统上安装了不正确的版本。
如果您使用的是 Ubuntu / Debian,请执行此操作。
sudo apt -y remove m4
sudo apt -y install m4
然后再试一次。
在 MacOS 上,read this。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。