编译NETCDF:HDF5错误,但库已有效安装

时间:2019-10-18 09:19:37

标签: debian hdf5 netcdf netcdf4

我正在编译NETCDF软件包(netcdf-c-4.7.1),但是HDF5出现错误:

configure: error: Can't find or link to the hdf5 library. Use --disable-netcdf-4, or see config.log for errors.
...
 4023 | #define USE_NETCDF4 1
 4024 | #define USE_HDF5 1
 4025 | #define H5_USE_16_API 1
 4026 | /* end confdefs.h.  */
 4027 |
 4028 | /* Override any GCC internal prototype to avoid an error.
 4029 |    Use char because int might match the return type of a GCC
 4030 |    builtin and then its argument prototype would still apply.  */
 4031 | #ifdef __cplusplus
 4032 | extern "C"
 4033 | #endif
 4034 | char H5Fflush ();
 4035 | int
 4036 | main ()
 4037 | {
 4038 | return H5Fflush ();
 4039 |   ;
 4040 |   return 0;
 4041 | }
 4042 configure:17880: gcc -o conftest    conftest.c -lhdf5dll  -lm -ldl -lz -lcurl  >&5
 4043 /usr/bin/ld: cannot find -lhdf5dll
 4044 collect2: error: ld returned 1 exit status
 4045 configure:17880: $? = 1

如果找到该库,则具有以下链接:

$ dpkg -l | grep hdf5
ii  hdf5-helpers                          1.8.13+docs-15+deb8u1              amd64        Hierarchical Data Format 5 (HDF5) - Helper tools
ii  hdf5-tools                            1.8.13+docs-15+deb8u1              amd64        Hierarchical Data Format 5 (HDF5) - Runtime tools
ii  libhdf5-8:amd64                       1.8.13+docs-15+deb8u1              amd64        Hierarchical Data Format 5 (HDF5) - runtime files - serial version
ii  libhdf5-cpp-8:amd64                   1.8.13+docs-15+deb8u1              amd64        Hierarchical Data Format 5 (HDF5) - C++ libraries
ii  libhdf5-dev                           1.8.13+docs-15+deb8u1              amd64        Hierarchical Data Format 5 (HDF5) - development files - serial version

感谢帮助:)

面料

Linux jessie 3.16.0-10-amd64#1 SMP Debian 3.16.74-1(2019-09-24)x86_64 GNU / Linux

0 个答案:

没有答案