我已经安装了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_93and 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 directorythe 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时出错
发布评论