Ubuntu: HDF5报错: HDF5 header version与HDF5 library不匹配

今天在执行一个用到hdf5的python脚本时,遇到如下错误

Warning! ***HDF5 library version mismatched error***
The HDF5 header files used to compile this application do not match
the version used by the HDF5 library to which this application is linked.
Data corruption or segmentation faults may occur if the application continues.
This can happen when an application was compiled by one version of HDF5 but
linked with a different version of static or shared HDF5 library.
You should recompile the application or check your shared library related
settings such as ‘LD_LIBRARY_PATH‘.
You can, at your own risk, disable this warning by setting the environment
variable ‘HDF5_DISABLE_VERSION_CHECK‘ to a value of ‘1‘.
Setting it to 2 or higher will suppress the warning messages totally.
Headers are 1.8.11, library is 1.8.9
        SUMMARY OF THE HDF5 CONFIGURATION
        =================================

General Information:
-------------------
           HDF5 Version: 1.8.9
          Configured on: Fri Dec 20 12:54:14 CST 2013
          Configured by: [email protected]
         Configure mode: production
            Host system: x86_64-unknown-linux-gnu
          Uname information: Linux centos5x64 2.6.18-348.el5 #1 SMP Tue Jan 8 17:53:53 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
               Byte sex: little-endian
              Libraries:
         Installation point: /opt/anaconda1anaconda2anaconda3

Compiling Options:
------------------
               Compilation Mode: production
                     C Compiler: /usr/bin/gcc ( gcc (GCC) 4.1.2 20080704 )
                         CFLAGS:
                      H5_CFLAGS: -std=c99 -pedantic -Wall -Wextra -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wfloat-equal -Wmissing-format-attribute -Wmissing-noreturn -Wpacked -Wdisabled-optimization -Wformat=2 -Wunreachable-code -Wendif-labels -Wdeclaration-after-statement -Wold-style-definition -Winvalid-pch -Wvariadic-macros -Wnonnull -Winit-self -Wmissing-include-dirs -Wswitch-default -Wswitch-enum -Wunused-macros -Wunsafe-loop-optimizations -Wc++-compat -Wvolatile-register-var -O3 -fomit-frame-pointer -finline-functions
                      AM_CFLAGS:
                       CPPFLAGS:
                    H5_CPPFLAGS: -D_POSIX_C_SOURCE=199506L   -DNDEBUG -UH5_DEBUG_API
                    AM_CPPFLAGS: -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_BSD_SOURCE
               Shared C Library: yes
               Static C Library: no
  Statically Linked Executables: no
                        LDFLAGS:
                     H5_LDFLAGS:
                     AM_LDFLAGS:
          Extra libraries:  -lpthread -lz -lrt -lm
                Archiver: ar
               Ranlib: ranlib
           Debugged Packages:
            API Tracing: no

Languages:
----------
                        Fortran: no

                            C++: no

Features:
---------
                  Parallel HDF5: no
             High Level library: yes
                   Threadsafety: yes
            Default API Mapping: v18
 With Deprecated Public Symbols: yes
         I/O filters (external): deflate(zlib)
         I/O filters (internal): shuffle,fletcher32,nbit,scaleoffset
                            MPE: no
                     Direct VFD: no
                        dmalloc: no
Clear file buffers before write: yes
           Using memory checker: no
         Function Stack Tracing: no
                           GPFS: no
      Strict File Format Checks: no
   Optimization Instrumentation: no
       Large File Support (LFS): yes
Bye...
Aborted (core dumped)

昨天还好好的,今天怎么就出现了问题。回忆了一下好像昨天更新了anaconda,可能导致了冲突,经查看,确实如此。Anaconda中安装的hdf5库是1.8.9的, 而之前通过pip intall h5py库应该就是1.8.11的, 一山不容二虎,于是把旧版本删除了

sudo pip uninstall h5py

按下回车,果然在系统自带的python下有以前的h5py版本

