Building AMC from subversion repository (deprecated)
Version 12 (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 | 12 | Pieter Van den Hombergh | 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 * |
29 | 9 | Pieter Van den Hombergh | h3. 4) Install dependencies |
30 | 1 | ||
31 | 1 | <pre> |
|
32 | 12 | 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 netpbm libopencv-dev libpoppler-glib-dev texlive-lang-french |
33 | 1 | $ make deb |
|
34 | 1 | </pre> |
|
35 | 9 | Pieter Van den Hombergh | |
36 | 9 | Pieter Van den Hombergh | This should produce four .deb package in the /tmp directory, which can be checked. |
37 | 9 | Pieter Van den Hombergh | The package will be named: |
38 | 9 | Pieter Van den Hombergh | * auto-multiple-choice_x.y.z-u_v.deb |
39 | 9 | Pieter Van den Hombergh | * auto-multiple-choice-common_x.y.z-u_all.deb |
40 | 9 | Pieter Van den Hombergh | * auto-multiple-choice-doc_x.y.z-u_all.deb |
41 | 9 | Pieter Van den Hombergh | * auto-multiple-choice-doc-pdf_x.y.z-u_all.deb, |
42 | 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. |
43 | 9 | Pieter Van den Hombergh | |
44 | 9 | Pieter Van den Hombergh | h3. 5) Install AMC |
45 | 9 | Pieter Van den Hombergh | |
46 | 9 | Pieter Van den Hombergh | # First install the platform independent files |
47 | 1 | <pre> |
|
48 | 9 | Pieter Van den Hombergh | $ sudo dpkg -i /tmp/auto-multiple-choice-common_x.y.z-u_all.deb |
49 | 1 | </pre> |
|
50 | 9 | Pieter Van den Hombergh | # Then install the documentation |
51 | 9 | Pieter Van den Hombergh | <pre> |
52 | 9 | Pieter Van den Hombergh | $ sudo dpkg -i /tmp/auto-multiple-choice-doc_x.y.z-u_all.deb |
53 | 9 | Pieter Van den Hombergh | $ sudo dpkg -i /tmp/auto-multiple-choice-doc-pdf_x.y.z-u_all.deb |
54 | 9 | Pieter Van den Hombergh | </pre> |
55 | 9 | Pieter Van den Hombergh | # Now install the platform dependent files |
56 | 9 | Pieter Van den Hombergh | <pre> |
57 | 9 | Pieter Van den Hombergh | $ sudo dpkg -i /tmp/auto-multiple-choice_x.y.z-u_v.deb |
58 | 9 | Pieter Van den Hombergh | </pre> |
59 | 1 | ||
60 | 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. |
61 | 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! |
62 | 3 | Pieter Van den Hombergh | |
63 | 9 | Pieter Van den Hombergh | h3. 6) Update AMC |
64 | 2 | Pieter Van den Hombergh | |
65 | 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. |
66 | 1 | <pre> |
|
67 | 1 | $ cd .../auto-qcm |
|
68 | 1 | $ svn up |
|
69 | 1 | $ make deb |
|
70 | 2 | Pieter Van den Hombergh | </pre> |