[Perl] problema con el DBI

Francisco Valladolid francisco en vmicrosistemas.com
Mar Dic 21 11:15:19 CST 2004


Ok, Maritza,

al parecer tienes problemas con la instalacion de Perl no con el DBI,

el modulo More.pm es parte de los modulos base de Perl asi que si no lo 
encuentra seguramente Perl no esta bien instalado en tu computadora.

Antes de proceder a hacer cualquier otra instalacion, te sugiero 
verifiques que la instalacion de Perl este bien.

Saludos.

Maritza Joaquí wrote:

> hola a todos, estoy tratando de instalar el DBI de perl, y he tenido 
> muchos problemas... esto es lo que he hecho:
>
> cuando trate de instalar el DBI-1.46, en el perl Makefile.PL, me salió 
> este error:
> ------------------------------------------------------------------------------------------------------------------ 
>
> Can't locate Test/More.pm in @INC (@INC contains: lib 
> /usr/local/lib/perl5/5.6.1/aix-thread /u
> sr/local/lib/perl5/5.6.1 
> /usr/local/lib/perl5/site_perl/5.6.1/aix-thread /usr/local/lib/perl5/
> site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) at Makefile.PL line 39.
> BEGIN failed--compilation aborted at Makefile.PL line 39.
> ------------------------------------------------------------------------------------------------------------------ 
>
>
>
> entonces decidí bajar el módulo que pide Test::More, baje el 
> Test-Simple-0.54... cuando trate de instalar este, me pidió otro 
> módulo Test::Harness 2.03 or up, así que baje el
> Test-Harness-2.44, este último se instaló bien.
> Cuando intenté instalar el test::more me volvió a pedir el 
> test::harness, eso fue el make test:
> --------------------------------------------------------------------------------------------------------------------------------- 
>
>        PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib   -e 
> 'use Test::Harness qw(&run
> tests $verbose); $verbose=0; runtests @ARGV;' t/*.t
> t/00signature.......skipped: Next time around, consider installing 
> Module::Signature, so you c
> an verify the integrity of this distribution.
> t/00test_harness_check.NOK 1
> #     Failed test (t/00test_harness_check.t at line 9)
> #     '1.1604'
> #         >
> #     '1.2'
> #
> # Test::Simple/More/Builder has features which depend on a version of
> # Test::Harness greater than 1.20.  You have 1.1604.
> # Please install a new version from CPAN.
> #
> # If you've already tried to upgrade Test::Harness and still get this
> # message, the new version may be "shadowed" by the old.  Check the
> # output of Test::Harness's "make install" for "## Differing version"
> # messages.  You can delete the old version by running
> # "make install UNINST=1".
> #
> # Looks like you failed 1 test of 1.
> t/00test_harness_check.dubious
>        Test returned status 1 (wstat 256, 0x100)
> DIED. FAILED test 1
>        Failed 1/1 tests, 0.00% okay
> t/Builder...........ok
> t/More..............NOK 48
> #     Failed test (t/More.t at line 162)
> #          got: 22
> #     expected: 42
> # Looks like you failed 1 test of 48.
> t/More..............dubious
>        Test returned status 1 (wstat 256, 0x100)
> DIED. FAILED test 48
>        Failed 1/48 tests, 97.92% okay
> t/bad_plan..........ok
> t/buffer............ok
> t/circular_data.....ok
> t/curr_test.........ok
> t/details...........ok
> t/diag..............ok
> t/eq_set............ok
> t/exit..............ok
> t/extra.............ok
> t/extra_one.........ok
> t/fail-like.........ok
> t/fail-more.........ok
> t/fail..............ok
> t/fail_one..........ok
> t/filehandles.......ok
> t/fork..............ok
> t/harness_active....ok
> t/has_plan..........ok
> t/has_plan2.........# Need Test::Harness 2.03 or up.  You have 1.1604.
> t/has_plan2.........NOK 1
> #     Failed test (t/has_plan2.t at line 26)
> # Looks like you failed 1 test of 1.
> t/has_plan2.........dubious
>        Test returned status 1 (wstat 256, 0x100)
> DIED. FAILED test 1
>        Failed 1/1 tests, 0.00% okay
> t/import............ok
> t/is_deeply.........ok
> t/is_fh.............ok
> t/maybe_regex.......ok
> t/missing...........ok
> t/no_diag...........ok
> t/no_ending.........ok
> t/no_header.........ok
> t/no_plan...........ok
> t/ok_obj............ok
> t/output............ok
> t/overload..........ok
> t/overload_threads..FAILED test 4
>        Failed 1/5 tests, 80.00% okay (-1 skipped test: 3 okay, 60.00%)
> t/plan..............ok
> t/plan_bad..........ok
> t/plan_is_noplan....ok
> t/plan_no_plan......# Need Test::Harness 2.03 or up.  You have 1.1604.
> t/plan_no_plan......NOK 1
> #     Failed test (t/plan_no_plan.t at line 24)
> # Looks like you failed 1 test of 1.
> t/plan_no_plan......dubious
>        Test returned status 1 (wstat 256, 0x100)
> DIED. FAILED test 1
>        Failed 1/1 tests, 0.00% okay
> t/plan_shouldnt_import.ok
> t/plan_skip_all.....skipped: Just testing plan & skip_all
> t/require_ok........ok
> t/reset.............ok
> t/simple............ok
> t/skip..............ok, 7/15 skipped: Just testing the skip interface.
> t/skipall...........ok
> t/sort_bug..........skipped: no threads
> t/thread_taint......ok
> t/threads...........skipped: no threads
> t/todo..............NOK 1
> #     Failed test (t/todo.t at line 20)
> # Looks like you failed 1 test of 1.
> t/todo..............dubious
>        Test returned status 1 (wstat 256, 0x100)
> DIED. FAILED test 1
>        Failed 1/1 tests, 0.00% okay
> t/undef.............ok
> t/use_ok............ok
> t/useing............ok
> Failed Test              Status Wstat Total Fail  Failed  List of Failed
> -------------------------------------------------------------------------------- 
>
> t/00test_harness_check.t           1   256     1    1 100.00%  1
> t/More.t                           1   256    48    1   2.08%  48
> t/has_plan2.t                      1   256     1    1 100.00%  1
> t/overload_threads.t                           5    1  20.00%  4
> t/plan_no_plan.t                   1   256     1    1 100.00%  1
> t/todo.t                           1   256     1    1 100.00%  1
> 4 tests and 8 subtests skipped.
> Failed 6/54 test scripts, 88.89% okay. 6/333 subtests failed, 98.20% 
> okay.
> make: 1254-004 The error code from the last command is 2.
>
>
> Stop.
> ------------------------------------------------------------------------------------------------------------------ 
>
>
> De todas maneras decidí hacer el make install y esto fue lo que salió:
> ------------------------------------------------------------------------------------------------------------------ 
>
> Installing 
> /ii/pa/perl-5.6.1/usr/local/lib/perl5/site_perl/5.6.1/Test/Tutorial.pod
> Installing 
> /ii/pa/perl-5.6.1/usr/local/lib/perl5/site_perl/5.6.1/Test/Builder.pm
> Installing 
> /ii/pa/perl-5.6.1/usr/local/lib/perl5/site_perl/5.6.1/Test/Simple.pm
> Installing 
> /ii/pa/perl-5.6.1/usr/local/lib/perl5/site_perl/5.6.1/Test/More.pm
> Installing /ii/pa/perl-5.6.1/usr/local/man/man3/Test::Tutorial.3
> Installing /ii/pa/perl-5.6.1/usr/local/man/man3/Test::Builder.3
> Installing /ii/pa/perl-5.6.1/usr/local/man/man3/Test::Simple.3
> Installing /ii/pa/perl-5.6.1/usr/local/man/man3/Test::More.3
> Writing 
> /ii/pa/perl-5.6.1/usr/local/lib/perl5/site_perl/5.6.1/aix-thread/auto/Test/Simple/.pac 
>
> klist
> Appending installation info to 
> /ii/pa/perl-5.6.1/usr/local/lib/perl5/5.6.1/aix-thread/perlloca
> l.pod
> Target "install" is up to date.
> ------------------------------------------------------------------------------------------------------------------ 
>
>
> .... supuestamente se pudo instalar o me equivoco?
>
> entonces decidí intentar instalar nuevamente el DBI que era lo que 
> quería y cuando hago el perl Makefile.PL me vuelve a salir:
>
> ------------------------------------------------------------------------------------------------------------------ 
>
> Can't locate Test/More.pm in @INC (@INC contains: lib 
> /usr/local/lib/perl5/5.6.1/aix-thread /u
> sr/local/lib/perl5/5.6.1 
> /usr/local/lib/perl5/site_perl/5.6.1/aix-thread /usr/local/lib/perl5/
> site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) at Makefile.PL line 39.
> BEGIN failed--compilation aborted at Makefile.PL line 39.
> ------------------------------------------------------------------------------------------------------------------ 
>
>
>
> YA NO TENGO LA MAS MINIMA IDEA DE LO QUE DEBO HACER, ALGUIEN PODRÍA 
> POR FAVOR AYUDARME????, MUCHAS GRACIAS DE ANTEMANO
>
>
>
> MARITZA
>
> _________________________________________________________________
> MSN Amor: busca tu ½ naranja http://latam.msn.com/amor/
>
> _______________________________________________
> Perl mailing list
> Perl en tlali.iztacala.unam.mx
> http://tlali.iztacala.unam.mx/cgi-bin/mailman/listinfo/perl
>



Más información sobre la lista de distribución Perl