1

I am following the tutorial here:

https://www.unidata.ucar.edu/software/netcdf/docs/getting_and_building_netcdf.html

I built HDF5, ZLIB, and CURL from source. When I compile netcdf:

CPPFLAGS=-I${H5DIR}/include LDFLAGS=-L${H5DIR}/lib ./configure --prefix=${NCDIR}

and then run

make check

I get:

curl/curl.h: No such file or directory.

I build curl though, how do I get it to see it?

4

1 回答 1

2

这是一个配置错误,已在 master 中修复,并将在 netCDF (4.6.2) 的下一个版本中。它应该在配置中检查 curl.h,而不是在构建时出错。;-)

解决方法是在 CPPFLAGS 和 LDFLAGS 中包含 curl 包含和 lib 目录。

CPPFLAGS='-I${H5DIR}/include -I/location/curl/include' LDFLAGS='-L${H5DIR}/lib -L/location/curl/lib' ./configure --prefix=${NCDIR}

请注意,我在 CPPFLAGS 和 LDFLAGS 值周围添加了单引号,以便我们可以包含多个位置,它们之间有空格。

于 2018-10-24T14:32:43.530 回答