Fala galera do VOL. Vamos conhecer o programa SQL-Ledger, funcional, leve (muito leve) e o melhor: sob a GPL. O SQL-Ledger funciona baseado em servidor web, banco de dados postgreSQL, CGI e Perl. Vamos ver como instalar o PostgreSQL e colocar o Ledger pra rodar, inclusive fazer as configurações iniciais.
[ Hits: 37.791 ]
Por: Waldemar Wantuil de Souza Neto em 19/03/2008 | Blog: http://upsys.org
[1] Comentário enviado por cazon em 27/06/2008 - 10:19h
To com problemas ao tentar instalar este pack DBD-pg:
# Failed test 'use DBD::Pg;'
# in t/00basic.t at line 13.
# Tried to use 'DBD::Pg'.
# Error: Can't locate version.pm in @INC (@INC contains: /root/files/DBD-Pg-2.8.1/blib/lib /root/files/DBD-Pg-2.8.1/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 /usr/lib/perl5/vendor_perl/5.8.8/i486-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .) at /root/files/DBD-Pg-2.8.1/blib/lib/DBD/Pg.pm line 20.
# BEGIN failed--compilation aborted at t/00basic.t line 13.
# 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
[3] Comentário enviado por cazon em 28/06/2008 - 17:36h
Primeiramente executei o #perl Makefile.PL depois ao executar o "make test" deu este erro.
Veja o processo completo:
root@cazon:~/files/DBD-Pg-2.8.1# perl Makefile.PL
Configuring DBD::Pg 2.8.1
PostgreSQL version: 80303 (default port: 5432)
POSTGRES_HOME: (not set)
POSTGRES_INCLUDE: (not set)
POSTGRES_LIB: /usr/local/pgsql/lib
OS: linux
Multiple copies of Driver.xst found in: /usr/lib/perl5/site_perl/5.8.8/i486-linux-thread-multi/auto/DBI/ /usr/lib/perl5/vendor_perl/5.8.8/i486-linux-thread-multi/auto/DBI/ at Makefile.PL line 157
Checking if your kit is complete...
Looks good
Warning: prerequisite version 0 not found.
Could not eval '
package ExtUtils::MakeMaker::_version;
no strict;
local $VERSION;
$VERSION=undef; do {
use version; our $VERSION = qv('2.8.1');
}; $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 /usr/lib/perl5/vendor_perl/5.8.8/i486-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .) at (eval 10) line 7, <FH> line 20.
BEGIN failed--compilation aborted at (eval 10) line 7, <FH> line 20.
WARNING: Setting VERSION via file 'Pg.pm' failed
at /usr/lib/perl5/5.8.8/ExtUtils/MakeMaker.pm line 495
Multiple copies of Driver.xst found in: /usr/lib/perl5/site_perl/5.8.8/i486-linux-thread-multi/auto/DBI/ /usr/lib/perl5/vendor_perl/5.8.8/i486-linux-thread-multi/auto/DBI/ at Makefile.PL line 231
Using DBI 1.605 (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
chmod 755 blib/arch/auto/DBD/Pg/Pg.so
cp Pg.bs blib/arch/auto/DBD/Pg/Pg.bs
chmod 644 blib/arch/auto/DBD/Pg/Pg.bs
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 13.
# Tried to use 'DBD::Pg'.
# Error: Can't locate version.pm in @INC (@INC contains: /root/files/DBD-Pg-2.8.1/blib/lib /root/files/DBD-Pg-2.8.1/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 /usr/lib/perl5/vendor_perl/5.8.8/i486-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .) at /root/files/DBD-Pg-2.8.1/blib/lib/DBD/Pg.pm line 20.
# BEGIN failed--compilation aborted at t/00basic.t line 13.
# 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
[4] Comentário enviado por nissieloin em 30/06/2008 - 11:03h
O problema ao que tudo indica está no seu perl... talvez a versão seja incompatível ou não esteja totalmente instalado. Ele está dando erro pra gerar o make.