configure: error: curl required for remote access. Install curl or build with --disable-dap

configure: error: curl required for remote access. Install curl or build with --disable-dap

当我运行使用CPPFLAGS='-I${H5DIR}/include -I${ZDIR}/include' LDFLAGS='-L${H5DIR}/lib -L${ZDIR}/lib' ./configure --prefix=${NCDIR}命令安装netcdf-c时出现如下错误

checking for curl_easy_setopt in -lcurl... no  checking for library containing curl_easy_setopt... no configure: error: curl required for remote access. Install curl build with disable-dap.

该错误与安装 curl 有关。但我已经安装了它,它的安装文件夹可以生成如下:

which curl
/home/habtamu/anaconda3/bin/curl

为什么 netcdf- 安装程序无法访问 curl?

您需要安装 libcurlsudo yum install libcurl-develsudo apt install libcurl-dev