Building AMC from subversion repository (deprecated)

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

1 9 Pieter Van den Hombergh
h1. Building AMC from @subversion@ repository (deprecated)
2 1
3 10 Pieter Van den Hombergh
*Note*: _Building from @subversion@ repository is not recommended. Please follow the instructions on [[Building AMC from mercurial repository]]_
4 10 Pieter Van den Hombergh
5 9 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#Current
6 1
7 9 Pieter Van den Hombergh
The steps to execute are:
8 9 Pieter Van den Hombergh
9 9 Pieter Van den Hombergh
h3. 1) Install @subversion@
10 1
<pre>
11 9 Pieter Van den Hombergh
$ sudo apt-get install subversion
12 9 Pieter Van den Hombergh
</pre>
13 9 Pieter Van den Hombergh
14 9 Pieter Van den Hombergh
h3. 2) Download (checkout) from the repository
15 9 Pieter Van den Hombergh
16 9 Pieter Van den Hombergh
<pre>
17 1
$ svn co http://svn.gna.org/svn/auto-qcm/trunk auto-qcm
18 1
</pre>
19 9 Pieter Van den Hombergh
20 9 Pieter Van den Hombergh
h3. 3) Build
21 9 Pieter Van den Hombergh
22 1
<pre>
23 1
$ cd auto-qcm
24 1
$ make deb
25 1
</pre>
26 9 Pieter Van den Hombergh
27 1
This might show some unfulfilled dependencies and therefore might fail.
28 11 Pieter Van den Hombergh
The dependencies may include *libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin libxml-libxml-perl g++ and
29 11 Pieter Van den Hombergh
libgtk2-notify-perl *
30 9 Pieter Van den Hombergh
h3. 4) Install dependencies
31 9 Pieter Van den Hombergh
32 1
<pre>
33 11 Pieter Van den Hombergh
$ sudo apt-get install libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin libxml-libxml-perl g++ libgtk2-notify-perl
34 1
$ make deb
35 1
</pre>
36 9 Pieter Van den Hombergh
37 9 Pieter Van den Hombergh
This should produce four .deb package in the /tmp directory, which can be checked.
38 9 Pieter Van den Hombergh
The package will be named:
39 9 Pieter Van den Hombergh
* auto-multiple-choice_x.y.z-u_v.deb
40 9 Pieter Van den Hombergh
* auto-multiple-choice-common_x.y.z-u_all.deb
41 9 Pieter Van den Hombergh
* auto-multiple-choice-doc_x.y.z-u_all.deb
42 9 Pieter Van den Hombergh
* auto-multiple-choice-doc-pdf_x.y.z-u_all.deb,
43 9 Pieter Van den Hombergh
  where x, y, z, u and v depend on your processor architecture and the revision at the moment of your checkout.
44 9 Pieter Van den Hombergh
45 9 Pieter Van den Hombergh
h3. 5) Install AMC
46 9 Pieter Van den Hombergh
47 9 Pieter Van den Hombergh
# First install the platform independent files
48 1
<pre>
49 9 Pieter Van den Hombergh
$ sudo dpkg -i /tmp/auto-multiple-choice-common_x.y.z-u_all.deb
50 1
</pre>
51 9 Pieter Van den Hombergh
# Then install the documentation
52 9 Pieter Van den Hombergh
<pre>
53 9 Pieter Van den Hombergh
$ sudo dpkg -i /tmp/auto-multiple-choice-doc_x.y.z-u_all.deb
54 9 Pieter Van den Hombergh
$ sudo dpkg -i /tmp/auto-multiple-choice-doc-pdf_x.y.z-u_all.deb
55 9 Pieter Van den Hombergh
</pre>
56 9 Pieter Van den Hombergh
#  Now install the platform dependent files
57 9 Pieter Van den Hombergh
<pre>
58 9 Pieter Van den Hombergh
$ sudo dpkg -i /tmp/auto-multiple-choice_x.y.z-u_v.deb
59 9 Pieter Van den Hombergh
</pre>
60 1
61 9 Pieter Van den Hombergh
@dpkg@ might complain that some dependencies are not fulfilled. You can install them using @sudo apt-get install@ as above.
62 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!
63 3 Pieter Van den Hombergh
64 9 Pieter Van den Hombergh
h3. 6) Update AMC
65 2 Pieter Van den Hombergh
66 9 Pieter Van den Hombergh
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.
67 1
<pre>
68 1
$ cd .../auto-qcm
69 1
$ svn up
70 1
$ make deb
71 2 Pieter Van den Hombergh
</pre>