User Tools

Site Tools


howto_install_bacula_5.0.2_from_src.rpm_on_rhel_5_or_centos_5

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howto_install_bacula_5.0.2_from_src.rpm_on_rhel_5_or_centos_5 [2010/06/02 11:25]
roos
howto_install_bacula_5.0.2_from_src.rpm_on_rhel_5_or_centos_5 [2010/12/04 19:07] (current)
klabacita
Line 2: Line 2:
  
 ====== Build Script ====== ====== Build Script ======
-For convenience you can download the {{:make_bacula_rpms_centos5.tar.gz|}} script attached to this page. It performs all necessary steps described below.+For convenience you can download the {{:make_bacula_rpms_centos5_v0.2.tar.gz|}} script attached to this page. It performs all necessary steps described below.
  
 ====== OS, required packages ====== ====== OS, required packages ======
Line 45: Line 45:
 Download the bacula .src.rpm files to a directory in the user folder structure (not as root!) Download the bacula .src.rpm files to a directory in the user folder structure (not as root!)
  
-Then in that directoryas that non root user+If you want to build the wxconsole (GTK)add --define "​build_wxconsole 1". If you want to build the bconsole (Gnome) version, add --define "​build_bconsole 1" instead. 
 + 
 +As non-root user, perform the build:
   
  rpmbuild --rebuild --define "​build_centos5 1" --define "​build_mysql 1" --define "​build_bat 1" --define "​build_wxconsole 1" bacula-5.0.2-1.src.rpm  rpmbuild --rebuild --define "​build_centos5 1" --define "​build_mysql 1" --define "​build_bat 1" --define "​build_wxconsole 1" bacula-5.0.2-1.src.rpm
Line 58: Line 60:
         rpm -Uvh bacula-mysql-5.0.2-1.<​arch>​.rpm         rpm -Uvh bacula-mysql-5.0.2-1.<​arch>​.rpm
         rpm -Uvh bacula-bat-5.0.2-1.<​arch>​.rpm         rpm -Uvh bacula-bat-5.0.2-1.<​arch>​.rpm
 +        ​
 +U have to change the rights for the library libbac-5.X.Y.so which on a x64 arch is found on:
 +        /usr/lib64/
 +        ​
 +On a i386 must be on
 +        /usr/lib/
 +        ​
 +chown bacula:​bacula /​usr/​lib?/​libbac-5.0.1.so ​
 +
 +If not the system would send u messages to your email account if u have one, u will receive this log:
 +
 +<​blockquote>​Dec ​ 3 21:50:03 my-backup bacula-dir: 03-Dec 21:50  Message delivery ERROR: Mail prog: /​usr/​sbin/​bsmtp:​ error while loading shared libraries: libbac-5.0.1.so:​ cannot open shared object file: Permission denied</​blockquote>​
 +
 +
  
 ===== Setup the MySQL Database ===== ===== Setup the MySQL Database =====
Line 77: Line 93:
  vi make_mysql_tables  vi make_mysql_tables
  
 +Note: on x64 arch you will found this on
 +
 +        /​usr/​lib64/​bacula
  
 Original line: Original line:
howto_install_bacula_5.0.2_from_src.rpm_on_rhel_5_or_centos_5.1275474325.txt.gz · Last modified: 2010/06/02 11:25 by roos