[rrd-users] Re: Support for SVG in RRDTool

Tobias Oetiker oetiker at ee.ethz.ch
Fri Feb 21 23:42:18 MET 2003



Today Kevin.Ruscoe at ubsw.com wrote:

>
> Hi Tobi
>
> > oops ... shame on me ... thing should compile now
>
> Yep, it gets much further now thanks.  I pulled last night's snapshot -
> this is how I got on...
>
> * The build gets all the way through to the documentation, then falls
> over as follows:
>
> =====================================================
> $ make
>
> Making all in doc
> perl -n -e 'if (/^=include\s+(\S+)/){open F,"$1.inc" ||
> die $?;print <F>; close F} else {print}'  rrdgraph.src  > rrdgraph.pod
> perl -n -e 'if (/^=include\s+(\S+)/){open F,"$1.inc" ||
> die $?;print <F>; close F} else {print}'  rrdgraph_examples.src  > rrdgraph_examples.pod
> perl -n -e 'if (/^=include\s+(\S+)/){open F,"$1.inc" ||
> die $?;print <F>; close F} else {print}'  rrdgraph_rpn.src  > rrdgraph_rpn.pod
> perl -n -e 'if (/^=include\s+(\S+)/){open F,"$1.inc" ||
> die $?;print <F>; close F} else {print}'
> rrdgraph_data.src  > rrdgraph_data.pod perl -n -e
> 'if (/^=include\s+(\S+)/){open F,"$1.inc" || die $?;
> print <F>; close F} else {print}'  rrdgraph_graph.src  > rrdgraph_graph.pod
> pod2man --release=1.1.0 --center=rrdtool rrdtool.pod  > rrdtool.1
> /home/ruscoekm/my_tree/links/power_tools/bin/gnroff -man -Tlp rrdtool.1 > rrdtool.txt
> groff: can't find `DESC' file
> groff:fatal error: invalid device `ascii'
> *** Error code 3
> make: Fatal error: Command failed for target `rrdtool.txt'
> Current working directory /home/ruscoekm/3ps/rrdtool/rrdtool-2003-02-21/doc
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive'

this is likely to  be an issue with your groff

> =====================================================
>
> Since the build of the code itself succeeded, I continued with the install.
>
> * Next, I tried to run piped_demo.pl (since a grep of the examples
> showed that this one covers SVG, which is my particular interest.)
> Initially, this produced the following error:
>
> =====================================================
> $ perl piped_demo.pl
>
> -- performance analysis Update test
>    usr/upd: 0.00041s sys/upd: 0.00038s real/upd: 0.00261s upd/sec: 383
>
> * Creating 20 SVG graphs: piped-demo.svg
>
> ERROR: Garbage ': Fri Feb 21 11:31:17 2003\c' after command: at
> /home/ruscoekm/3ps/rrdtool/rrdtool-2003-02-21/examples/piped-demo.pl line 95
> =====================================================

fixed ... there must be a \ before a colon which is to be printed
... or rather \\ in this case.

> * Creating 20 SVG graphs: piped-demo.svg
>
> Can't find font '/usr/share/fonts/truetype/openoffice/ariosor.ttf'
> Can't find font '/usr/share/fonts/truetype/openoffice/ariosor.ttf'
> Can't find font '/usr/share/fonts/truetype/openoffice/ariosor.ttf'
> [snip]
> Can't find font '/usr/share/fonts/truetype/openoffice/ariosor.ttf'
> ANSWER:
> 500x240
> Average Alpha: 50.05 k
> Min Alpha: 44.18 k
> Max Alpha: 59.18 k
>
> -- average Time for one Graph
>    usr/grf: 0.00400s sys/grf: 0.04000s real/grf: 0.08800s   graphs/sec: 11.36
> =====================================================

this has to be edited by hand currently ... rrd_graph.c #define RRD_DEFAULT_FONT

>
> * Error from Adobe SVG viewer.
>
> "not well formed: line 40, column 42"
> =====================================================

hmm as I am not realy into svg yet I can't help with this one

tobi

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, ETZ J97, ETH, CH-8092 Zurich, Switzerland
 / // _ \/ _ \/ /  System Manager Coach Time Lord Developer Designer
/_/ \.__/_.__/_/   http://people.ee.ethz.ch/~oetiker +41(0)1-632-5286

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list