网站制作学习网PHP→正文:configure: error: Please reinstall the libcurl distribution -easy.h sh
字体:

configure: error: Please reinstall the libcurl distribution -easy.h sh

PHP 2023/9/14 16:52:38  点击:不统计

原载于:原文章%77w%77%2Ef%6F%72%61%73%70%2E%63n
 

 
 
意思时找不到curl 相关命令地址,这个是安装扩展需要的。
网上找了很多,包括重装 xcode-select
brew reinstall curl # 重装curl 
xcode-select Update # xcode 扩展更新
sudo rm -rf /Library/Developer/CommandLineTools # 删除xcode扩展
xcode-select --install # 重新安装xcode 
 
以上都不能解决问题,因为我用的php 是自己安装的不是brew 安装的php 。
 
要解决configure: error: Please reinstall the libcurl distribution -easy.h should be in <curl-dir>/include/curl/ 的问题
采用指定 culr地址
1. 首先看 curl 在哪里 
 ~ whereis curl
curl: /usr/bin/curl /usr/share/man/man1/curl.1
如果没有,则用下面命令安装
brew install curl
 
2. 找到后,在cofigure 后面指定目录即可,我的php 是独立安装,所以页指定了php-config
./configue --with-curl=/usr/lib/curl --with-php-config=/usr/local/Cellar/php/8.1.11/bin/php-config
 
这样运行就不会出现configure: error: Please reinstall the libcurl distribution -easy.h should be in <curl-dir>/include/curl/ 的错误。
 

<网f站o学a习s制p作.cn>

·上一篇:指定php版本运行 composer >>    ·下一篇:php安装solr扩展 >>
推荐文章
最新文章