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