]> git.sur5r.net Git - bacula/bacula/blob - bacula/INSTALL
Make mark run *MUCH* faster in restore tree + update copyright on changed files
[bacula/bacula] / bacula / INSTALL
1 --------------------------------------------------------------------------
2 Using GNU autoconfig
3 --------------------------------------------------------------------------
4   1.    Read the Compiling and Installing section of the HTML manual
5         in the "doc" directory.
6
7   2.    Run   ./configure   to generate config.h and the various Makefiles.
8         ./configure --help   gives a list of possible options.  Note, in
9         configuring Bacula, you cannot get by with a simple ./configure,
10         it is much more complicated than that (unfortunately).
11
12         You might look at the "defaultconfig" file in the examples directory.
13         It is an example of what is probably reasonable for defaults.
14
15         Some systems require unusual options for compilation or linking that
16         the `configure' script does not know about.  You can give `configure'
17         initial values for variables by setting them in the environment.  Using
18         a Bourne-compatible shell, you can do that on the command line like
19         this:
20                 CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
21         Or on systems that have the `env' program, you can do it like this:
22                 env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
23         Or if you're using a non Bourne-compatible shell, you can do:
24                 sh -c 'CFLAGS="-O2 -g" ./configure
25
26         A typical Bacula development configuration for Linux is:
27
28         CFLAGS="-g -Wall" ./configure --enable-smartalloc --enable-mysql
29
30         See the README for a few additional details and the online manual
31         for all the gory details:  http://www.bacula.org/html-manual
32
33   3.    Carefully review the output from ./configure.  If it is not
34         what you want, re-run the ./configure.  Often ./configure "caches"
35         things and thus remembers the last ./configure options.  If you
36         want to be sure you are starting fresh after a ./configure,
37         do a:
38
39             make distclean
40
41         before re-running ./configure.  "make distclean" wipes out any
42         knowledge of the ./configure, so don't do it after you have a
43         configuration that suits your needs, otherwise the "make" will
44         not work.
45
46   4.    Set any other main preferences (normally, you don't do this):
47             Edit "config.h"   if you didn't use ./configure options
48             If you're cross-compiling, edit the following in "config.h"
49
50   5.    Build it (repeat step 2 as desired):
51             make
52
53   6.    Install it
54             make install
55
56   7.    Run it
57             cd $HOME/bacula/bin
58             ./bacula start
59             ./console
60             (enter commands)