Rrdtool: Difference between revisions
Line 72: | Line 72: | ||
pango-1.20.5 | pango-1.20.5 | ||
PKG_CONFIG=/www/pkgconfig0.23/bin/pkg-config PKG_CONFIG_PATH=/www/glib2.18.4/lib/pkgconfig: | CPPFLAGS=-I/www/cairo1.8.6/include/cairo PKG_CONFIG=/www/pkgconfig0.23/bin/pkg-config \ | ||
PKG_CONFIG_PATH=/www/glib2.18.4/lib/pkgconfig:/www/cairo1.8.6/lib/pkgconfig ./configure --with-CAIRO --prefix=/www/pango1.20.5 | |||
make | make | ||
make install | make install | ||
NOTE: --with-CAIRO does not work, have to modify ''configure'' manually setting ''have_cairo=true'' | |||
pangocairo ??? | pangocairo ??? |
Revision as of 22:59, 23 February 2009
RRDTool
pkg-config-0.23
./configure --prefix=/www/pkgconfig0.23 make make install
glib-2.18.4
PKG_CONFIG=/www/pkgconfig0.23/bin/pkg-config ./configure --prefix=/www/glib2.18.4 make make install
pixman-0.14.0
./configure --prefix=/www/pixman0.14.0 make make install
libpng-1.2.35
./configure --prefix=/www/libpng1.2.35 make make install
freetype-2.3.8
./configure --prefix=/www/freetype2.3.8 make make install
fontconfig-2.6.0
./configure --prefix=/www/fontconfig2.6.0 --with-freetype-config=/www/freetype2.3.8/bin/freetype-config make make install
cairo-1.8.6
PKG_CONFIG=/www/pkgconfig0.23/bin/pkg-config \ PKG_CONFIG_PATH=/www/pixman0.14.0/lib/pkgconfig:/www/libpng1.2.35/lib/pkgconfig:\ /www/freetype2.3.8/lib/pkgconfig:/www/fontconfig2.6.0/lib/pkgconfig \ ./configure --prefix=/www/cairo1.8.6 make make install
cairo (version 1.8.6 [release]) will be compiled with: The following surface backends: Image: yes (always builtin) Xlib: yes Xlib Xrender: yes Quartz: no (requires CoreGraphics framework) Quartz-image: no (disabled, use --enable-quartz-image to enable) XCB: no (disabled, use --enable-xcb to enable) Win32: no (requires a Win32 platform) OS2: no (disabled, use --enable-os2 to enable) PostScript: yes PDF: yes SVG: yes glitz: no (disabled, use --enable-glitz to enable) BeOS: no (disabled, use --enable-beos to enable) DirectFB: no (disabled, use --enable-directfb to enable) The following font backends: User: yes (always builtin) FreeType: yes Win32: no (requires a Win32 platform) Quartz: no (requires CoreGraphics framework) The following functions: PNG functions: yes And the following internal features: gcov support: no test surfaces: no (disabled, use --enable-test-surfaces to enable) ps testing: yes pdf testing: no (requires poppler-glib >= 0.9.2) svg testing: no (requires librsvg-2.0 >= 2.15.0)
pango-1.20.5
CPPFLAGS=-I/www/cairo1.8.6/include/cairo PKG_CONFIG=/www/pkgconfig0.23/bin/pkg-config \ PKG_CONFIG_PATH=/www/glib2.18.4/lib/pkgconfig:/www/cairo1.8.6/lib/pkgconfig ./configure --with-CAIRO --prefix=/www/pango1.20.5 make make install
NOTE: --with-CAIRO does not work, have to modify configure manually setting have_cairo=true
pangocairo ???
rrdtool-1.3.6
./configure --prefix=/www/rrdtool1.3.6
RRDTool for MRTG - was never used
Installation on clonweb to /www as root:
mkdir /www/rrdtool1.2.23 chown mrtg:mrtg /www/rrdtool1.2.23 cp /usr/local/downloads/rrdtool-1.2.23.tar.gz /usr/local/src cd /usr/local/src gunzip rrdtool-1.2.23.tar.gz tar xvf rrdtool-1.2.23.tar cd rrdtool-1.2.23 ./configure --prefix=/www/rrdtool1.2.23 make make install
Add following lines to mrtg.cfg to help MRTG to find rrdtool:
LogFormat: rrdtool PathAdd: /www/rrdtool1.2.23/bin LibAdd: /www/rrdtool1.2.23/lib/perl/5.8.5
NOTE: I did not do it but if you want to install to /usr/local does not create anything in /www and configure as following:
./configure --prefix=/usr/local
To see rrd file's contents use 'rrdtool', for example:
/www/rrdtool1.2.25/bin/rrdtool fetch /www/mrtg2.15.2/share/logs/server-cpu.rrd AVERAGE
IMPORTANT: after switching to rrdtool, mrtg will NOT update web graphs any more; to do that CGI scripts must be used. Some examples of those scripts can be found at [1] and [2]. I installed mrtg-rrd-0.7. Script was installed into Apache's cgi-bin directory and slightly modified by setting actual mrtg location including RRDs.pm:
use lib '/www/rrdtool1.2.25/lib/perl/5.8.5'; BEGIN { @config_files = qw(/www/mrtg2.15.2/etc/mrtg.cfg); }
Also, option '--lazy' was removed to enforcr every minute update. Also old *.png were removed, they were owned by 'mrtg', new *.png will be written by 'apache'. To see graphes type http://clonmon.jlab.org/cgi-bin/mrtg-rrd.cgi.