Building AMC from subversion repository (deprecated)

Version 2 (Pieter Van den Hombergh, 05/09/2014 02:01 pm)

1 1
h1. Building AMC from repository
2 1
3 1
Alexis taught me how to build from sources.
4 1
5 1
This how to assumes an debian/ubuntu  system and has been tested on ubuntu 10.04 and 11.10.
6 1
The steps to execute are
7 1
# download (checkout) from the repository
8 1
<pre>
9 1
$ svn co http://svn.gna.org/svn/auto-qcm/trunk auto-qcm
10 1
</pre>
11 1
# build
12 1
<pre>
13 1
$ cd auto-qcm
14 1
$ make deb
15 1
</pre>
16 1
This might show some unfulfilled dependencies and therefore might fail.
17 2 Pieter Van den Hombergh
In my case those were: *libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin*
18 1
# Install these dependencies, then have another go (two steps).
19 1
<pre>
20 1
$ sudo apt-get install libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin
21 1
$ make deb
22 1
</pre>
23 2 Pieter Van den Hombergh
This should produce a .deb package in the /tmp directory, which can be checked.
24 2 Pieter Van den Hombergh
The package will be named auto-multiple-choice_x.y.z-u_i386.deb where x, y, z and u depend on the revision at the moment of your checkout.
25 2 Pieter Van den Hombergh
# After that you're done and can install this package the usual way with e.g. (As I did just now on my ubuntu 10.04 machine)
26 1
<pre>
27 1
sudo  dpkg -i /tmp/auto-multiple-choice_1.0.977-1_i386.deb 
28 1
</pre>
29 1
30 2 Pieter Van den Hombergh
If you want to stay on the bleeding edge, svn update in the auto-qcm sub directory and the rerun the package making.
31 1
<pre>
32 1
$ cd .../auto-qcm
33 1
$ svn up
34 1
$ make deb
35 1
</pre>
36 2 Pieter Van den Hombergh
You may of course also just build parts (like the LaTeX.sty file for instance) and install them separately.