安装 hdf5 时出错
Error occurred while installing hdf5
我已经安装了 Intel C、C++ 和 fortran 编译器,并尝试在 Ubuntu 上安装 hdf5。
但是我打字编译的时候出错卡住了
make
这是我收到的错误消息。
CCLD testhdf5
ld: warning: libimf.so, needed by ../src/.libs/libhdf5.so, not found (try using -rpath or -rpath-link)
ld: warning: libsvml.so, needed by ../src/.libs/libhdf5.so, not found (try using -rpath or -rpath-link)
ld: warning: libirng.so, needed by ../src/.libs/libhdf5.so, not found (try using -rpath or -rpath-link)
ld: warning: libintlc.so.5, needed by ../src/.libs/libhdf5.so, not found (try using -rpath or -rpath-link)
ld: .libs/testhdf5: hidden symbol `__intel_cpu_feature_indicator_x' in /opt/intel/compilers_and_libraries_2017.0.098/linux/compiler/lib/intel64_lin/libirc.a(cpu_feature_disp.o) is referenced by DSO
ld: final link failed: Bad value
Makefile:1519: recipe for target 'testhdf5' failed
make[1]: *** [testhdf5] Error 1
make[1]: Leaving directory '/home/Develop/Project/dep_src/hdf5-1.8.17/test'
Makefile:576: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
这是我使用的配置。
CC=icc CXX=icpc F9X=ifort CFLAGS='-O3 -xHost' CXXFLAGS='-O3 -xHost' ./configure --with-zlib=/home/Develop/Project/dep_libs/zlib --prefix=/home/Develop/Project/dep_libs/hdf5-1.8.17-intel64 --enable-hl --enable-cxx --enable-fortran
请帮助我。谢谢。
我遇到了同样的问题,然后以某种方式解决了它。好像他们找不到像libirng.so
这样的相关文件,所以我在flags中添加了intel的include和lib dir:
CFLAGS=-O3 -xHost -ip -I/opt/intel/include/intel64
LDFLAGS=-L/opt/intel/lib/intel64
LD_LIBRARY_PATH=/opt/intel/lib/intel64:$LD_LIBRARY_PATH
不知道为什么要把这个lib目录加到LD_LIBRARY_PATH,不然还是死了
我已经安装了 Intel C、C++ 和 fortran 编译器,并尝试在 Ubuntu 上安装 hdf5。
但是我打字编译的时候出错卡住了
make
这是我收到的错误消息。
CCLD testhdf5
ld: warning: libimf.so, needed by ../src/.libs/libhdf5.so, not found (try using -rpath or -rpath-link)
ld: warning: libsvml.so, needed by ../src/.libs/libhdf5.so, not found (try using -rpath or -rpath-link)
ld: warning: libirng.so, needed by ../src/.libs/libhdf5.so, not found (try using -rpath or -rpath-link)
ld: warning: libintlc.so.5, needed by ../src/.libs/libhdf5.so, not found (try using -rpath or -rpath-link)
ld: .libs/testhdf5: hidden symbol `__intel_cpu_feature_indicator_x' in /opt/intel/compilers_and_libraries_2017.0.098/linux/compiler/lib/intel64_lin/libirc.a(cpu_feature_disp.o) is referenced by DSO
ld: final link failed: Bad value
Makefile:1519: recipe for target 'testhdf5' failed
make[1]: *** [testhdf5] Error 1
make[1]: Leaving directory '/home/Develop/Project/dep_src/hdf5-1.8.17/test'
Makefile:576: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
这是我使用的配置。
CC=icc CXX=icpc F9X=ifort CFLAGS='-O3 -xHost' CXXFLAGS='-O3 -xHost' ./configure --with-zlib=/home/Develop/Project/dep_libs/zlib --prefix=/home/Develop/Project/dep_libs/hdf5-1.8.17-intel64 --enable-hl --enable-cxx --enable-fortran
请帮助我。谢谢。
我遇到了同样的问题,然后以某种方式解决了它。好像他们找不到像libirng.so
这样的相关文件,所以我在flags中添加了intel的include和lib dir:
CFLAGS=-O3 -xHost -ip -I/opt/intel/include/intel64
LDFLAGS=-L/opt/intel/lib/intel64
LD_LIBRARY_PATH=/opt/intel/lib/intel64:$LD_LIBRARY_PATH
不知道为什么要把这个lib目录加到LD_LIBRARY_PATH,不然还是死了