Building AMC from subversion repository (deprecated)

Version 8 (Anirvan Sarkar, 05/09/2014 02:01 pm) → Version 9/12 (Anirvan Sarkar, 05/09/2014 02:01 pm)

h1. Building AMC from @subversion@ repository (deprecated)

Alexis taught me how to build from sources.

This how to assumes a debian/ubuntu system and has been tested on all "stable versions of Ubuntu.":https://wiki.ubuntu.com/Releases#Current

Ubuntu.":https://wiki.ubuntu.com/Releases#Stable
The steps to execute are:

h3. 1) Install @subversion@
are
<pre>
$ sudo apt-get install subversion
</pre>

h3. 2) Download
# download (checkout) from the repository


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

h3. 3) Build


# build
<pre>
$ cd auto-qcm
$ make deb
</pre>


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++*

h3. 4)

#
Install dependencies

these dependencies, then have another go (two steps).
<pre>
$ sudo apt-get install libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin libxml-libxml-perl g++
$ make deb
</pre>


This should produce four a .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,
named auto-multiple-choice_x.y.z-u_i386.deb where x, y, z, z and u and v depend on your processor architecture and the revision at the moment of your checkout.

h3. 5) Install AMC

# First install the platform independent files

<pre>
$ sudo dpkg -i /tmp/auto-multiple-choice-common_x.y.z-u_all.deb
</pre>
# Then After that you're done and can install this package the documentation usual way with e.g. (As I did just now on my ubuntu 10.04 machine)
<pre>
$ 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
</pre>
#
Now install the platform dependent files
<pre>
$ sudo
dpkg -i /tmp/auto-multiple-choice_x.y.z-u_v.deb
/tmp/auto-multiple-choice_1.0.977-1_i386.deb
</pre>

@dpkg@ might complain that some dependencies are not fulfilled. You can install them the using @sudo apt-get install@ as above. @apt-get@ install the usual way.
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!

h3. 6) Update AMC



If you want to stay on the bleeding edge, @svn update@ svn update in the auto-qcm sub directory and then the rerun the package making and installation process. making.
<pre>
$ cd .../auto-qcm
$ svn up
$ make deb
</pre>
You may of course also just build parts (like the LaTeX.sty file for instance) and install them separately.