sALLdações. Ambiente: Debian 6 / PostgreSQL 9.1 / PostGis 1.5
Estou recebendo a seguinte mensagem de erro ao tentar executar um CREATE EXTENSION : --------------------------------------------------------------* Erro de SQL:* ERROR: could not open extension control file "/usr/share/postgresql/9.1/extension/postgis.control": No such file or directory* Indicação de entrada :* CREATE EXTENSION postgis; --------------------------------------------------------------- Observei o diretório "/usr/share/postgresql/9.1/extension/" e realmente não há nada lá que se relacione com postgis. Para efeito de informação, para alguém que venha a me ajudar a encontrar a solução deste problema, encontrei alguns problemas na execução de um certo "roteiro" de instalação do POSTGIS. A seguir, vou descrever minimamente, algo que empreendi desse "roteiro". 1 - instalação Tenho os seguintes pacotes instalados: ii postgresql 9.1+122ubuntu1 object-relational SQL database (supported version) ii postgresql-9.1 9.1.4-0ubuntu11.10 object-relational SQL database, version 9.1 server ii postgresql-9.1-debversion 1.0.6-1ubuntu1 Debian version number type for PostgreSQL ii postgresql-9.1-ip4r 1.05-0.1 IPv4 and IPv4 range index types for PostgreSQL 9.1 ii postgresql-9.1-pljava-gcj 1.4.2-4ubuntu1 Java procedural language for PostgreSQL 9.1 ii postgresql-9.1-pllua 1:0.3.2-4 Lua procedural language for PostgreSQL 9.1 ii postgresql-9.1-plsh 1.3-5 PL/sh procedural language for PostgreSQL 9.1 ii postgresql-9.1-postgis 1.5.3-1ubuntu0.1 Geographic objects support for PostgreSQL 9.1 ii postgresql-client 9.1+122ubuntu1 front-end programs for PostgreSQL (supported version) ii postgresql-client-9.1 9.1.4-0ubuntu11.10 front-end programs for PostgreSQL 9.1 ii postgresql-client-common 122ubuntu1 manager for multiple PostgreSQL client versions ii postgresql-common 122ubuntu1 PostgreSQL database-cluster manager ii postgresql-contrib 9.1+122ubuntu1 additional facilities for PostgreSQL (supported version) ii postgresql-contrib-9.1 9.1.4-0ubuntu11.10 additional facilities for PostgreSQL ii postgresql-doc 9.1+122ubuntu1 documentation for the PostgreSQL database management system ii postgresql-doc-9.1 9.1.4-0ubuntu11.10 documentation for the PostgreSQL database management system ii postgis 1.5.3-1ubuntu0.1 Geographic objects support for PostgreSQL -- common files ii postgresql-9.1-postgis 1.5.3-1ubuntu0.1 Geographic objects support for PostgreSQL 9.1 2 - configuração inicial 2.1 - no diretorio: "/usr/share/postgresql/9.1/contrib" e executei: psql -f postgis_comments.sql -d <meu_banco> - *ok* 2.2 - no diretorio: "/usr/share/postgresql/9.1/contrib/postgis-1.5" executei: $ psql -f postgis.sql -d <meu_banco> - *que apresentou o seguinte resultado:* psql:postgis.sql:82: ERROR: type "spheroid" already exists psql:postgis.sql:92: ERROR: current transaction is aborted, commands ignored until end of transaction block psql:postgis.sql:98: ERROR: current transaction is aborted, commands ignored until end of transaction block psql:postgis.sql:104: ERROR: current transaction is aborted, commands ignored until end of transaction block psql:postgis.sql:110: ERROR: current transaction is aborted, commands ignored until end of transaction block ... psql:postgis.sql:7741: ERROR: current transaction is aborted, commands ignored until end of transaction block psql:postgis.sql:7746: ERROR: current transaction is aborted, commands ignored until end of transaction block ROLLBACK DROP AGGREGATE DROP AGGREGATE DROP AGGREGATE DROP AGGREGATE DROP FUNCTION DROP FUNCTION ... 2.3 - no diretorio: "/usr/share/postgresql/9.1/contrib/postgis-1.5" executei: $ psql -f spatial_ref_sys.sql -d <meu_banco) - *que também apresentou um monte de erros* Então, é isso. Aqui encerraram-se minhas tentativas. Resta-me (portanto) pedir-lhes ajuda. Será que a execução sem problemas dos scripts (que me disseram que seriam) de "instalação" / "configuração inicial" do PostGis é a causa da falha na tentativa de Criar Extensão ? Grato (antecipadamente): Marcos Nobre
_______________________________________________ pgbr-geral mailing list [email protected] https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
