问题描述
我在上运行 PostgreSQL 9.3 与 Postgis 2.0 在 CentOS 6.3 。
我按照以下说明安装Postgersql和Postgis:
尝试创建 Postgis 扩展
我收到以下错误:
错误:无法加载库/usr/pgsql-9.3/lib/rtpostgis-2.1.so:libhdf5.so.6:无法打开共享对象文件:没有这样的文件或目录
我可以知道如何成功安装POSTGIS扩展吗?
我有CentOs 6.5,并且这样做:
1)安装以下软件包
- hdf5-1.8.11-42.1.x86_64.rpm
- json-c-0.10-2.1.x86_64.rpm
- libhdf5-8-1.8.11-42.1.x86_64.rpm
- libhdf5_hl8-1.8.11-42.1.x86_64.rpm
我不知道我是否可以直接链接文件,所以在rpm.pbone.net寻找这些文件,下载CentOS 6版本。
2)由于Postgis需要版本hdf5版本6,您必须以root身份执行此命令(#为提示)
#cd / usr / lib64
#ln -s libhdf5_hl.so.8 libhdf5_hl.so.6
#ln -s libhdf5.so.8 libhdf5.so.6
PS不要忘记安装postgresql contrib包,因为Postgis需要一些模块的fuzzystrmatch扩展。 / p>
I am running PostgreSQL 9.3 with Postgis 2.0 on CentOS 6.3.
I installed Postgersql and Postgis according to this instructions:http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS21CentOS6pgdg
When trying to create Postgis extension
Create Extension Postgis;
I get the following error,
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
May I know how to install the POSTGIS extension successfully?
I have CentOs 6.5 and did this:
1) Install following packages
- hdf5-1.8.11-42.1.x86_64.rpm
- json-c-0.10-2.1.x86_64.rpm
- libhdf5-8-1.8.11-42.1.x86_64.rpm
- libhdf5_hl8-1.8.11-42.1.x86_64.rpm
I don't know if I can link files directly here, so look for those files at rpm.pbone.net, download CentOS 6 version.
2) As Postgis requires version hdf5 version 6, you have to execute this commands as root (# is prompt)
# cd /usr/lib64 # ln -s libhdf5_hl.so.8 libhdf5_hl.so.6 # ln -s libhdf5.so.8 libhdf5.so.6
PS Don't forget to install postgresql contrib package, as Postgis requires fuzzystrmatch extension for some modules.
这篇关于Postgres使用CentOS 6创建POSTGIS扩展错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!