narlem escreveu:
> Olá Pessoa,
>  
> Estou tentando e nao consigo instalar o postgres no mandriva 2009, eu 
> preciso instalar o postgresql sem ser com o bin, e nao consigo, mas 
> tambem nao sou um expert em linux,
> tentei com o "urpmi postgresql", mas nunca dá, na realidade eu tava 
> precisando somente de:
>  
> 1) Instalar o postgresql no mandriva 2009 sem ser com o .bin (binario)
>     Onde baixar o pacote rpm do postgresql, porque o urpmi nao funciona?
> 2) Iniciar o postgresql com o comando
>     service postgresql start
> 3) Criar a base de dados com o comando
>     createdb  -ELATIN1 -Upostgres basedados
>  
> Mas nao consigo sair da etapa 1, se alguem puder me ajudar?
>  
> Desde já antecipo meus agradecimentos
>  
> Narlem G. A. Santos
> BH MG
> ------------------------------------------------------------------------
>
> _______________________________________________
> pgbr-geral mailing list
> [email protected]
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>   
Faça o seguinte:
Como root crie o script update.sh com o conteúdo abaixo:
----------------------------8<---------------------------------
#!/bin/bash

urpmi.removemedia -a

MACHINE=`uname -m`

if [ "$MACHINE" != "x86_64" ]; then
   MACHINE="i586"
fi

VERSION="2009.0"

MEDIAS="main/release main/updates contrib/release contrib/updates 
non-free/release non-free/updates"

REPOSITORY="http://mandriva.c3sl.ufpr.br/official/$VERSION/$MACHINE/media/";

#urpmi.removemedia -a

if [ "$MACHINE" == "x86_64" ]; then
  urpmi.addmedia --wget "plf-free x86_64"    
ftp://ftp.free.fr/pub/Distributions_Linux/plf/mandriva/$VERSION/free/release/binary/$MACHINE/
     
with media_info/synthesis.hdlist.cz
  urpmi.addmedia --wget "plf-nonfree x86_64" 
ftp://ftp.free.fr/pub/Distributions_Linux/plf/mandriva/$VERSION/non-free/release/binary/$MACHINE/
 
with media_info/synthesis.hdlist.cz
  for MEDIA in $MEDIAS; do
     DESCRIPTION=`echo "$VERSION $MEDIA x86_64"|sed 's/\//./'`
     urpmi.addmedia --wget "$DESCRIPTION" "$REPOSITORY/""$MEDIA/" with 
media_info/synthesis.hdlist.cz
  done
fi

## Sempre adiciona o i586
MACHINE="i586"

REPOSITORY="http://mandriva.c3sl.ufpr.br/official/$VERSION/$MACHINE/media/";

urpmi.addmedia --wget "plf-free i586"    
ftp://ftp.free.fr/pub/Distributions_Linux/plf/mandriva/$VERSION/free/release/binary/$MACHINE/
     
with media_info/synthesis.hdlist.cz
urpmi.addmedia --wget "plf-nonfree i586" 
ftp://ftp.free.fr/pub/Distributions_Linux/plf/mandriva/$VERSION/non-free/release/binary/$MACHINE/
 
with media_info/synthesis.hdlist.cz

REPOSITORY="http://mandriva.c3sl.ufpr.br/official/$VERSION/$MACHINE/media/";
for MEDIA in $MEDIAS; do
   DESCRIPTION=`echo "$VERSION $MEDIA i586"|sed 's/\//./'`
   urpmi.addmedia --wget "$DESCRIPTION" "$REPOSITORY/""$MEDIA/" with 
media_info/synthesis.hdlist.cz
done
----------------------------8<---------------------------------

execute o script:
sh update.sh

Instale o postgresql:
urpmi postgresql8.3-server

-- 

*Alfredo Júnior*

Sócio Gerente

LBr Consultoria ltda.

SHC/AOS 2/8 Lote 5 Torre A Sala 330

Terraço Shopping

70660-090 - Brasília - DF

[email protected]

_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a