ogrinfo:加载共享库时出错:libhdf5.so.6在Centos 6上

我用命令在我的centos 6机器上安装了Gdal

yum install gdal 

但是当我尝试跑步

 $ ogrinfo 

我得到以下错误

 ogrinfo: error while loading shared libraries: libhdf5.so.6: cannot open shared object file: No such file or directory 

这是一个输出

 $ldd /usr/bin/ogrinfo 

http://pastebin.com/piRg3MNr

(由于pastebin的输出很大)

回购清单

 adobe-linux-i386 Adobe Systems Incorporated base CentOS-6 - Base elgis EL GIS 6 - x86_64 epel Extra Packages for Enterprise Linux 6 - x86_64 extras CentOS-6 - Extras google-chrome google-chrome remi Les RPM de remi pour Enterprise Linux 6 - x86_64 remi-test Les RPM de remi en test pour Enterprise Linux 6 - x86_64 rpmforge RHEL 6 - RPMforge.net - dag updates CentOS-6 - Updates 

你有libhdf5安装? 这是hdf5包的一部分。

请运行which ogrinfoldd /path/to/orginfo并发布输出。

你需要libhdf5.so.6文件。 这是hdf5的一部分。

只能运行yum install hdf5

另外,您可能需要将您的hdf5库path添加到您的LD_LIBRARY_PATH中。

也许数据库文件/etc/ld.so.cache没有自动更新尝试运行ldconfig作为根,看看现在是否工作

解决我不得不再次安装它。 这次我从源代码构build它。