« Previous - Version 9/12 (diff) - Next » - Current version
Pieter Van den Hombergh, 05/09/2014 02:01 pm


Building AMC from subversion repository (deprecated)

This how to assumes a debian/ubuntu system and has been tested on all stable versions of Ubuntu.

The steps to execute are:

1) Install subversion
$ sudo apt-get install subversion

2) Download (checkout) from the repository

$ svn co http://svn.gna.org/svn/auto-qcm/trunk auto-qcm

3) Build

$ cd auto-qcm
$ make deb

This might show some unfulfilled dependencies and therefore might fail.
The dependencies may include libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin libxml-libxml-perl g++

4) Install dependencies

$ sudo apt-get install libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin libxml-libxml-perl g++
$ make deb
This should produce four .deb package in the /tmp directory, which can be checked.
The package will be named:
  • auto-multiple-choice_x.y.z-u_v.deb
  • auto-multiple-choice-common_x.y.z-u_all.deb
  • auto-multiple-choice-doc_x.y.z-u_all.deb
  • auto-multiple-choice-doc-pdf_x.y.z-u_all.deb,
    where x, y, z, u and v depend on your processor architecture and the revision at the moment of your checkout.

5) Install AMC

  1. First install the platform independent files
    $ sudo dpkg -i /tmp/auto-multiple-choice-common_x.y.z-u_all.deb
    
  2. Then install the documentation
    $ sudo dpkg -i /tmp/auto-multiple-choice-doc_x.y.z-u_all.deb
    $ sudo dpkg -i /tmp/auto-multiple-choice-doc-pdf_x.y.z-u_all.deb
    
  3. Now install the platform dependent files
    $ sudo dpkg -i /tmp/auto-multiple-choice_x.y.z-u_v.deb
    

dpkg might complain that some dependencies are not fulfilled. You can install them using sudo apt-get install as above.
You should also consider installing the recommended packages (see the Recommends: line in source:debian/control) with apt-get, as dpkg does not tell you if they are missing!

6) Update AMC

If you want to stay on the bleeding edge, svn update in the auto-qcm sub directory and then rerun the package making and installation process.

$ cd .../auto-qcm
$ svn up
$ make deb