User Tools

Site Tools


howto_compile_and_install_bacula_with_bat_on_fedora_7_or_centos_5

Compiling Bacula from source with BAT support on Fedora 7 or CentOS 5.

Once you've read the documentation, and are stuck :-\ whilst trying to compile with QWT support, this Howto may help you sort them out. =)

# yum install mysql mysql-devel mysql-server gcc gcc-c++ 
# export PATH=/usr/lib64/qt4/bin/:$PATH
# QTDIR=/usr/lib/qt-3.3
# QTINC=/usr/lib/qt-3.3/include

Install qt packages with yum

# yum install qt4  qt4-devel-4.x.x  qwt-5.0.x qwt-devel
  • Download source package's bacula-*.*.*.tar.gz from sourceforge.
  • untar them in /tmp
  • start with bacula, read README file 8-O

Edit configure switches, and run configure script.

# CFLAGS="-g -O2" \
    ./configure \
    --sbindir=/usr/local/bacula/bin \        
    --sysconfdir=/usr/local/bacula/bin \
    --with-pid-dir=/usr/local/bacula/bin/working \
    --with-subsys-dir=/usr/local/bacula/bin/working \ 
    --enable-smartalloc \
    --with-mysql \
    --with-working-dir=/usr/local/bacula/ \   
    --with-dump-email=user.name=@????.se \  
    --with-job-email=user.name@????.se \
    --with-smtp-host=localhost \
    --enable-bat \
    --with-qwt=/usr/local/qwt-5.0.2/ \
# make
# make install   

Start MySQL

# service mysqld start

Grant privileges

  
# ./grant_mysql_privileges -u root -p
 Enter password:
 Privileges for bacula granted on bacula.

Create database

# ./create_mysql_database -u root -p
 Enter password:
 Creation of bacula database succeeded.

Creat Tables

# ./make_mysql_tables -u root -p
Enter password:
Creation of Bacula MySQL tables succeeded.

Start Bacula services (They will not stay started unless you edit the bacula-sd.conf file and put a path that exists in as the Archive Device = )

# /usr/local/bacula/bin/./bacula start
Starting the Bacula Storage daemon
Starting the Bacula File daemon
Starting the Bacula Director daemon

[edit]

BAT

:-/

Copy

# cp -R /tmp/bacula-2.2.5/src/qt-console/ /usr/local/bacula/

Edit

# vi /usr/local/bacula/qt-console/bat.conf

Start BAT

# /usr/local/bacula/qt-console/./bat -d99 -c /usr/local/bacula/qt-console/bat.conf  

LOL

Fix - libqwt.so.5 PATH problem

# vi  /etc/profile.d/bacula.sh
# export LD_LIBRARY_PATH=/usr/local/qwt-5.0.2/lib:$LD_LIBRARY_PATH

:-D

From here your on your own - here you'll find more help about how to configure and run Bacula

http://www.bacula.org/en/?page=documentation

Author http://www.nordickiwi.com

howto_compile_and_install_bacula_with_bat_on_fedora_7_or_centos_5.txt · Last modified: 2008/10/01 12:20 by crwdawg