Re: problems with graphviz port and selfupdate

Lisa Friedland <[email protected]> Wed, 30 Aug 2006 17:17:16 -0400
Newsgroups gmane.os.opendarwin.darwinports
Message-ID <[email protected]>
>> On Aug 29, 2006, at 7:35 AM, Ryan Schmidt wrote:
>>
>>> Hi Lisa. I'll make some comments below, but since you say you'd  
>>> like to avoid compiling anyway, please consider using my  
>>> precompiled Mac OS X builds of Graphviz 2.9 here:
>>>
>>> http://www.ryandesign.com/graphviz/
>>>
>>> I believe Graphviz should not be requiring urw-fonts, but should  
>>> rather work with the user's Mac OS X fonts. I do not know whether  
>>> the MacPorts version of Graphviz works like this, but mine above  
>>> does.

Thanks for the link, I'd missed noticing your distribution.
But I actually get errors with it:

% /usr/local/graphviz-2.9/bin/neato -v -Tpng test3.dot > ! test3.png
The plugin configuration file:
         /usr/local/graphviz-2.9/lib/graphviz/config
                 was successfully loaded.
     render      :  canon cmap cmapx dia dot fig gd gd2 gif gtk hpgl  
imap ismap mif mp pcl pdf pic plain plain-ext png ps ps2 svg svgz  
vrml vtx wbmp xdot xlib
     layout      :  circo dot fdp neato nop nop1 nop2 twopi
     textlayout  :  textlayout
     device      :  xlib
     loadimage   :  2ps gif2fig gif2gd gif2ps gif2svg gif2vrml  
jpeg2fig jpeg2svg jpeg2vrml png2cairo png2fig png2gd png2ps png2svg  
png2vrml ps2ps
Fontconfig error: "conf.d", line 1: no element found
No fonts found; this probably means that the fontconfig
library is not correctly configured. You may need to
edit the fonts.conf configuration file. More information
about fontconfig can be found in the fontconfig(3) manual
page and on http://fontconfig.org

Whereas the darwinports 2.8 (with urw-fonts) gives:
% neato -v -Tpng test3.dot > ! test3.png
The plugin configuration file:
         /opt/local/lib/graphviz/config
                 was successfully loaded.
     render      :  canon cmap cmapx dia dot fig gd gd2 gif hpgl imap  
ismap jpeg jpg mif mp pcl pic plain plain-ext png ps ps2 svg svgz  
vrml vtx wbmp xdot
     layout      :  circo dot fdp neato nop nop1 nop2 twopi
     textlayout  :
     device      :
     usershape   :  png-gd
neato: fontname=Times-Roman fontpath=/opt/local/share/fonts/urw-fonts/ 
n021003l.afm
Scanning graph _neato_cc0, 247 nodes
. . .


Again, to recap, darwinports's graphviz 2.8 without urw-fonts gives  
me the error:
% neato -v -Tpng test.dot > ! testout.png
The plugin configuration file:
         /opt/local/lib/graphviz/config
                 was successfully loaded.
     render      :  canon cmap cmapx dia dot fig gd gd2 gif hpgl imap  
ismap jpeg jpg mif mp pcl pic plain plain-ext png ps ps2 svg svgz  
vrml vtx wbmp xdot
     layout      :  circo dot fdp neato nop nop1 nop2 twopi
     textlayout  :
     device      :
     usershape   :  png-gd
neato: fontname=Times-Roman fontpath=[internal times]
Error: fontconfig: Didn't find expected font family. Perhaps URW Type  
1 fonts need installing? : Times-Roman

. . . as I see has been discussed at http://www.graphviz.org/bugs/ 
b891.html, and may or may not be related to these posts (on a  
different font error message I had at some point too):
https://mailman.research.att.com/pipermail/graphviz-interest/ 
2006q1/003128.html and
https://mailman.research.att.com/pipermail/graphviz-devel/ 
2006/000157.html