<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Bom dia,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Estou tentando adaptar uma aplicação chamada
ScriptLattes (<A
href="http://scriptlattes.sourceforge.net/">http://scriptlattes.sourceforge.net/</A>).
Ele é uma aplicação escrita em Perl com o objetivo de realizar o download dos
dados da Plataforma Lattes, que são curriculos academicos de alunos e
professores. Uma das novas funcionalidades desse script é que os dados baixados
são salvos em um arquivo .json, possibilitando serem importados para outros
formatos ou até bancos de dados. O problema é que quando eu rodo esse script no
meu ambiente (Ubuntu 8.4 server). Ele simplesmente gera o arquivo .json em
branco (apesar do script realizar as outras tarefas corretamente). O autor do
script me ajudou e fez alguns testes, e no computador dele esta funcionando
perfeitamente, gerando os dados no formato json. Acredito que o problema esteja
no meu ambiente, porém eu ja baixei vários pacotes referentes ao PERL e ao JSON
mas nada de funcionar. </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>O codigo que gera o arquivo basicamente é
esse:</FONT></DIV>
<DIV><FONT size=2 face=Arial>sub createJsonFile<BR>{<BR> # Arquivo JSON
contendo todas as produções do grupo.<BR> # Este arquivo pode ser utilizado
para popular bancos de
dados.<BR> #to_json($allInfoByType)<BR> open(JSONFILE,
">$outputDir/database.json");<BR> eval <BR> { <BR> print
JSONFILE lenght($allInfoByType);
<BR> };<BR> close(JSONFILE);<BR>}</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Alguns dados:</FONT></DIV>
<DIV><FONT size=2 face=Arial>Perl versão 5.8.8</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Pacotes instalados:</FONT></DIV>
<DIV><FONT size=2 face=Arial><A
href="mailto:waltercoan@ldubuntuserver:~$">waltercoan@ldubuntuserver:~$</A> dpkg
--get-selections | grep -i
json<BR>libjson-any-perl install<BR>libjson-perl install</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial><A
href="mailto:waltercoan@ldubuntuserver:~$">waltercoan@ldubuntuserver:~$</A> dpkg
--get-selections | grep -i
perl<BR>libalgorithm-c3-perl install<BR>libappconfig-perl install<BR>libarchive-tar-perl install<BR>libbit-vector-perl install<BR>libcache-cache-perl install<BR>libcache-fastmmap-perl install<BR>libcarp-assert-more-perl install<BR>libcarp-assert-perl install<BR>libcarp-clan-perl install<BR>libcatalyst-modules-perl install<BR>libcatalyst-perl install<BR>libcatalyst-view-tt-perl install<BR>libcgi-formbuilder-perl install<BR>libcgi-simple-perl install<BR>libclass-accessor-chained-perl install<BR>libclass-accessor-grouped-perl install<BR>libclass-accessor-perl install<BR>libclass-c3-componentised-perl install<BR>libclass-c3-perl install<BR>libclass-data-accessor-perl install<BR>libclass-data-inheritable-perl install<BR>libclass-inspector-perl install<BR>libclass-mop-perl install<BR>libclass-throwable-perl install<BR>libclass-trigger-perl install<BR>libcompress-raw-zlib-perl install<BR>libcompress-zlib-perl install<BR>libconfig-any-perl install<BR>libdata-dump-perl install<BR>libdata-optlist-perl install<BR>libdata-page-perl install<BR>libdata-visitor-perl install<BR>libdate-calc-perl install<BR>libdbd-mysql-perl install<BR>libdbi-perl install<BR>libdbix-class-perl install<BR>libdbix-class-schema-loader-perl install<BR>libdbix-contextualfetch-perl install<BR>libdeps-perl install<BR>libdeps-renderer-dot-perl install<BR>libdevel-stacktrace-perl install<BR>libdigest-hmac-perl install<BR>libdigest-sha1-perl install<BR>libemail-valid-perl install<BR>liberror-perl install<BR>libexporter-lite-perl install<BR>libextutils-autoinstall-perl install<BR>libextutils-cbuilder-perl install<BR>libextutils-parsexs-perl install<BR>libfile-copy-recursive-perl install<BR>libfile-modified-perl install<BR>libfile-slurp-perl install<BR>libgd-gd2-noxpm-perl install<BR>libgd-graph-perl install<BR>libgd-text-perl install<BR>libgraphviz-perl install<BR>libhtml-parser-perl install<BR>libhtml-prototype-perl install<BR>libhtml-scrubber-perl install<BR>libhtml-tagset-perl install<BR>libhtml-template-perl install<BR>libhtml-tree-perl install<BR>libhtml-widget-perl install<BR>libhttp-body-perl install<BR>libhttp-request-ascgi-perl install<BR>libhttp-server-simple-perl install<BR>libio-compress-base-perl install<BR>libio-compress-zlib-perl install<BR>libio-multiplex-perl install<BR>libio-pty-perl install<BR>libio-stringy-perl install<BR>libio-zlib-perl install<BR>libipc-run-perl install<BR>libipc-sharelite-perl install<BR>libjson-any-perl install<BR>libjson-perl install<BR>liblingua-en-inflect-number-perl install<BR>liblingua-en-inflect-perl install<BR>liblocale-gettext-perl install<BR>liblocale-maketext-lexicon-perl install<BR>liblocale-maketext-simple-perl install<BR>liblog-log4perl-perl install<BR>libmailtools-perl install<BR>libmime-types-perl install<BR>libmodule-build-perl install<BR>libmodule-find-perl install<BR>libmodule-install-perl install<BR>libmodule-pluggable-fast-perl install<BR>libmodule-pluggable-perl install<BR>libmodule-scandeps-perl install<BR>libmoose-perl install<BR>libmro-compat-perl install<BR>libnet-cidr-perl install<BR>libnet-daemon-perl install<BR>libnet-dbus-perl install<BR>libnet-dns-perl install<BR>libnet-domain-tld-perl install<BR>libnet-ip-perl install<BR>libnet-server-perl install<BR>libobject-signature-perl install<BR>libossp-uuid-perl install<BR>libpar-dist-perl install<BR>libparams-util-perl install<BR>libparams-validate-perl install<BR>libparse-recdescent-perl install<BR>libpath-class-perl install<BR>libplrpc-perl install<BR>librpc-xml-perl install<BR>librrds-perl install<BR>libscope-guard-perl install<BR>libset-object-perl install<BR>libsql-abstract-limit-perl install<BR>libsql-abstract-perl install<BR>libsub-exporter-perl install<BR>libsub-install-perl install<BR>libsub-name-perl install<BR>libsub-uplevel-perl install<BR>libtemplate-perl install<BR>libtemplate-plugin-class-perl install<BR>libtemplate-timer-perl install<BR>libterm-readkey-perl install<BR>libtest-exception-perl install<BR>libtest-longstring-perl install<BR>libtest-mockobject-perl install<BR>libtest-use-ok-perl install<BR>libtest-www-mechanize-perl install<BR>libtext-charwidth-perl install<BR>libtext-iconv-perl install<BR>libtext-simpletable-perl install<BR>libtext-wrapi18n-perl install<BR>libtie-ixhash-perl install<BR>libtimedate-perl install<BR>libtree-simple-perl install<BR>libtree-simple-visitorfactory-perl install<BR>libuniversal-can-perl install<BR>libuniversal-exports-perl install<BR>libuniversal-isa-perl install<BR>libuniversal-require-perl install<BR>liburi-perl install<BR>libversion-perl install<BR>libwww-mechanize-perl install<BR>libwww-perl install<BR>libxml-parser-perl install<BR>libxml-twig-perl install<BR>libxml-writer-perl install<BR>libyaml-perl install<BR>perl install<BR>perl-base install<BR>perl-modules install</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Obrigado,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Walter Coan</FONT></DIV>
<DIV><FONT size=2 face=Arial><A
href="mailto:w.coan@terra.com.br">w.coan@terra.com.br</A></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV></BODY></HTML>