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 1

 

 

PHP 安装 扩展时 抛出 /usr/local/Cellar/php@7.1/7.1.25/pecl 异常

解决方案:

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

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'

 

 

重新编译

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

make && make install 

posted @ 2019-06-20 22:00  liugx  阅读(3555)  评论(0编辑  收藏  举报