Engenharia de Linguagens

Engenharia de Linguagens

GraphViz no XP/Vista

Para quem usa Windows Vista (e talvez XP ? ) com o Strawberry Perl, e não conseguia por a funcionar o módulo GraphViz 2.03 do CPAN. Descobri que se trata de um pequeno bug, no ficheiro de configuração do módulo.

Portanto após instalar o GraphViz (www.graphviz.org) no Windows e o módulo GraphViz no CPAN (force install GraphViz):

   C:\strawberry\perl\site\lib\GraphViz.pm
   
   linhas 360-364:
   
   if (exists $config->{layout}) {
         $self->{LAYOUT} = $config->{layout};
     } else {
         $self->{LAYOUT} = "dot"; # default layout
     }

Alterar o "dot" para "dot.exe" e ele já corre. (pode ser necessário desmarcar o "só de leitura" do ficheiro )


r3 - 23 Sep 2009 - 10:52:57 - JoseFaria
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Syndicate this site RSSATOM