【问题标题】:Error creating a spatial database. ERROR : could not load library "/usr/pgsql-9.1/lib/rtpostgis-2.0.so"创建空间数据库时出错。错误:无法加载库“/usr/pgsql-9.1/lib/rtpostgis-2.0.so”
【发布时间】:2012-08-06 23:28:12
【问题描述】:

我在Fedora 15 上运行PostgreSQL 9.1Postgis 2.0

尝试安装光栅支持时,

psql -d database -f rtpostgis.sql -v ON_ERROR_STOP=1

我收到以下错误

psql:rtpostgis.sql:46: ERROR:  
     could not load library "/usr/pgsql-9.1/lib/rtpostgis-2.0.so": libhdf5.so.6: 
     cannot open shared object file: No such file or directory

locate libhdf5.so.6 给出以下路径。

/usr/lib64/mpich2/lib/libhdf5.so.6
/usr/lib64/mpich2/lib/libhdf5.so.6.0.4

从存储库重新安装GDAL 并没有解决问题。安装的GDAL的版本。

gdal.x86_64                                1.7.3-14.fc15                @updates

【问题讨论】:

标签: database postgresql geospatial postgis postgresql-9.1


【解决方案1】:

检查/etc/ld.so.conf 是否有对路径/usr/lib64/mpich2/lib 的引用。

通过ldconfig -p | grep libhdf5.

没有输出任何东西。

检查/etc/ld.so.conf 是否有include ld.so.conf.d/*.conf

检查目录ld.so.conf.d 中的文件。 include ld.so.conf.d 中的 conf 文件之一是 /etc/ld.so.conf.d/atlas-x8664.conf,其中包含 /usr/lib64/atlas

所以我,

  • 在目录ld.so.conf.d 中创建了一个名为gdal.conf 的文件。
  • 将字符串/usr/lib64/mpich2/lib 添加到文件中。
  • ldconfig
  • 现在,ldconfig -p | grep libhdf5 拥有指向llibhdf5 文件的路径。

完成以上操作后,postgis 光栅支持安装顺利进行。

【讨论】:

  • 是的,您只需ldconfig,一切都应该很好
猜你喜欢
  • 2018-12-21
  • 2013-12-15
  • 2021-05-10
  • 2011-08-25
  • 2018-10-19
  • 1970-01-01
  • 2016-12-20
  • 2020-09-12
  • 1970-01-01
相关资源
最近更新 更多