Estimados: tengo que implementar un programa en perl que vaya parseando el log 
de postfix, y grabe la info en una BD en SQL Server.

Según he leído, tanto con los paquetes DBD::Sybase o DBD::ODBC, se puede 
accesar a una BD en el M$ Sql Server. 

Bajé ambos paquetes y si los llamaba en el código del programa con use 
DBD::Sybase o DBD::ODBC, me salía error al compilar.

Intenté con el DBD::ODBC, y se cae en la línea use DBD::ODBC, me sale el 
siguiente mensaje

Can't locate DBD/ODBC.pm in @INC (@INC contains: 
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 
/usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 
/usr/lib/perl5/site_perl 
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 
/usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 
/usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi 
/usr/lib/perl5/5.8.8 .) at parslog.pl line 9.
BEGIN failed--compilation aborted at parslog.pl line 9.

Cuando bajé el paquete por CPAN me salió lo siguiente:

DBD-ODBC-1.16/ODBC.pm
DBD-ODBC-1.16/ConvertUTF.h
DBD-ODBC-1.16/README.osx
DBD-ODBC-1.16/dbdimp.h
DBD-ODBC-1.16/MANIFEST
DBD-ODBC-1.16/README.af
DBD-ODBC-1.16/README.hpux
DBD-ODBC-1.16/ODBC.xs
DBD-ODBC-1.16/README.windows
DBD-ODBC-1.16/fixup_c.h
DBD-ODBC-1.16/unicode_helper.c
DBD-ODBC-1.16/ConvertUTF.c
DBD-ODBC-1.16/t/
DBD-ODBC-1.16/t/UChelp.pm
DBD-ODBC-1.16/t/30Oracle.t
DBD-ODBC-1.16/t/41Unicode.t
DBD-ODBC-1.16/t/07bind.t
DBD-ODBC-1.16/t/20SqlServer.t
DBD-ODBC-1.16/t/ODBCTEST.pm
DBD-ODBC-1.16/t/02simple.t
DBD-ODBC-1.16/t/40UnicodeRoundTrip.t
DBD-ODBC-1.16/t/09multi.t
DBD-ODBC-1.16/t/01base.t
DBD-ODBC-1.16/t/03dbatt.t
DBD-ODBC-1.16/t/08bind2.t
DBD-ODBC-1.16/t/05meth.t
DBD-ODBC-1.16/t/10handler.t
DBD-ODBC-1.16/dbivport.h
DBD-ODBC-1.16/README.RH9
DBD-ODBC-1.16/README.informix
DBD-ODBC-1.16/README.unicode
DBD-ODBC-1.16/fixup_t.h
DBD-ODBC-1.16/FAQ
DBD-ODBC-1.16/META.yml
DBD-ODBC-1.16/README.adabas
DBD-ODBC-1.16/Makefile.PL
DBD-ODBC-1.16/Changes
DBD-ODBC-1.16/dbdimp.c
DBD-ODBC-1.16/mytest/
DBD-ODBC-1.16/mytest/testcrtable.pl
DBD-ODBC-1.16/mytest/randombind.pl
DBD-ODBC-1.16/mytest/moreresults.pl
DBD-ODBC-1.16/mytest/Test_Dates_Jun19.pl
DBD-ODBC-1.16/mytest/listtabs.pl
DBD-ODBC-1.16/mytest/testigparams.pl
DBD-ODBC-1.16/mytest/timetest.pl
DBD-ODBC-1.16/mytest/joetest7.pl
DBD-ODBC-1.16/mytest/testclob.pl
DBD-ODBC-1.16/mytest/DbiTest2.pl
DBD-ODBC-1.16/mytest/testconnspeed.pl
DBD-ODBC-1.16/mytest/northwind.pl
DBD-ODBC-1.16/mytest/testproc4.pl
DBD-ODBC-1.16/mytest/testinout.pl
DBD-ODBC-1.16/mytest/testproc3.pl
DBD-ODBC-1.16/mytest/testkeys.pl
DBD-ODBC-1.16/mytest/testundef3.pl
DBD-ODBC-1.16/mytest/joetest2.pl
DBD-ODBC-1.16/mytest/testver.pl
DBD-ODBC-1.16/mytest/testproc.pl
DBD-ODBC-1.16/mytest/testxml.pl
DBD-ODBC-1.16/mytest/testmoney.pl
DBD-ODBC-1.16/mytest/testfunc.pl
DBD-ODBC-1.16/mytest/leakcheck.pl
DBD-ODBC-1.16/mytest/testdestruction.pl
DBD-ODBC-1.16/mytest/testerrhandler.pl
DBD-ODBC-1.16/mytest/identity.pl
DBD-ODBC-1.16/mytest/joetest5.pl
DBD-ODBC-1.16/mytest/testgetinfo.pl
DBD-ODBC-1.16/mytest/money_test.cgi
DBD-ODBC-1.16/mytest/testmulti.pl
DBD-ODBC-1.16/mytest/inttest.pl
DBD-ODBC-1.16/mytest/joetest6.pl
DBD-ODBC-1.16/mytest/testdisc.pl
DBD-ODBC-1.16/mytest/testundef2.pl
DBD-ODBC-1.16/mytest/testspmulti.pl
DBD-ODBC-1.16/mytest/longbin.pl
DBD-ODBC-1.16/mytest/joetest4.pl
DBD-ODBC-1.16/mytest/testdatasources.pl
DBD-ODBC-1.16/mytest/testconn.pl
DBD-ODBC-1.16/mytest/testundef.pl
DBD-ODBC-1.16/mytest/thrtest.pl
DBD-ODBC-1.16/mytest/proctest3.pl
DBD-ODBC-1.16/mytest/contest.pl
DBD-ODBC-1.16/mytest/joetest.pl
DBD-ODBC-1.16/mytest/coltest.pl
DBD-ODBC-1.16/mytest/proctest2.pl
DBD-ODBC-1.16/mytest/testproc2.pl
DBD-ODBC-1.16/mytest/DbiTest.pl
DBD-ODBC-1.16/mytest/proctest1.pl
DBD-ODBC-1.16/mytest/cancel.pl
DBD-ODBC-1.16/mytest/sqltmptabs.pl
DBD-ODBC-1.16/mytest/testPrc.sql
DBD-ODBC-1.16/README
DBD-ODBC-1.16/unicode_helper.h
DBD-ODBC-1.16/ODBC.h

  CPAN.pm: Going to build M/MJ/MJEVANS/DBD-ODBC-1.16.tar.gz

