Building AMC from subversion repository (deprecated)

Version 8 (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 8 Pieter Van den Hombergh
This how to assumes a debian/ubuntu  system and has been tested on all "stable versions of Ubuntu.":https://wiki.ubuntu.com/Releases#Stable
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 7 Pieter Van den Hombergh
The dependencies may include *libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin libxml-libxml-perl g++*
18 1
# Install these dependencies, then have another go (two steps).
19 1
<pre>
20 7 Pieter Van den Hombergh
$ sudo apt-get install libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin libxml-libxml-perl g++
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 6 Pieter Van den Hombergh
@dpkg@ might complain that some dependencies are not fulfilled. You can install the using @apt-get@ install the usual way.
31 6 Pieter Van den Hombergh
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!
32 3 Pieter Van den Hombergh
33 3 Pieter Van den Hombergh
34 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.
35 1
<pre>
36 1
$ cd .../auto-qcm
37 1
$ svn up
38 1
$ make deb
39 1
</pre>
40 2 Pieter Van den Hombergh
You may of course also just build parts (like the LaTeX.sty file for instance) and install them separately.