User Tools

Site Tools


howto_compile_and_install_bacula_bat_on_ubuntu_or_debian

Installing BAT (Bacula Admin Tool)

Ubuntu Gutsy Gibbon 7.10

Prerequisites

<note tip>The Director, FD and SD are either with MySQL, PSql or SQLite installable via apt-get. Just type in apt-cache search bacula for all packages.</note>

Install necessary packages fpr qt4 and qwt. (Maybe not all of the following packages are necessary but by having a large harddisk I don't care.)

  • remove qt3 (if installed)
    • sudo apt-get --purge remove qt3-dev-tools qt3-designer libqwt-dev
  • install qt4
    • sudo apt-get install qt4-dev-tools qt4-qtconfig  libqt4-core libqt4-dev
  • install qwt
    • apt-get install libqwt5-qt4 libqwt5-qt4-dev 
    • make sure, that under /usr/lib the libqwt.so links to libqwt-qt4.so.5, if not create a symlink.
    • cd /usr/lib
      sudo ln -s libqwt-qt4.so.5 libqwt.so
  • get the source
    • Get the latest source tarball, extract it and enter the directory

Build bat

  • install compiler
    • apt-get install build-essential 
  • configure
    • ./configure --enable-bat --enable-client-only --with-qwt=/usr/lib/
    • The result of the succesfull configure should show these lines:
      •   bat support:                yes -L/usr/lib64
          client-only:                yes
  • proceed to make
    • make install
  • install bat
    • sudo cp src/qt-console/bat /usr/sbin/
    • sudo cp src/qt-console/bat.conf /etc/bacula/
  • start it
    • bat -d99 -c /etc/bacula/bat.conf

Bacula 7.0.5 From Sources Ubuntu Trusty 14.04 whit maridb (mysql)

Go your source package directory and dowload / clone bacula source package:

 git clone http://git.bacula.org/bacula

buildBacula:

 apt-get install libmysqlcppconn-dev libmysqlcppconn7 libmysqlclient-dev
 cd /mpi3/S4/bacula-7.0.5
 sudo make distclean
 export CFLAGS="-g -O2"
 export CFLAGS2=`/usr/bin/mysql_config --cflags`
 export CFLAGS="$CFLAGS $CFLAGS2"
 export LDFLAGS=`/usr/bin/mysql_config --libs_r`
 export LIBS=`/usr/bin/mysql_config --libs`
 export CPPFLAGS=`/usr/bin/mysql_config --include`
 ./configure \
 --sbindir=/usr/sbin \
 --sysconfdir=/etc/bacula \
 --with-scriptdir=/etc/bacula \
 --with-mysql \
 --with-working-dir=/var/bacula \
 --with-pid-dir=/var/run/bacula \
 --with-systemd \
 --enable-bat \
 --enable-smartalloc
 
 make
 
 sudo make install

Note's/Ref: tokudb & mariadb-galera & bacula do not work together use Innodb or Aria instead, https://mariadb.org/ , -https://sites.google.com/site/jpsdatareviewstheboy007/ubuntu-lts-12-4-companion-whit-ltsp-mpich2-elmer-openfoam

howto_compile_and_install_bacula_bat_on_ubuntu_or_debian.txt · Last modified: 2014/11/09 10:19 by stilgar