X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=doc%2Frrdbuild.html;h=27e088c05f3ce1e257cae2772e5b1f6eba8559a3;hb=51c3d3fb997c22e1ee828470413f1e84989e1f6c;hp=bf9a9aef494aff8c42e8a265961a2d083ce106c5;hpb=1559397b94b4af3de73cfa23c04be31d8bee53e7;p=pkg-rrdtool.git diff --git a/doc/rrdbuild.html b/doc/rrdbuild.html index bf9a9ae..27e088c 100644 --- a/doc/rrdbuild.html +++ b/doc/rrdbuild.html @@ -9,8 +9,10 @@ -

+ +
+

+ + +

@@ -68,7 +74,7 @@ may already be installed on your system. You have to compile copies of the other ones before you can build RRDtool.

This document will tell you about all the necessary steps to get going.

These instructions assume you are using a bash shell. If you use csh/tcsh, -then you can either type bash to switch to bash for the compilation or if +then you can either type bash to switch to bash for the compilation or if you know what you are doing just replace the export bits with setenv.

We further assume that your copies of tar and make are actually GNU @@ -90,8 +96,8 @@ tar and GNU make respectively. It could be that they a

Once you have decided. Save the two locations into environment variables.

  BUILD_DIR=/tmp/rrdbuild
- INSTALL_DIR=/usr/local/rrdtool-1.3.7
-

If your /tmp is mounted with the option noexec (RHEL seems todo that) you have to choose + INSTALL_DIR=/usr/local/rrdtool-1.3.8 +

If your /tmp is mounted with the option noexec (RHEL seems todo that) you have to choose a different directory!

Now make sure the BUILD_DIR exists and go there:

@@ -100,9 +106,9 @@ a different directory!

Lets first assume you already have all the necessary libraries pre-installed.

- wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.7.tar.gz
- gunzip -c rrdtool-1.3.7.tar.gz | tar xf -
- cd rrdtool-1.3.7
+ wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.8.tar.gz
+ gunzip -c rrdtool-1.3.8.tar.gz | tar xf -
+ cd rrdtool-1.3.8
  ./configure --prefix=$INSTALL_DIR && make && make install

Ok, this was very optimistic. This try will probably have ended with configure complaining about several missing libraries.

@@ -124,9 +130,9 @@ current when I tested this.

  pkg install sunstudioexpress
  pkg install SUNWgnome-common-devel
-

There is a problem with cairo.pc on OpenSolaris. It suggests that +

There is a problem with cairo.pc on OpenSolaris. It suggests that xrender is required for compilation with cairo. This is not true and also -bad since OpenSolaris does not include an xrender.pc file. Use Perl to +bad since OpenSolaris does not include an xrender.pc file. Use Perl to fix this:

  perl -i~ -p -e 's/(Requires.*?)\s*xrender.*/$1/' /usr/lib/pkgconfig/cairo.pc
@@ -162,7 +168,7 @@ flags are available:

tcl - build and install tcl language bindings rrdcgi - build and install rrdcgi

After you've decided which USE flags you need, set them either in -make.conf or /etc/portage/package.use and finally run:

+make.conf or /etc/portage/package.use and finally run:

  # emerge -va rrdtool

Take a look at Gentoo handbook for further details on how to manage USE @@ -197,13 +203,13 @@ set the following environment variable

  export PKG_CONFIG_PATH=${INSTALL_DIR}/lib/pkgconfig
  export PATH=$INSTALL_DIR/bin:$PATH
-

The above relies on the presence of the pkgconfig program. Below you find instructions +

The above relies on the presence of the pkgconfig program. Below you find instructions on how to compile pkgconfig.

Since we are compiling libraries dynamically, they must know where to find each other. This is done by setting an appropriate LDFLAGS. Unfortunately, the syntax again differs from system to system:

-
Solaris
+
Solaris
@@ -213,20 +219,20 @@ the syntax again differs from system to system:

export CFLAGS="-xO3 -xcode=pic13" (SPARC) export CFLAGS="-xO3 -Kpic" (x86)
-
Linux
+
Linux
  export CFLAGS="-O3 -fPIC"
  export LDFLAGS="-Wl,--rpath -Wl,${INSTALL_DIR}/lib"
-
HPUX
+
HPUX
  export LDFLAGS="+b${INSTALL_DIR}/lib"
-
AIX
+
AIX
@@ -385,7 +391,7 @@ because it seems that a fair number of people have ill configured python and
 tcl setups that would prevent rrdtool from building if they are included in
 their current state.

- cd $BUILD_DIR/rrdtool-1.3.7
+ cd $BUILD_DIR/rrdtool-1.3.8
  ./configure --prefix=$INSTALL_DIR --disable-tcl --disable-python
  $MAKE clean
  $MAKE