Useless use of private variable in void context at Makefile.PL line 571.

Your LANG environment variable is set to "es_ES.UTF-8"
This is known to cause problems in some perl installations - even stopping
this Makefile.PL to run without errors. If you have problems please try
re-running with LANG unset or with the utf part of LANG removed.

You are using a Perl configured with threading enabled.
Please read the warnings in DBI about this.
You should also be aware that on non-Windows platforms ODBC drivers come
in two forms, thread-safe and non-thread-safe drivers and you may need
to make sure you are using the right one.

Press return to continue...

>>>     Remember to actually *READ* the README file!
        And re-read it if you have any problems.


Use of uninitialized value in pattern match (m//) at Makefile.PL line 186, 
<STDIN> line 1.

The DBD::ODBC module needs to link with an ODBC 'Driver Manager'.
(The Driver Manager, in turn, needs one or more database specific ODBC
drivers. The DBD::ODBC module does _not_ include any ODBC drivers!)

You need to indicate where your ODBC Driver Manager is installed.
You can do this ether by setting the ODBCHOME environment variable
or by running 'perl Makefile.PL -o odbcdir'.

If you do not have an ODBC Driver Manager you should try to get hold of
the unixODBC packages for your system or build it from source (see
http://www.unixodbc.org).
make: *** No se especificó ningún objetivo y no se encontró ningún 
makefile.  Alto.
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible

Al final plantea que la instalación parece imposible.... ¿a qué se debe, y cómo 
puedo solucionarlo?

Muchas gracias....

All we are saying is give peace a chance


      ______________________________________________ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.
_______________________________________________
Cancelar suscripción
https://listas.softwarelibre.cu/mailman/listinfo/linux-l
Buscar en el archivo
http://listas.softwarelibre.cu/buscar/linux-l

Responder a