Rrdtool upgrade?

apps

#1

I was going to put together a page on my site with examples of how to setup rrd databases, create graphs, etc. I checked the version of rrdtool on my server and it’s really outdated. The version installed is 1.0.49 and version 3 just came out recently. I searched the forum for posts about getting it installed and they all go back a few years. Would it be possible to get rrdtool upgraded to something more recent so I can generate graphs with the right syntax?


#2

I just installed my own version of RRDtool on the frappe server. Following is the list of commands I used. I realize you posted months ago, but I hope this can still help someone. These instructions can be modified to install just about any software on a shared host.

Later on, if you want to upgrade or uninstall, make sure you set the environment variables first.

[code]// Create the initial directories
user@frappe:~$ mkdir -p ~/local/src ~/local/lib/pkgconfig ~/local/bin
user@frappe:~$ cd ~/local/src

// Download and uncompress the source packages
user@frappe:~/local/src$ wget ftp://ftp.gtk.org/pub/glib/2.19/glib-2.19.4.tar.bz2 && tar jxvf glib-2.19.4.tar.bz2
user@frappe:~/local/src$ wget http://ftp.gnome.org/pub/gnome/sources/atk/1.2/atk-1.2.4.tar.bz2 && tar jxvf atk-1.2.4.tar.bz2
user@frappe:~/local/src$ wget http://www.cairographics.org/releases/pixman-0.13.2.tar.gz && tar zxvf pixman-0.13.2.tar.gz
user@frappe:~/local/src$ wget http://savannah.inetbridge.net/freetype/freetype-2.3.7.tar.bz2 && tar jxvf freetype-2.3.7.tar.bz2
user@frappe:~/local/src$ wget http://www.cairographics.org/releases/cairo-1.8.6.tar.gz && tar zxvf cairo-1.8.6.tar.gz
user@frappe:~/local/src$ wget http://ftp.gnome.org/pub/gnome/sources/pango/1.22/pango-1.22.4.tar.bz2 && tar jxvf pango-1.22.4.tar.bz2
user@frappe:~/local/src$ wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.5.tar.gz && tar zxvf rrdtool-1.3.5.tar.gz

// Set some environment variables
user@frappe:~/local/src$ export PKG_CONFIG_PATH=$HOME/local/lib/pkgconfig
user@frappe:~/local/src$ export LD_LIBRARY_PATH=$HOME/local/lib
user@frappe:~/local/src$ export PATH=$PATH:$HOME/local/bin

// Install GLib
user@frappe:~/local/src$ cd ~/local/src/glib-2.19.4
user@frappe:~/local/src/glib-2.19.4$ ./configure --prefix=$HOME/local
user@frappe:~/local/src/glib-2.19.4$ make
user@frappe:~/local/src/glib-2.19.4$ make install

// Install ATK
user@frappe:~/local/src$ cd ~/local/src/atk-1.25.2
user@frappe:~/local/src/atk-1.25.2$ ./configure --prefix=$HOME/local
user@frappe:~/local/src/atk-1.25.2$ make
user@frappe:~/local/src/atk-1.25.2$ make install

// Install Pixman
user@frappe:~/local/src$ cd ~/local/src/pixman-0.13.2
user@frappe:~/local/src/pixman-0.13.2$ ./configure --prefix=$HOME/local
user@frappe:~/local/src/pixman-0.13.2$ make
user@frappe:~/local/src/pixman-0.13.2$ make install

// Install FreeType
user@frappe:~/local/src$ cd ~/local/src/freetype-2.3.7
user@frappe:~/local/src/freetype-2.3.7$ ./configure --prefix=$HOME/local
user@frappe:~/local/src/freetype-2.3.7$ make
user@frappe:~/local/src/freetype-2.3.7$ make install

// Install Cairo
user@frappe:~/local/src$ cd ~/local/src/cairo-1.8.6
user@frappe:~/local/src/cairo-1.8.6$ ./configure --prefix=$HOME/local --disable-xlib --disable-xlib-render --disable-win32
user@frappe:~/local/src/cairo-1.8.6$ make
user@frappe:~/local/src/cairo-1.8.6$ make install

// Install Pango
user@frappe:~/local/src$ cd ~/local/src/pango-1.22.4
user@frappe:~/local/src/pango-1.22.4$ ./configure --prefix=$HOME/local --without-x
user@frappe:~/local/src/pango-1.22.4$ make
user@frappe:~/local/src/pango-1.22.4$ make install

// Install RRDtool
user@frappe:~/local/src$ cd ~/local/src/rrdtool-1.3.5
user@frappe:~/local/src/rrdtool-1.3.5$ ./configure --prefix=$HOME/local
user@frappe:~/local/src/rrdtool-1.3.5$ make
user@frappe:~/local/src/rrdtool-1.3.5$ make install
[/code]–
Andy