2012-05-10 3 views
3

우분투 11.10에 PostGIS 2.0.0을 설치하려고합니다. 기본적으로 여기에있는 OSGeo 지침을 따라했습니다 : http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS20Ubuntu1110src. GEOS 3.3.3을 만들었습니다. 터미널에 geos-config --version을 입력하면 3.3.3가 반환됩니다.PostGIS 2.0.0 GEOS 문제 설치

./configuremake을 문제없이 실행할 수 있습니다. ./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 

모두 괜찮아요? 그러나 여기에 문제가 있습니다. /tmp/pgis_reg/regress_log 내부

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 

은 다음과 같습니다 : 나는 make test 실행하면 빌드가 끝이 실패 내가 sudo make install을 실행하는 문제를 무시하고 전진하는 노력했습니다

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 

하지만 난 얻을 때 psql -d infinitydb -f postgis.sql 내 DB를 설정에 나는 비슷한 문제가 얻을 :

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 설치가 여러 번 발생했기 때문에 문제가 발생했습니다. 내가 아는 한, 나는 단지 하나뿐입니다. 어떤 아이디어?

답변

4

PostGIS는 다른 geos 라이브러리의 심볼을로드하려고 시도하고 다음으로 컴파일하려고합니다. 시스템에서 geos을 검색하고 모두 제거한 후 다시 컴파일하십시오.

0

이 지침을 작성할 때 잠시 후 문제가 발생했으며 이에 대해서는 submitted a bug입니다. 나는 그것을 고치려고 노력했지만 포기 했으므로 make test에 대한 알려진 한계가있다. (필자는 테스트 문제를 파악하고 티켓을 다시 열어보기를 간절히 원할 것입니다. GEOS 버전을 GDAL과 혼합하기 때문에 Makefile과 관련이있을 것입니다.)

make test의 오류에도 불구하고이 문제없이 설치해야하므로 다음 단계로 진행하고 설치하십시오.

5

저는 이것이 포스트 기어의 생각은 라이브러리가 서버의 다른 위치에 있고 실제로 무엇인지 생각하기 때문입니다. 나는 우분투 GIS에서 얻은 패키지와 같은 오류가 있었다. 그들은/usr/lib에 설치되었지만, 어떤 이유로 Postgis는/usr/local/lib에서 그들을 찾고있었습니다. 어느 쪽이든, 나는 'ldconfig'를 실행하고 다시 테스트를 실행했다.

+0

이것은 똑같은 문제입니다. 고맙습니다 – chhantyal