PostgreSQL
 sql >> Base de données >  >> RDS >> PostgreSQL

Erreur lors de la tentative d'exécution de Create Extension postgis

MISE À JOUR :la TEAM vient de publier le package RPM postgis.2.1.0-3 qui résout le problème :l'extension est maintenant disponible :

/usr/pgsql-9.3/share/extension/postgis.control

FIN DE LA MISE À JOUR.[...]

J'ai résolu la compilation de POSTGIS à partir de la source. Voici le pas à pas pour CentOS 6.4 64bit :

wget http://download.osgeo.org/postgis/source/postgis-2.1.0.tar.gz
tar xvf postgis-2.1.0.tar.gz
cd postgis-2.1.0
./configure --with-pgconfig=/usr/pgsql-9.3/bin/pg_config --without-raster
make
make comments
make install
make install-comments
su - postgres 
cd /usr/pgsql-9.3/share/contrib/postgis-2.1/
psql -d postgres -f postgis.sql
psql -d postgres -f spatial_ref_sys.sql
psql -d postgres -f postgis_comments.sql
psql -d postgres -f topology.sql
psql -d postgres -f topology_comments.sql