~ubuntu-branches/ubuntu/saucy/rrdtool/saucy-proposed

« back to all changes in this revision

Viewing changes to doc/rrdbuild.txt

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2010-07-22 08:07:01 UTC
  • mfrom: (1.2.8 upstream) (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100722080701-k46mgdfz6euxwqsm
Tags: 1.4.3-1ubuntu1
* Merge from debian unstable, Remaining changes:
  - debian/control: Don't build against ruby1.9 as we don't want
    it in main.
* require libdbi >= 0.8.3 to prevent aborts when using dbi datasources

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
       rrdbuild - Instructions for building RRDtool
7
7
 
8
8
OOVVEERRVVIIEEWW
9
 
       If you downloaded the source of rrdtool you have to compile it. This
 
9
       If you downloaded the source of RRDtool you have to compile it. This
10
10
       document will give some information on how this is done.
11
11
 
12
12
       RRDtool relies on services of third part libraries. Some of these
35
35
       variables.
36
36
 
37
37
        BUILD_DIR=/tmp/rrdbuild
38
 
        INSTALL_DIR=/usr/local/rrdtool-1.3.8
 
38
        INSTALL_DIR=/opt/rrdtool-1.4.3
39
39
 
40
40
       If your _/_t_m_p is mounted with the option noexec (RHEL seems todo that)
41
41
       you have to choose a different directory!
48
48
       Lets first assume you already have all the necessary libraries pre-
49
49
       installed.
50
50
 
51
 
        wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.8.tar.gz
52
 
        gunzip -c rrdtool-1.3.8.tar.gz | tar xf -
53
 
        cd rrdtool-1.3.8
 
51
        wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.3.tar.gz
 
52
        gunzip -c rrdtool-1.4.3.tar.gz | tar xf -
 
53
        cd rrdtool-1.4.3
54
54
        ./configure --prefix=$INSTALL_DIR && make && make install
55
55
 
56
56
       Ok, this was very optimistic. This try will probably have ended with
60
60
       If your OS lets you install additional packages from a software
61
61
       repository, you may get away with installing the missing packages. When
62
62
       the packages are installed, run configure again and try to compile
63
 
       again. Below you find some hints on getting your OS ready for the
64
 
       rrdtool compilation.
 
63
       again. Below you find some hints on getting your OS ready for compiling
 
64
       RRDtool.
65
65
 
66
 
       Additions to this list are welcome. In general rrdtool should work with
 
66
       Additions to this list are welcome. In general RRDtool should work with
67
67
       the latest versions of the libraries. The versions listed here are just
68
68
       what was current when I tested this.
69
69
 
80
80
 
81
81
        perl -i~ -p -e 's/(Requires.*?)\s*xrender.*/$1/' /usr/lib/pkgconfig/cairo.pc
82
82
 
83
 
       Make sure rrdtool finds your new compiler
 
83
       Make sure the RRDtool build system finds your new compiler
84
84
 
85
85
        export PATH=/opt/SunStudioExpress/bin
86
86
 
98
98
        apt-get install libpango1.0-dev libxml2-dev
99
99
 
100
100
   GGeennttoooo
101
 
       In Gentoo installing rrdtool is really simple you just need to eemmeerrggee
 
101
       In Gentoo installing RRDtool is really simple you just need to eemmeerrggee
102
102
       rrrrddttooooll. All dependencies will be handled automatically by the portage
103
103
       system. The only thing you should care about are USE flags, which allow
104
 
       you fine tune features rrdtool will be built with. Currently the
 
104
       you fine tune features RRDtool will be built with. Currently the
105
105
       following USE flags are available:
106
106
 
107
107
        doc    - install .html and .txt documentation
132
132
   GGeenneerraall bbuuiilldd ttiippss ffoorr AAIIXX
133
133
       If you are working with AIX, you may find the ----ddiissaabbllee--sshhaarreedd option
134
134
       will cause things to break for you. In that case you may have to
135
 
       install the shared libraries into the rrdtool PREFIX and work with
 
135
       install the shared libraries into the RRDtool PREFIX and work with
136
136
       ----ddiissaabbllee--ssttaattiicc instead.
137
137
 
138
 
       Another hint to get rrdtool working on AIX is to use the IBM XL C
 
138
       Another hint to get RRDtool working on AIX is to use the IBM XL C
139
139
       Compiler:
140
140
 
141
141
        export CC=/usr/vac/bin/cc
163
163
           if you are using the Sun Studio/Forte compiler, you may also want
164
164
           to set
165
165
 
166
 
            export CFLAGS="-xO3 -xcode=pic13"   (SPARC)
167
 
            export CFLAGS="-xO3 -Kpic"          (x86)
 
166
            CFLAGS="-xO3 -xcode=pic13"   (SPARC)
 
167
            CFLAGS="-xO3 -Kpic"          (x86)
168
168
 
169
169
       Linux
170
 
            export CFLAGS="-O3 -fPIC"
171
170
            export LDFLAGS="-Wl,--rpath -Wl,${INSTALL_DIR}/lib"
172
171
 
173
172
       HPUX
194
193
        wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz
195
194
        gunzip -c pkg-config-0.23.tar.gz | tar xf -
196
195
        cd pkg-config-0.23
197
 
        ./configure --prefix=$INSTALL_DIR
 
196
        ./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC"
198
197
        $MAKE
199
198
        $MAKE install
200
199
 
211
210
        wget http://oss.oetiker.ch/rrdtool/pub/libs/zlib-1.2.3.tar.gz
212
211
        gunzip -c zlib-1.2.3.tar.gz | tar xf -
213
212
        cd zlib-1.2.3
214
 
        ./configure --prefix=$INSTALL_DIR --shared
 
213
        ./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC" --shared
215
214
        $MAKE
216
215
        $MAKE install
217
216
 
225
224
        cd $BUILD_DIR
226
225
        wget http://oss.oetiker.ch/rrdtool/pub/libs/libpng-1.2.18.tar.gz
227
226
        gunzip -c libpng-1.2.18.tar.gz | tar xf -
228
 
        cd libpng-1.2.18
229
 
        ./configure --prefix=$INSTALL_DIR
 
227
        cd libpng-1.2.10
 
228
        env CFLAGS="-O3 -fPIC" ./configure --prefix=$INSTALL_DIR
230
229
        $MAKE
231
230
        $MAKE install
232
231
 
251
250
        wget http://oss.oetiker.ch/rrdtool/pub/libs/libxml2-2.6.32.tar.gz
252
251
        gunzip -c libxml2-2.6.32.tar.gz | tar xf -
253
252
        cd libxml2-2.6.32
254
 
        ./configure --prefix=$INSTALL_DIR
 
253
        ./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC"
255
254
        $MAKE
256
255
        $MAKE install
257
256
 
266
265
        wget http://oss.oetiker.ch/rrdtool/pub/libs/fontconfig-2.4.2.tar.gz
267
266
        gunzip -c fontconfig-2.4.2.tar.gz   | tar xf -
268
267
        cd fontconfig-2.4.2
269
 
        ./configure --prefix=$INSTALL_DIR --with-freetype-config=$INSTALL_DIR/bin/freetype-config
 
268
        ./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC" --with-freetype-config=$INSTALL_DIR/bin/freetype-config
270
269
        $MAKE
271
270
        $MAKE install
272
271
 
276
275
        wget http://oss.oetiker.ch/rrdtool/pub/libs/pixman-0.10.0.tar.gz
277
276
        gunzip -c pixman-0.10.0.tar.gz  | tar xf -
278
277
        cd pixman-0.10.0
279
 
        ./configure --prefix=$INSTALL_DIR
 
278
        ./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC"
280
279
        $MAKE
281
280
        $MAKE install
282
281
 
289
288
        ./configure --prefix=$INSTALL_DIR \
290
289
           --enable-xlib=no \
291
290
           --enable-xlib-render=no \
292
 
           --enable-win32=no
 
291
           --enable-win32=no \
 
292
           CFLAGS="-O3 -fPIC"
293
293
        $MAKE
294
294
        $MAKE install
295
295
 
299
299
        wget http://oss.oetiker.ch/rrdtool/pub/libs/glib-2.15.4.tar.gz
300
300
        gunzip -c glib-2.15.4.tar.gz  | tar xf -
301
301
        cd glib-2.15.4
302
 
        ./configure --prefix=$INSTALL_DIR
 
302
        ./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC"
303
303
        $MAKE
304
304
        $MAKE install
305
305
 
309
309
        wget http://oss.oetiker.ch/rrdtool/pub/libs/pango-1.21.1.tar.bz2
310
310
        bunzip2 -c pango-1.21.1.tar.bz2 | tar xf -
311
311
        cd pango-1.21.1
312
 
        ./configure --prefix=$INSTALL_DIR --without-x
 
312
        ./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC" --without-x
313
313
        $MAKE
314
314
        $MAKE install
315
315
 
322
322
 
323
323
       And finally try building again. We disable the python and tcl bindings
324
324
       because it seems that a fair number of people have ill configured
325
 
       python and tcl setups that would prevent rrdtool from building if they
 
325
       python and tcl setups that would prevent RRDtool from building if they
326
326
       are included in their current state.
327
327
 
328
 
        cd $BUILD_DIR/rrdtool-1.3.8
 
328
        cd $BUILD_DIR/rrdtool-1.4.3
329
329
        ./configure --prefix=$INSTALL_DIR --disable-tcl --disable-python
330
330
        $MAKE clean
331
331
        $MAKE
344
344
 
345
345
 
346
346
 
347
 
1.3.8                             2009-05-19                       RRDBUILD(1)
 
347
1.4.3                             2010-03-22                       RRDBUILD(1)