2017-06-14 90 views
0

我編了HDF5 package by GCC 4.9.2, CentOS 6.8 and std=c++11,但我得到的錯誤:HDF5包錯誤編譯

package Linux 3.10 CentOS 7 x86_64我得到:

./host/src/hdf5/lib/libhdf5.so: undefined reference to `[email protected]_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 

任何想法上懸而未決這個?

謝謝

回答

0

嘗試的CentOS 7或更高版本 好運。

0

編譯器抱怨說它沒有找到SZ_...例程。 szip是HDF5的可選庫,您必須單獨下載。

兩個選項:

  1. 重新配置HDF5禁用szip
  2. 下載,構建並安裝szip
+0

我安裝,但什麼都沒有改變,我想選擇一個,如何禁用szip? – mohmsslk

+0

這取決於構建系統。你使用的是什麼版本的hdf5和什麼構建系統(autotools/cmake)? –

+0

其實我沒有安裝我剛從makfile調用它的包,版本是hdf5-1.8.18 – mohmsslk