PHP 安裝 擴展時 拋出 /usr/local/Cellar/php@7.1/7.1.25/pecl 異常解決

liugx@MacBook-Pro  ~/work/php/ext_source/php-xhprof-extension   master  make install
mkdir: /usr/local/Cellar/php@7.1/7.1.25/pecl: File exists
mkdir: /usr/local/Cellar/php@7.1/7.1.25/pecl: No such file or directory
make: *** [install-modules] Error 1php

 

 

PHP 安裝 擴展時 拋出 /usr/local/Cellar/php@7.1/7.1.25/pecl 異常spa

解決方案:3d

修改 /usr/local/Cellar/php@7.1/7.1.25/bin/php-config blog

extension_dir='/usr/local/Cellar/php@7.1/7.1.25/pecl/20160303' 中的 『pecl』 換成 『lib』
extension_dir='/usr/local/Cellar/php@7.1/7.1.25/lib/php/20160303'it

 

 

從新編譯io

./configure --with-php-config=/usr/local/Cellar/php@7.1/7.1.25/bin/php-config編譯

make && make install ast

相關文章
相關標籤/搜索