Uninstalling h5py:
  /usr/local/lib/python2.7/dist-packages/h5py-2.3.1.egg-info
  /usr/local/lib/python2.7/dist-packages/h5py/__init__.py
  /usr/local/lib/python2.7/dist-packages/h5py/__init__.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/_conv.so
  /usr/local/lib/python2.7/dist-packages/h5py/_errors.so
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/__init__.py
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/__init__.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/attrs.py
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/attrs.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/base.py
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/base.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/dataset.py
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/dataset.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/datatype.py
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/datatype.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/dims.py
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/dims.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/files.py
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/files.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/filters.py
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/filters.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/group.py
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/group.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/selections.py
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/selections.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/selections2.py
  /usr/local/lib/python2.7/dist-packages/h5py/_hl/selections2.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/_objects.so
  /usr/local/lib/python2.7/dist-packages/h5py/_proxy.so
  /usr/local/lib/python2.7/dist-packages/h5py/defs.so
  /usr/local/lib/python2.7/dist-packages/h5py/h5.so
  /usr/local/lib/python2.7/dist-packages/h5py/h5a.so
  /usr/local/lib/python2.7/dist-packages/h5py/h5ac.so
  /usr/local/lib/python2.7/dist-packages/h5py/h5d.so
  /usr/local/lib/python2.7/dist-packages/h5py/h5ds.so
  /usr/local/lib/python2.7/dist-packages/h5py/h5f.so
  /usr/local/lib/python2.7/dist-packages/h5py/h5fd.so
  /usr/local/lib/python2.7/dist-packages/h5py/h5g.so
  /usr/local/lib/python2.7/dist-packages/h5py/h5i.so
  /usr/local/lib/python2.7/dist-packages/h5py/h5l.so
  /usr/local/lib/python2.7/dist-packages/h5py/h5o.so
  /usr/local/lib/python2.7/dist-packages/h5py/h5p.so
  /usr/local/lib/python2.7/dist-packages/h5py/h5r.so
  /usr/local/lib/python2.7/dist-packages/h5py/h5s.so
  /usr/local/lib/python2.7/dist-packages/h5py/h5t.so
  /usr/local/lib/python2.7/dist-packages/h5py/h5z.so
  /usr/local/lib/python2.7/dist-packages/h5py/highlevel.py
  /usr/local/lib/python2.7/dist-packages/h5py/highlevel.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/ipy_completer.py
  /usr/local/lib/python2.7/dist-packages/h5py/ipy_completer.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/tests/__init__.py
  /usr/local/lib/python2.7/dist-packages/h5py/tests/__init__.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/tests/common.py
  /usr/local/lib/python2.7/dist-packages/h5py/tests/common.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_attrs.py
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_attrs.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_attrs_data.py
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_attrs_data.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_base.py
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_base.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_dataset.py
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_dataset.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_datatype.py
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_datatype.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_dimension_scales.py
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_dimension_scales.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_file.py
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_file.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_group.py
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_group.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_h5.py
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_h5.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_h5f.py
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_h5f.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_h5p.py
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_h5p.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_h5t.py
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_h5t.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_objects.py
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_objects.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_selections.py
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_selections.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_slicing.py
  /usr/local/lib/python2.7/dist-packages/h5py/tests/test_slicing.pyc
  /usr/local/lib/python2.7/dist-packages/h5py/utils.so
  /usr/local/lib/python2.7/dist-packages/h5py/version.py
  /usr/local/lib/python2.7/dist-packages/h5py/version.pyc
Proceed (y/n)? y
  Successfully uninstalled h5py
时间: 2024-10-05 08:05:42

Ubuntu: HDF5报错: HDF5 header version与HDF5 library不匹配的相关文章

mysql报错:This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'

his version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'的意思是,这版本的 MySQL 不支持使用 LIMIT 子句的 IN/ALL/ANY/SOME 子查询,即是支持非 IN/ALL/ANY/SOME 子查询的 LIMIT 子查询. 也就是说,这样的语句是不能正确执行的. select * from table where id in (select id from table limit 10) 但

