Re: Instalar extensão manualmente

Neto pr <[email protected]>
Newsgroups gmane.comp.db.postgresql.brasil
Message-ID <CA+wPC0PA9SOEm=SiLApQMk_E0PRt0+VtbFDHAJptaMiQ-PBURw__29167.538524098$1507420180$gmane$org@mail.gmail.com>
Boa...

Funcionou agora, depois de exportar o PATH. Thanks

Nem precisei colocar o arquivo hypo.so no lib, pois o comando make install
fez isso para mim:
                /usr/bin/install -c -m 755  hypopg.so
'/opt/pgv10/lib/postgresql/hypopg.so'

====  saída completa shell   =================================
root@hp2ml110deb:/home/user1/Downloads/codigo/hypopg-master# export
PATH=/opt/pgv10/bin:$PATH
root@hp2ml110deb:/home/user1/Downloads/codigo/hypopg-master# USE_PGXS=1
make install
gcc -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard
-O2 -fPIC -I. -I./ -I/opt/pgv10/include/postgresql/server
-I/opt/pgv10/include/postgresql/internal  -D_GNU_SOURCE   -c -o hypopg.o
hypopg.c
hypopg.c: In function ‘hypopg_get_indexdef’:
hypopg.c:1601:21: warning: ‘entry’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
  if (!entry || entry->oid != indexid)
                     ^
gcc -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard
-O2 -fPIC -I. -I./ -I/opt/pgv10/include/postgresql/server
-I/opt/pgv10/include/postgresql/internal  -D_GNU_SOURCE   -c -o
hypopg_import.o hypopg_import.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute
-Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard
-O2 -fPIC -shared -o hypopg.so hypopg.o hypopg_import.o -L/opt/pgv10/lib
-Wl,--as-needed -Wl,-rpath,'/opt/pgv10/lib',--enable-new-dtags
/bin/mkdir -p '/opt/pgv10/lib/postgresql'
/bin/mkdir -p '/opt/pgv10/share/postgresql/extension'
/bin/mkdir -p '/opt/pgv10/share/postgresql/extension'
/usr/bin/install -c -m 755  hypopg.so '/opt/pgv10/lib/postgresql/hypopg.so'
/usr/bin/install -c -m 644 .//hypopg.control
'/opt/pgv10/share/postgresql/extension/'
/usr/bin/install -c -m 644 .//hypopg--1.1.0.sql
'/opt/pgv10/share/postgresql/extension/'
root@hp2ml110deb:/home/user1/Downloads/codigo/hypopg-master#




Em 7 de outubro de 2017 15:38, Euler Taveira <euler-hNsCO/[email protected]>
escreveu:

> Em 7 de outubro de 2017 19:28, Neto pr <[email protected]> escreveu:
> > Eu instalei o Posgresql versao 10 (stable) através do pacote fonte
> > (compilando manualmente) no diretório  opt/pgv10/.. no meu SO LInux
> Debian
> > 8.
> >
> > Eu gostaria de usar a extensão HIPOPG [1],[2] para habilitar a criacão de
> > índices hipotéticos no postgresql.
> >
> > Pelo que vi, tem que ter o pacote Dev do postgresql, mas acredito que
> minha
> > instalacão nao tenha isso (eu acho).
> >
> > Tentei baixar a extensão arquivo.zip mas nao tem como proceder a
> compilacão
> > e instalacão  (com make e make install), pois da a seguinte mensagem:
> >     make: pg_config: Command not found
> >     make: Nothing to be done for 'all'.
> >
> Como o pg_config não está no seu PATH, você precisar definir o PATH.
>
> $ export PATH=/opt/pgv10/bin:$PATH
> $ cd hipopg
> $ USE_PGXS=1 make install
>
> Certifique-se que o arquivo hypo.so esteja no diretório lib da
> instalação do PostgreSQL. Depois disso é só fazer o CREATE EXTENSION
> no banco de dados desejado.
>
>
> --
>    Euler Taveira                                   Timbira -
> http://www.timbira.com.br/
>    PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento
> _______________________________________________
> pgbr-geral mailing list
> pgbr-geral-b/[email protected]
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.