Building AMC from subversion repository (deprecated)
Version 6 (Alexis Bienvenüe, 05/09/2014 02:01 pm) → Version 7/12 (Roy Shahbazian, 05/09/2014 02:01 pm)
h1. Building AMC from repository
Alexis taught me how to build from sources.
This how to assumes an debian/ubuntu system and has been tested on ubuntu 10.04, 11.10, 12.04 and 12.10.
The steps to execute are
# download (checkout) from the repository
<pre>
$ svn co http://svn.gna.org/svn/auto-qcm/trunk auto-qcm
</pre>
# build
<pre>
$ cd auto-qcm
$ make deb
</pre>
This might show some unfulfilled dependencies and therefore might fail.
The dependencies may include In my case those were: *libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin libxml-libxml-perl g++* librsvg2-bin*
# Install these dependencies, then have another go (two steps).
<pre>
$ sudo apt-get install libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin libxml-libxml-perl g++
$ make deb
</pre>
This should produce a .deb package in the /tmp directory, which can be checked.
The package will be named auto-multiple-choice_x.y.z-u_i386.deb where x, y, z and u depend on the revision at the moment of your checkout.
# After that you're done and can install this package the usual way with e.g. (As I did just now on my ubuntu 10.04 machine)
<pre>
sudo dpkg -i /tmp/auto-multiple-choice_1.0.977-1_i386.deb
</pre>
@dpkg@ might complain that some dependencies are not fulfilled. You can install the using @apt-get@ install the usual way.
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!
If you want to stay on the bleeding edge, svn update in the auto-qcm sub directory and the rerun the package making.
<pre>
$ cd .../auto-qcm
$ svn up
$ make deb
</pre>
You may of course also just build parts (like the LaTeX.sty file for instance) and install them separately.
Alexis taught me how to build from sources.
This how to assumes an debian/ubuntu system and has been tested on ubuntu 10.04, 11.10, 12.04 and 12.10.
The steps to execute are
# download (checkout) from the repository
<pre>
$ svn co http://svn.gna.org/svn/auto-qcm/trunk auto-qcm
</pre>
# build
<pre>
$ cd auto-qcm
$ make deb
</pre>
This might show some unfulfilled dependencies and therefore might fail.
The dependencies may include In my case those were: *libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin libxml-libxml-perl g++* librsvg2-bin*
# Install these dependencies, then have another go (two steps).
<pre>
$ sudo apt-get install libnetpbm10-dev libcv-dev libhighgui-dev dblatex docbook-xsl librsvg2-bin libxml-libxml-perl g++
$ make deb
</pre>
This should produce a .deb package in the /tmp directory, which can be checked.
The package will be named auto-multiple-choice_x.y.z-u_i386.deb where x, y, z and u depend on the revision at the moment of your checkout.
# After that you're done and can install this package the usual way with e.g. (As I did just now on my ubuntu 10.04 machine)
<pre>
sudo dpkg -i /tmp/auto-multiple-choice_1.0.977-1_i386.deb
</pre>
@dpkg@ might complain that some dependencies are not fulfilled. You can install the using @apt-get@ install the usual way.
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!
If you want to stay on the bleeding edge, svn update in the auto-qcm sub directory and the rerun the package making.
<pre>
$ cd .../auto-qcm
$ svn up
$ make deb
</pre>
You may of course also just build parts (like the LaTeX.sty file for instance) and install them separately.