Building AMC from mercurial repository

Version 3 (Anirvan Sarkar, 08/02/2014 06:01 pm)

1 1
h1. Building AMC from @mercurial@ repository
2 1
3 3 Anirvan Sarkar
This how to assumes a debian/ubuntu system and has been tested on all "stable versions of Ubuntu.":https://wiki.ubuntu.com/Releases#Current
4 1
5 1
The steps to execute are:
6 1
7 1
h3. 1) Install @mercurial@
8 3 Anirvan Sarkar
9 1
<pre>
10 1
$ sudo apt-get install mercurial
11 1
</pre>
12 1
13 1
h3. 2) Clone the repository
14 1
15 1
<pre>
16 1
$ hg clone https://bitbucket.org/auto-multiple-choice/auto-multiple-choice
17 1
</pre>
18 1
19 1
h3. 3) Build
20 1
21 1
<pre>
22 1
$ cd auto-multiple-choice
23 1
$ make deb
24 1
</pre>
25 1
26 1
This might show some unfulfilled dependencies and therefore might fail.
27 2 Anirvan Sarkar
The dependencies may include **libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin libxml-libxml-perl g++ and libgtk2-notify-perl netpbm libopencv-dev libpoppler-glib-dev texlive-lang-french *
28 1
29 1
h3. 4) Install dependencies
30 1
31 1
<pre>
32 2 Anirvan Sarkar
$ sudo apt-get install libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin libxml-libxml-perl g++ libgtk2-notify-perl netpbm libopencv-dev libpoppler-glib-dev texlive-lang-french 
33 1
$ make deb
34 1
</pre>
35 1
36 1
This should produce four .deb package in the /tmp directory, which can be checked.
37 1
The package will be named:
38 1
* auto-multiple-choice_x.y.z.u-v_w.deb
39 1
* auto-multiple-choice-common_x.y.z.u-v_all.deb
40 1
* auto-multiple-choice-doc_x.y.z.u-v_all.deb
41 1
* auto-multiple-choice-doc-pdf_x.y.z.u-v_all.deb,
42 1
  where x, y, z, u, v and w depend on your processor architecture and the revision at the moment of your checkout.
43 1
44 1
h3. 5) Install AMC
45 1
46 1
# First install the platform independent files
47 1
<pre>
48 1
$ sudo dpkg -i /tmp/auto-multiple-choice-common_x.y.z.u-v_all.deb
49 1
</pre>
50 1
# Then install the documentation
51 1
<pre>
52 1
$ sudo dpkg -i /tmp/auto-multiple-choice-doc_x.y.z.u-v_all.deb
53 1
$ sudo dpkg -i /tmp/auto-multiple-choice-doc-pdf_x.y.z.u-v_all.deb
54 1
</pre>
55 1
#  Now install the platform dependent files
56 1
<pre>
57 1
$ sudo dpkg -i /tmp/auto-multiple-choice_x.y.z.u-v_w.deb
58 1
</pre>
59 1
60 1
@dpkg@ might complain that some dependencies are not fulfilled. You can install them using @sudo apt-get install@ as above.
61 1
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!
62 1
63 1
h3. 6) Update AMC
64 1
65 1
If you want to stay on the bleeding edge, update the cloned repository and then rerun the package making and installation process.
66 1
<pre>
67 1
$ cd .../auto-multiple-choice
68 1
$ hg pull
69 1
$ hg update
70 1
$ make deb
71 1
</pre>