我在CentOS 6.5上运行PostgreSQL 9.3
我安装了PostgreSQL和PostGIS。
尝试创建PostGIS扩展程序时
Create Extension Postgis;
我收到以下错误,
ERROR: could not load library "/usr/pgsql-9.3/lib/rtpostgis-2.1.so": libhdf5.so.6: cannot open shared object file: No such file or directory
我可以知道如何成功安装POSTGIS扩展程序吗?
我已经通过YUM安装了hdf5文件确实存在于/ usr / lib64 /
我用find -name查找文件:
[root@digihaul3-pc /]# find -name rtpostgis-2.1.so
./usr/pgsql-9.3/lib/rtpostgis-2.1.so
[root@digihaul3-pc /]# find -name libhdf5.so.6
./usr/lib64/mpich2/lib/libhdf5.so.6
./usr/pgsql-9.3/lib/libhdf5.so.6
./usr/lib/mpich2/lib/libhdf5.so.6
仅显示未找到或空白的那些,因为您看到依赖关系在那里两次。
[root@digihaul3-pc /]# ldd /usr/pgsql-9.3/lib/rtpostgis-2.1.so
linux-vdso.so.1 => (0x00007fffcd9ff000)
libhdf5.so.6 => not found
libhdf5_hl.so.6 => not found
libhdf5.so.6 => not found