wiki:CompilationOnDebian

Editing Compiling and Installing on Debian GNU/Linux

This howto was created during the testing of Box Backup 0.10 RC3, February 2006. This page augments only slightly the GeneralInstall page, which takes authority over any errors or uncertainties herein.

The install was performed on a old ~250MHz PII 256MB RAM box running the multimedia-focused DeMuDi 1.2.1 (Debian Sarge Linux:  http://www.agnula.org/). Please send corrections to the MailingLists. Note that my primary Linux distribution is Ubuntu, but that is my production Box Backup machine. I just happened to have a DeMuDi installation available for Box Backup testing as I was experimenting with it as a more multimedia-centric distribution to see what it offered (quite nice, but no office packages in the default install).

  • Document your current environment a little bit...
    uname -a
    Linux demudi 2.6.12-3-multimedia-686 #1 Thu Jun 23 11:52:20 CEST 2005 i686 GNU/Linux
    
  • Get your environment ready...
  • Make sure you have enough disk space (>40MB)...
    df -h .
    
  • Get the product to install...
    wget http://www.fluffy.co.uk/boxbackup/bin/boxbackup-0.09_plus3.tgz
    
  • Extract it...
    tar xzvf boxbackup-0.09_plus3.tgz
    
  • Move into the new directory...
    cd boxbackup-0.09_plus3
    
  • See what packages you need to have installed before installing the product...
    cat LINUX.txt
    
  • Edit your apt-get sources.list...you'll need to know what repositories to use to get the necessary packages for YOUR distribution (this only works for DeMuDi 1.2.1):
    sudo vi /etc/apt/sources.list
    
    #deb file:///cdrom/ sarge main
    #deb cdrom:[Debian GNU/Linux A/DeMuDi 1.2.1 _Sarge_ - Unofficial i386 Binary-1 (20050627)]/ unstable main
    # Security updates
    deb http://demudi.agnula.org/packages/demudi demudi main/updates
    # Bleeding-edge packages
    deb http://demudi.agnula.org/packages/demudi demudi main
    # Debian official archive
    deb http://ftp.debian.org/debian testing main
    
  • Install them...
    sudo apt-get install gcc g++ libeditline-dev libssl0.9.7 libssl-dev libz-dev libdb4.4 libdb4.4-dev  openssl
    
  • May need to install one or more of these, too, but I'm not sure which one...
    sudo apt-get install libeditline-dev libeditline0 libedit-dev  libedit2
    
  • Start building it...
    ./configure
    
  • At the end of the configure step, you should see this output:
    Large files:         yes
    Berkeley DB:         yes
    Readline:            yes
    Extended attributes: yes
    
  • Now make it...
  • This make step took 14 minutes on my machine.
    make  # no ./ before it
    
  • To run the tests, which also takes about 15 minutes or so...
    ./runtest.pl ALL debug | tee box-debug.log
    ./runtest.pl ALL release | tee box-release.log
    
  • If you see errors...
  • First try to find some prior art, for example, search for "configure errors" with  http://www.google.com/search?q=configure+errors+site%3Alists.warhead.org.uk
  • If that doesn't help you...
    zip config.log.zip config.log
    
  • And mail the .zip file to the MailingLists.