RRDtool on FreeBSD 6.2

Prerequisites:

FreeBSD (Base + Autoconf, Automake, Bash and GCC)
GD

Overview: On FreeBSD, installing from the built-in "Ports" collection is the easiest way.  All of the required sub modules get installed and the rrdtool executable is put in a common place for many future applications to find and use.

 

RRDtool – Standard data logging and graphing application

Home: 

http://oss.oetiker.ch/rrdtool/

# From Ports
# Download (Notes: Users behind a Proxy Server should read this and users without Internet but have a CDRom read this.)

cd /usr/ports/databases/rrdtool
make install clean

# or

# From Source
# Pre-requisite libart2

cd /usr/ports/graphics/libart_lgpl
make install clean

# Change to source dir
cd /usr/src

# Get latest source
fetch http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.2.26.tar.gz

# Ungzip and Untar
tar xvf rrdtool-?.?.??.tar.gz

# Change to the source dir
cd rrdtool-?.?.??

# Set FreeBSD specific environment
export CPPFLAGS="-I/usr/local/include -I/usr/local/include/libart-2.0 -I/usr/local/include/freetype2"
export LDFLAGS="-L/usr/local/lib"

# Configure with FreeBSD specific options
./configure --enable-perl-site-install --enable-ruby-site-install --enable-tcl-site --bindir=/usr/local/bin --mandir=/usr/local/man --docdir=/usr/local/share

# Compile and install
make install clean

# Quick tests
which rrdtool
rrdtool