X-Git-Url: https://git.tokkee.org/?p=pkg-rrdtool.git;a=blobdiff_plain;f=doc%2Frrdbuild.html;h=cfd5565e8bbdbbb7ecfe0638893a41f139886a2d;hp=563623a12651f6a322c0ed556fec11686b7ca168;hb=645054bac6187b0e83fd4125fd59e4feda216b64;hpb=ffa00ac697dccce18dca8880ca7a14066521ac5c diff --git a/doc/rrdbuild.html b/doc/rrdbuild.html index 563623a..cfd5565 100644 --- a/doc/rrdbuild.html +++ b/doc/rrdbuild.html @@ -1,14 +1,18 @@ + rrdbuild + -

+ +
+

+ + +

@@ -66,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 @@ -78,17 +86,18 @@ tar and GNU make respectively. It could be that they a

OPTIMISTIC BUILD

Before you start to build RRDtool, you have to decide two things:

    -
  1. -In which directory you want to build the software. -

    -
  2. -Where you want to install the software. -

+
  • +

    In which directory you want to build the software.

    +
  • +
  • +

    Where you want to install the software.

    +
  • +

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

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

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

    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:

    @@ -121,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
    @@ -159,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 @@ -194,40 +203,36 @@ 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
    +
      export LDFLAGS=-R${INSTALL_DIR}/lib
    -
    -

    if you are using the Sun Studio/Forte compiler, you may also want to set

    -
    -
      CFLAGS="-xO3 -xcode=pic13"   (SPARC)
      CFLAGS="-xO3 -Kpic"          (x86)
    -
    Linux
    -
    +
    Linux
    +
      export LDFLAGS="-Wl,--rpath -Wl,${INSTALL_DIR}/lib"
    -
    HPUX
    -
    +
    HPUX
    +
      export LDFLAGS="+b${INSTALL_DIR}/lib"
    -
    AIX
    -
    +
    AIX
    +
      export LDFLAGS="-Wl,-blibpath:${INSTALL_DIR}/lib"