[Cascavel-pm] uma ajuda para instalar perl com postgres.
gilmar
gilmarmoretto.mp em gmail.com
Sábado Dezembro 27 05:54:30 PST 2008
Daniel de Oliveira Mantovani wrote:
> Poderia mostrar a mensagem de erro por gentileza?
>
> 2008/12/27 gilmar <gilmarmoretto.mp
> <http://gilmarmoretto.mp>@gmail.com <http://gmail.com>>
>
> Um bom dia a todos.
> O meu problema é o seguinte, eu tenho perl instalado e postgres,
> porém não consigo instalar o módulo para conecção com postgres (
> acredito que seja o DBD::pg) sempre me retornando erro, seja pelo
> cpan ou instalando o módulo " no braço".
> Alguém pode me dar uma força?
> Obs: Estou usando o postgres 8.2.11 ( tinha o 8.3 mas o
> desinstalei pensando que seria esse o problema e não era) e uso
> slackware 12. O postgres está instalado corretamente e funcionando
> perfeitamente.
> Alguém poderia me dizer como devo proceder?
> _______________________________________________
> Cascavel-pm mailing list
> Cascavel-pm em pm.org <mailto:Cascavel-pm em pm.org>
> http://mail.pm.org/mailman/listinfo/cascavel-pm
>
>
>
>
> --
> http://mantovanihouse.blogspot.com/
>
> -------(\_------------_/)-----------
> -------)--(----------)--(-----------
> ------(----(---------)----)----------
> -------)----(-------)----(-----------
> -------(----(-------)----)-----------
> --------\_-(\\.---.//)-_/------------
> ----------\)' -8--8- '(/--------------
> -----------/------------\---------------
> ----------(--)--------(--)--------------
> ------------(_c__c_)----------------
> ----------------------------------------
> ------------------------------------------------------------------------
>
> _______________________________________________
> Cascavel-pm mailing list
> Cascavel-pm em pm.org
> http://mail.pm.org/mailman/listinfo/cascavel-pm
certo.
Vamos pelo código fonte mesmoprimeiro eu executo o makefile e me retorna
esse warning
Configuring DBD::Pg 2.11.7
PostgreSQL version: 80211 (default port: 5432)
POSTGRES_HOME: (not set)
POSTGRES_INCLUDE: (not set)
POSTGRES_LIB: /usr/local/pgsql/lib -lssl -lcrypto
OS: linux
Warning: prerequisite version 0 not found.
Could not eval '
package ExtUtils::MakeMaker::_version;
no strict;
BEGIN { eval {
# Ensure any version() routine which might have leaked
# into this package has been deleted. Interferes with
# version->import()
undef *version;
require version;
"version"->import;
} }
local $VERSION;
$VERSION=undef;
do {
use version; our $VERSION = qv('2.11.7');
};
$VERSION;
' in Pg.pm: Can't locate version.pm in @INC (@INC contains:
t/lib /usr/lib/perl5/5.8.8/i486-linux-thread-multi /usr/lib/perl5/5.8.8
/usr/lib/perl5/site_perl/5.8.8/i486-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl .) at (eval 8)
line 16, <$fh> line 20.
BEGIN failed--compilation aborted at (eval 8) line 16, <$fh> line 20.
WARNING: Setting VERSION via file 'Pg.pm' failed
at /usr/lib/perl5/5.8.8/ExtUtils/MakeMaker.pm line 559
Using DBI 1.53 (for perl 5.008008 on i486-linux-thread-multi) installed
in /usr/lib/perl5/site_perl/5.8.8/i486-linux-thread-multi/auto/DBI/
Writing Makefile for DBD::Pg
As vezes eu consigo instalar alguns módulos apesar o warning( obviamente
que não é o caso desse módulo)
depois executo o make o qual passa sem problemas.
depois eu executo o make test que me retorna a seguinte mensagem
root em gilmar:/fontes/DBD-Pg-2.11.7# make test
PGINITDB="/usr/local/pgsql/bin/initdb" PERL_DL_NONLAZY=1
/usr/bin/perl5.8.8 "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
t/00-signature......skipped
all skipped: Set the environment variable TEST_SIGNATURE to
enable this test
t/00basic...........
# Failed test 'use DBD::Pg;'
# in t/00basic.t at line 14.
# Tried to use 'DBD::Pg'.
# Error: Can't locate version.pm in @INC (@INC contains:
/fontes/DBD-Pg-2.11.7/blib/lib /fontes/DBD-Pg-2.11.7/blib/arch
/usr/lib/perl5/5.8.8/i486-linux-thread-multi /usr/lib/perl5/5.8.8
/usr/lib/perl5/site_perl/5.8.8/i486-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl .) at
/fontes/DBD-Pg-2.11.7/blib/lib/DBD/Pg.pm line 20.
# BEGIN failed--compilation aborted at t/00basic.t line 14.
# Compilation failed in require at (eval 6) line 2.
# BEGIN failed--compilation aborted at (eval 6) line 2.
t/00basic...........NOK 2FAILED--Further testing stopped: Cannot
continue without DBD::Pg
make: *** [test_dynamic] Error 9
Sabe como posso resolver isso?
Mais detalhes sobre a lista de discussão Cascavel-pm