Скачал и разархивел в
/usr/src/postgis-1.5.1
сделал
chown postgres:postgres -R /usr/src/postgis-1.5.1
залогинелся
su postgres
Что бы смоогли выполнятся SQL скрипты
потом
./configure
Код: Выделить всё
PostGIS is now configured for i686-pc-linux-gnu
-------------- Compiler Info -------------
C compiler: gcc -g -O2
C++ compiler: g++
-------------- Dependencies --------------
GEOS config: /usr/bin/geos-config
GEOS version: 3.1.1
PostgreSQL config: /usr/bin/pg_config
PostgreSQL version: PostgreSQL 8.4.3
PROJ4 version: 47
Libxml2 config: /usr/bin/xml2-config
Libxml2 version: 2.6.26
PostGIS debug level: 0
-------- Documentation Generation --------
xsltproc: /usr/bin/xsltproc
xsl style sheets:
dblatex:
convert:
make clean
make check - вот тут и начинается гадость
Код: Выделить всё
sed 's,$libdir,/usr/src/postgis-1.5.1/regress/00-regress-install/lib,g' ../postgis/postgis.sql > postgis.sql
Creating spatial db postgis_reg
TMPDIR is /tmp/pgis_reg_19777
PATH is /usr/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
PostgreSQL 8.4.3 on i686-redhat-linux-gnu, compiled by GCC gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46), 32-bit
Postgis 1.5.1 - 2010-05-02 22:07:37
GEOS: 3.1.1-CAPI-1.6.0
PROJ: Rel. 4.7.1, 23 September 2009
Running tests
loader/Point.............. ok
loader/PointM.............. ok
loader/PointZ.............. ok
loader/MultiPoint.............. ok
loader/MultiPointM.............. ok
loader/MultiPointZ.............. ok
loader/Arc.............. ok
loader/ArcM.............. ok
loader/ArcZ.......... ok
loader/Polygon.............. ok
loader/PolygonM.............. ok
loader/PolygonZ.............. ok
regress. ok
regress_index. ok
regress_index_nulls. ok
lwgeom_regress. ok
regress_lrs. ok
removepoint. ok
setpoint. ok
simplify. ok
snaptogrid. ok
affine. ok
wkt. ok
measures. ok
long_xact. ok
ctors. ok
sql-mm-serialize. ok
sql-mm-circularstring. ok
sql-mm-compoundcurve. ok
sql-mm-curvepoly. ok
sql-mm-general. ok
sql-mm-multicurve. ok
sql-mm-multisurface. ok
geojson. ok
gml. ok
svg. ok
kml. ok
in_gml. ok
in_kml. ok
regress_ogc. ok
regress_ogc_cover. ok
regress_ogc_prep. ok
regress_bdpoly. ok
regress_proj. ok
dumppoints. ok
wmsservers. ok
tickets. failed (diff expected obtained: /tmp/pgis_reg_19777/test_47_diff)
Run tests: 47
Failed: 1
make[1]: Leaving directory `/usr/src/postgis-1.5.1/regress'
bash-3.1$ cat /tmp/pgis_reg_19777/test_47_diff
*** tickets_expected Tue Feb 9 01:19:23 2010
--- /tmp/pgis_reg_19777/test_47_out Mon May 3 04:09:27 2010
***************
*** 1,31 ****
#2|POLYGON((1 1,1 2,2 2,3 2,3 1,2 1,1 1))
! #11|0
#21|SRID=31293;POINTM(6220.13 5337367.145 4566)
t
- ERROR: AddGeometryColumns() - invalid SRID
#44|t|t
#58|220187|150406|220289|150507
- ERROR: geometry_to_gml2: 'CurvePolygon' geometry type not supported
#66|CIRCULARSTRING(0 0,1 1,2 2)
#68a|MULTIPOINT(1 3,4 5)
- ERROR: lwgeom.c:924: unsupported geom type: CircularString
#69|CIRCULARSTRING(220269 150417,220228 150507,220228 150408)
#70|5
#73|GEOMETRYCOLLECTION(CIRCULARSTRING(1 1,2 3,4 5,6 7,5 6))
#80|MULTILINESTRING((0 0,1 1))
#83|MULTICURVE(CIRCULARSTRING(220268 150415,220227 150505,220227 150406))
- ERROR: Unsupported geometry type: CircularString
#112|GEOMETRYCOLLECTION(POINT(-10 50))
- ERROR: Geometry argument does not have an 'M' ordinate
#116|POLYGON EMPTY
- ERROR: lwgeom_grid: Unsupported geometry type: CircularString
#124a|COMPOUNDCURVE(CIRCULARSTRING(0 0,1 1,1 0),(1 0,30 5),CIRCULARSTRING(30 5,34 56,67 89))
- ERROR: incontinuous compound curve
- HINT: "...IRCULARSTRING(0 0,1 1,1 0),(1 0,30 6)" <-- parse error at position 52 within geometry
#145a|0107000020E610000000000000
#145b|0
#146|0|t|GEOMETRYCOLLECTION(LINESTRING(0 0,-1 -1),MULTIPOINT(1 2,2 3))
- ERROR: geometry contains non-closed rings
#157|ST_Polygon|POLYGON
#157|ST_Point|POINT
#157|ST_Polygon|POLYGON
--- 1,22 ----
#2|POLYGON((1 1,1 2,2 2,3 2,3 1,2 1,1 1))
! #11|0.889477943128855
#21|SRID=31293;POINTM(6220.13 5337367.145 4566)
t
#44|t|t
#58|220187|150406|220289|150507
#66|CIRCULARSTRING(0 0,1 1,2 2)
#68a|MULTIPOINT(1 3,4 5)
#69|CIRCULARSTRING(220269 150417,220228 150507,220228 150408)
#70|5
#73|GEOMETRYCOLLECTION(CIRCULARSTRING(1 1,2 3,4 5,6 7,5 6))
#80|MULTILINESTRING((0 0,1 1))
#83|MULTICURVE(CIRCULARSTRING(220268 150415,220227 150505,220227 150406))
#112|GEOMETRYCOLLECTION(POINT(-10 50))
#116|POLYGON EMPTY
#124a|COMPOUNDCURVE(CIRCULARSTRING(0 0,1 1,1 0),(1 0,30 5),CIRCULARSTRING(30 5,34 56,67 89))
#145a|0107000020E610000000000000
#145b|0
#146|0|t|GEOMETRYCOLLECTION(LINESTRING(0 0,-1 -1),MULTIPOINT(1 2,2 3))
#157|ST_Polygon|POLYGON
#157|ST_Point|POINT
#157|ST_Polygon|POLYGON
Код: Выделить всё
rpm -qa | grep post
compat-postgresql-libs-4-1PGDG.rhel5
postgresql-devel-8.4.3-1PGDG.el5
postgresql-8.4.3-1PGDG.el5
postgresql-server-8.4.3-1PGDG.el5
postgresql-python-8.1.18-2.el5_4.1
postgresql-libs-8.4.3-1PGDG.el5
Linux version 2.6.18-53.1.4.el5 (mockbuild@builder6.centos.org) (gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)) #1 SMP Fri Nov 30 00:45:16 EST 200
На версии постгресса 8.3 тоже самое.