尝试运行创建扩展postgis时出错

编程入门 行业动态 更新时间:2024-10-20 09:22:20
本文介绍了尝试运行创建扩展postgis时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经安装了PostgreSQL 9.x和PostGIS 1.5 / 2.0几次,从来没有这个问题。

我刚刚得到了一个新的CentOS 6.3服务器和我有Postgres 9.3按预期工作。我已经运行

yum install postgis2_93

我可以看到

中的文件

/usr/pgsql-9.3/share/contrib /

但是,当我运行

CREATE EXTENSION postgis;

我收到

code>错误:无法打开扩展控制文件/usr/pgsql-9.3/share/extension/postgis.control:没有这样的文件或目录

教学课程(#1 ,#2 )我使用的不显示安装PostGIS和创建扩展之间的任何步骤。

我缺少什么?

解决方案

yum.pgrpms/ 缺少扩展支持。我本周早些时候向Devrim报告了此事,他一直试图解决这个问题。

svn.pgrpms/changeset/299

希望下一次将RPMS推送到网站解决此问题。更新: postgis2_93-2.1.0-3发布,解决了这个问题,但是gdal 1.9的rpm要求,EPEL不提供。我是从 ELGIS 获得的。

I have installed PostgreSQL 9.x and PostGIS 1.5/2.0 several times and have never had this problem.

I just got a new CentOS 6.3 server up and running and and I have Postgres 9.3 functioning as expected. I have run

yum install postgis2_93

and I can see the files in

/usr/pgsql-9.3/share/contrib/

however, when I run

CREATE EXTENSION postgis;

I receive

ERROR: could not open extension control file "/usr/pgsql-9.3/share/extension/postgis.control": No such file or directory

the tutorials (#1, #2) I have used don't show any steps between installing PostGIS and creating the extension.

What am I missing?

解决方案

The postgis2_93 RPM provided by yum.pgrpms/ is missing extension support. I reported this to Devrim earlier this week and he has been attempting to fix it.

svn.pgrpms/changeset/299

Hopefully the next push of RPMS to the website resolves this.

Update: postgis2_93-2.1.0-3 was released, which solved this issue but placed a rpm requirement for gdal 1.9, which EPEL does not provide. I got it from ELGIS.

更多推荐

尝试运行创建扩展postgis时出错

本文发布于:2023-10-13 10:06:19,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:postgis

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!