PostGIS 2.0.0安装GEOS问题

2023-12-24

尝试在 Ubuntu 11.10 上安装 PostGIS 2.0.0。我基本上遵循了此处找到的 OSGeo 说明:http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS20Ubuntu1110src http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS20Ubuntu1110src。我构建了 GEOS 3.3.3。如果我输入geos-config --version进入航站楼,我回来了3.3.3.

我可以跑./configure and make没有问题。./configure以。。结束:

 PostGIS is now configured for x86_64-unknown-linux-gnu 

-------------- Compiler Info -------------  
 C compiler:           gcc -g -O2 
 C++ compiler:         g++ -g -O2 

-------------- Dependencies --------------  
 GEOS config:          /usr/local/bin/geos-config 
 GEOS version:         3.3.3 
 GDAL config:          /usr/local/bin/gdal-config 
 GDAL version:         1.9.0 
 PostgreSQL config:    /usr/bin/pg_config 
 PostgreSQL version:   PostgreSQL 9.1.3 
 PROJ4 version:        47 
 Libxml2 config:       /usr/bin/xml2-config 
 Libxml2 version:      2.7.8 
 JSON-C support:       no 
 PostGIS debug level:  0 
 Perl:                 /usr/bin/perl 

--------------- Extensions ---------------  
 PostGIS Raster:       enabled 
 PostGIS Topology:     enabled 

-------- Documentation Generation --------  
 xsltproc:             /usr/bin/xsltproc 
 xsl style sheets:      
 dblatex:               
 convert:               
 mathml2.dtd:          http://www.w3.org/Math/DTD/mathml2/mathml2.dtd 

一切看起来都不错,对吧?但问题就在这里。当我跑步时make test,构建失败,最后出现以下情况:

Creating spatial db postgis_reg
createlang: language "plpgsql" is already installed in database "postgis_reg"
Preparing spatial db postgis_reg

 Something went wrong during db initialization (core module).
 For details, check /tmp/pgis_reg/regress_log

make[1]: *** [check] Error 1
make[1]: Leaving directory `/home/anthony/Downloads/postgis-2.0.0/regress'
make: *** [check] Error 1

Inside /tmp/pgis_reg/regress_log is:

SET
BEGIN
psql:/home/anthony/Downloads/postgis-2.0.0/regress/00-regress-install/share/contrib/postgis/postgis.sql:69: ERROR:  could not load library "/home/anthony/Downloads/postgis-2.0.0/regress/00-regress-install/lib/postgis-2.0.so": /home/anthony/Downloads/postgis-2.0.0/regress/00-regress-install/lib/postgis-2.0.so: undefined symbol: GEOSRelatePatternMatch

我试图忽略这个问题并继续前进sudo make install但是当我开始设置我的数据库时psql -d infinitydb -f postgis.sql我遇到类似的问题:

SET
BEGIN
psql:postgis.sql:69: ERROR:  could not load library "/usr/lib/postgresql/9.1/lib/postgis-2.0.so": /usr/lib/postgresql/9.1/lib/postgis-2.0.so: undefined symbol: GEOSRelatePatternMatch

我在网上查了一下,发现还有一个人是这样的GEOSRelatePatternMatch问题,但他的原因是安装了多个 GEOS。据我所知,我只有一个。有任何想法吗?


我认为这是由于 postgis 认为这些库位于服务器上的不同位置,而不是它们实际的位置。我从 Ubuntu GIS 获得的软件包也遇到了同样的错误。它们被安装到 /usr/lib,但由于某种原因 postgis 在 /usr/local/lib 中寻找它们。不管怎样,我运行“ldconfig”并再次运行测试,效果很好。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

PostGIS 2.0.0安装GEOS问题 的相关文章

随机推荐