![](/img/trans.png)
[英]/usr/local/bin/pecl: 28: exec: /usr/local/bin/php: not found?
[英]Undefined subroutine &main::open_quote called at /usr/local/bin/autom4te line 262
您好我嘗試通過 pecl 在 macox (Big Sur 11.5.2) 上安裝 xdebug 但我收到錯誤消息
xdebug volodymyr$ pecl install xdebug
downloading xdebug-3.0.4.tgz ...
Starting to download xdebug-3.0.4.tgz (215,870 bytes)
.............................................done: 215,870 bytes
87 source files, building
running: phpize
Configuring for:
PHP Api Version: 20190902
Zend Module Api No: 20190902
Zend Extension Api No: 320190902
Undefined subroutine &main::open_quote called at /usr/local/bin/autom4te line 262.
ERROR: `phpize' failed
我更新了 perl 但它確實幫助了我(如果 open_quote 是 perl 的一部分,我無法理解)而且我沒有在 inte.net 中找到任何與 open_quote function 問題相關的信息
我嘗試從源代碼安裝 xdebug 並在 ./phpize 步驟中遇到相同的錯誤
解決:只需重新安裝 autoconf automake libtool 我運行brew reinstall autoconf automake libtool
之后我運行brew link --force autoconf
並解決了問題
這里的錯誤來自 autom4te,而不是pecl
或./phpize
。 您需要更新automake
和autoconf
和/或相關包。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.