Building AMC from mercurial repository
Version 2 (Anirvan Sarkar, 08/02/2014 06:01 pm)
1 | 1 | h1. Building AMC from @mercurial@ repository |
|
---|---|---|---|
2 | 1 | ||
3 | 1 | 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 | 1 | <pre> |
|
9 | 1 | $ sudo apt-get install mercurial |
|
10 | 1 | </pre> |
|
11 | 1 | ||
12 | 1 | h3. 2) Clone the repository |
|
13 | 1 | ||
14 | 1 | <pre> |
|
15 | 1 | $ hg clone https://bitbucket.org/auto-multiple-choice/auto-multiple-choice |
|
16 | 1 | </pre> |
|
17 | 1 | ||
18 | 1 | h3. 3) Build |
|
19 | 1 | ||
20 | 1 | <pre> |
|
21 | 1 | $ cd auto-multiple-choice |
|
22 | 1 | $ make deb |
|
23 | 1 | </pre> |
|
24 | 1 | ||
25 | 1 | This might show some unfulfilled dependencies and therefore might fail. |
|
26 | 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 * |
27 | 1 | ||
28 | 1 | h3. 4) Install dependencies |
|
29 | 1 | ||
30 | 1 | <pre> |
|
31 | 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 |
32 | 1 | $ make deb |
|
33 | 1 | </pre> |
|
34 | 1 | ||
35 | 1 | This should produce four .deb package in the /tmp directory, which can be checked. |
|
36 | 1 | The package will be named: |
|
37 | 1 | * auto-multiple-choice_x.y.z.u-v_w.deb |
|
38 | 1 | * auto-multiple-choice-common_x.y.z.u-v_all.deb |
|
39 | 1 | * auto-multiple-choice-doc_x.y.z.u-v_all.deb |
|
40 | 1 | * auto-multiple-choice-doc-pdf_x.y.z.u-v_all.deb, |
|
41 | 1 | where x, y, z, u, v and w depend on your processor architecture and the revision at the moment of your checkout. |
|
42 | 1 | ||
43 | 1 | h3. 5) Install AMC |
|
44 | 1 | ||
45 | 1 | # First install the platform independent files |
|
46 | 1 | <pre> |
|
47 | 1 | $ sudo dpkg -i /tmp/auto-multiple-choice-common_x.y.z.u-v_all.deb |
|
48 | 1 | </pre> |
|
49 | 1 | # Then install the documentation |
|
50 | 1 | <pre> |
|
51 | 1 | $ sudo dpkg -i /tmp/auto-multiple-choice-doc_x.y.z.u-v_all.deb |
|
52 | 1 | $ sudo dpkg -i /tmp/auto-multiple-choice-doc-pdf_x.y.z.u-v_all.deb |
|
53 | 1 | </pre> |
|
54 | 1 | # Now install the platform dependent files |
|
55 | 1 | <pre> |
|
56 | 1 | $ sudo dpkg -i /tmp/auto-multiple-choice_x.y.z.u-v_w.deb |
|
57 | 1 | </pre> |
|
58 | 1 | ||
59 | 1 | @dpkg@ might complain that some dependencies are not fulfilled. You can install them using @sudo apt-get install@ as above. |
|
60 | 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! |
|
61 | 1 | ||
62 | 1 | h3. 6) Update AMC |
|
63 | 1 | ||
64 | 1 | If you want to stay on the bleeding edge, update the cloned repository and then rerun the package making and installation process. |
|
65 | 1 | <pre> |
|
66 | 1 | $ cd .../auto-multiple-choice |
|
67 | 1 | $ hg pull |
|
68 | 1 | $ hg update |
|
69 | 1 | $ make deb |
|
70 | 1 | </pre> |