RRDTool' graph'命令抛出Glib和Pango错误,在Mac OS X上与Homebrew一起安装

时间:2012-11-23 17:31:32

标签: homebrew glib rrdtool pango

问题是:

如何让RRDTool在Mac OS X上生成图表?

我在Mac OS x 10.6.8上使用rrdtool安装了homebrew

我能够创建数据库,更新一些数据并获取数据,但我无法为其生成图表。

glibpango似乎有问题。

这两个库都安装了homebrew

我正在使用:

  • RRDTool 1.4.7
  • Glib 2.34.2
  • Pango 1.30.1

当我运行时:

rrdtool create datafile.rrd DS:packets:ABSOLUTE:900:0:10000000 RRA:AVERAGE:0.5:1:9600 RRA:AVERAGE:0.5:4:9600 RRA:AVERAGE:0.5:24:6000
rrdtool update datafile.rrd N:12322
rrdtool graph graph.png DEF:pkt=datafile.rrd:packets:AVERAGE LINE1:pkt#ff0000:Packets

我明白了:

(process:34285): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
(process:34285): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion `G_IS_OBJECT (object)' failed
(process:34285): GLib-GObject-CRITICAL **: g_object_set_qdata_full: assertion `G_IS_OBJECT (object)' failed
(process:34285): Pango-CRITICAL **: pango_fontset_foreach: assertion `PANGO_IS_FONTSET (fontset)' failed
(process:34285): Pango-CRITICAL **: pango_fontset_foreach: assertion `PANGO_IS_FONTSET (fontset)' failed
(process:34285): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderCoreText', script='latin'
(process:34285): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
(process:34285): Pango-WARNING **: couldn't load font "DejaVu Sans Mono,Bitstream Vera Sans Mono,monospace,Courier Not-Rotated 8", modified variant/weight/stretch as fallback, expect ugly output.
(process:34285): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
(process:34285): Pango-ERROR **: Could not load fallback font, bailing out.
./test.sh: line 9: 34285 Trace/BPT trap          rrdtool graph graph.png DEF:pkt=datafile.rrd:packets:AVERAGE LINE1:pkt#ff0000:Packets

由于

0 个答案:

没有答案