HDF5包错误编译

时间:2017-06-14 18:03:14

标签: centos6 hdf5

我编译了HDF5 package by GCC 4.9.2, CentOS 6.8 and std=c++11,但收到错误:

package Linux 3.10 CentOS 7 x86_64我得到了:

./host/src/hdf5/lib/libhdf5.so: undefined reference to `memcpy@GLIBC_2.14'
collect2: error: ld returned 1 exit status

package Linux 2.6 CentOS 6 x86_64我得到了:

/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/ld: warning: libsz.so.2, needed by ./host/src/hdf5/lib/libhdf5.so, not found (try using -rpath or -rpath-link)
./host/src/hdf5/lib/libhdf5.so: undefined reference to `SZ_encoder_enabled'
./host/src/hdf5/lib/libhdf5.so: undefined reference to `SZ_BufftoBuffCompress'
./host/src/hdf5/lib/libhdf5.so: undefined reference to `SZ_BufftoBuffDecompress'
collect2: error: ld returned 1 exit status

有任何想法解决这个问题吗?

谢谢

1 个答案:

答案 0 :(得分:1)

The compiler complains that it is not finding SZ_... routines. szip is an optional library for HDF5 that you have to download separately.

Two options:

  1. Re-configure hdf5 to disable szip
  2. download, build and install szip