Ubuntu开机报错:could not update ICEauthority file /home/user/.ICEauthority(转载)

解决方法如下: 一. 代码:sudo chown $USER:$USER /home/$USER/.ICEauthority        sudo chmod 644 /home/$USER/.ICEauthority Ubuntu开机报错:could not update ICEauthority file /home/user/.ICEauthority(转载)

eclipse 不编译class文件了,或者是报错Unbound classpath container: 'JRE System Library

在Problems里报错Description Resource Path Location Type Unbound classpath container: 'JRE System Library [jdk1.6.0_21]' in project 'EHMS' EHMS Build path Build Path Problem 启动的时候还起不来会报一些加载不到类的错误,还好通过网上找到了解决的方法,所以记录下来. 错误图如下: 翻译:未绑定的类路径容器: JRE 系统库 [jre1.6

Eclipse报错 due to restriction on required library C:/Java/jdk1.7.51/jre/lib/rt.jar 解决方案

Eclipse报错 due to restriction on required library C:/Java/jdk1.6.0_10/jre/lib/rt.jar 解决方案 Eclipse 编译时报错: Access restriction:The type NEW is not accessible due to restriction on required library C:/Java/jdk1.6.0_10/jre/lib/rt.jar 解决方法如下:  1.进入Project -

rpm包安装报错: Header V3 RSASHA256 Signature, key ID fd431d51 NOKEY

报错信息:Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY 一.问题场景 RHEL 6.5 安装MySQL-5.5.44 首先,卸载rpm -e mysql-libs dependencies:(会卸载下面五个包) cronie-1.4.4-12.el6.i686.rpm cronie-anacron-1.4.4-12.el6.i686.rpm crontabs-1.10-33.el6.noarch.rpm postfix-2.6.6-

ftp put本地文件至ubuntu服务器报错

起因:我想把本地下载的安装包上传至服务器. 由于Mac的ftp图形化客户端还没找着合适的,就想着用命令也是一样的. 但是又进坑了. 下载能够正常运行: ftp> get 2.jpg /Users/ldd/2.jpg 但是上传则会报错: ftp> put /Users/ldd/jdk.tar.gz /home/ldd/jdk.tar.gz local: /Users/ldd/jdk.tar.gz remote: /home/ldd/jdk.tar.gz 227 Entering Passive

关于ubuntu安装报错问题解决

命令行中报错 首先报错内容为:(vmware-installer.py:3847): Gtk-WARNING **: 无法在模块路径中找到主题引擎:"murrine", 以上的内容: sudo apt-get remove gtk2-engines-murrinesudo apt-get install gtk2-engines-murrine 使用以上两条命令后解决,备注:均在xubuntu16.0.4系统上 在应用程序查找器中报错 以上报错的时候,进行右击选项进行编辑 出现的界面中

ubuntu启动报错 Errors were found while checking the disk-drive for /

开机报这个错误,主要原因是硬盘检测不通过导致的,下面介绍两种方法规避该问题: 修改grub 这个方法网上比较多,直接贴过来: 进入Ubuntu启动菜单时,光标选中 *Ubuntu 后,按键盘上的 e 键,即可进入启动项编辑模式: 使用光标定位到如下图所示位置,将 ro 改成 rw 后,按 F10 键,即可按照修改后的参数引导进入系统: 输入 sudo gedit /etc/grub.d/10_lupin 后回车: 输入用户密码后回车,即可调用文本编辑器打开启动项配置文件,将ro ${args}

maven报错cannot change version of project facet

用Eclipse创建Maven结构的web项目的时候选择了默认的catalog,由于这个catalog比较老,用的servlet还是2.3,而现在最少也是2.5,所以经常会出现问题,在Projecdtfaces里面修改Dynamic web model为2.5的时候就会出现Cannot change version of project facet Dynamic web module to 2.5 其实在右边可以看到改到2.5需要的条件以及有冲突的facets,解决这个问题的步骤如下: 1.把