« Previous -
Version 13/46
(diff) -
Next » -
Current version
Joël Brogniart, 03/23/2024 09:13 am
Installing AMC development version on macOS¶
This is a translation of the French entry wiki. First translation was done by Pieter Van den Hombergh.
(This installation - AMC version 1.3.0 revision 1966:d6719412b9a3 11/21/2016 - was tested with- macOS 10.12.1 (Xcode 8.2, MacPorts 2.3.5),
- macOS 10.10.5 (Xcode 7.2.1, MacPorts 2.3.5),
- macOS 10.9.5 (Xcode 6.2, MacPorts 2.3.5).
Auto Multiple Choice (AMC) is a software to manage questionnaires and multiple choice exams. It allows, from the definition of the multiple choice questions to generate sheets of questionnaires. The question types can be one only choice, multiple choices, question, right/wrong answers etc. Once the completed questionnaires are digitized, AMC automatically corrects the questionnaires. This software runs in a graphical environment X Window System on Linux and macOS. Linux is used as the develop environment, so it probably runs best there. Your mileage may vary.
In previous versions of this note, the source code of all necessary files were shown. As these sources are provided in the associated archive and not to burden the instructions, source code no longer appear in the note.
It is possible to install the 1.1.2 pre-compiled version , but you would miss the newest developments happening in this active project. You can also install from the source, directly from the development repository. This will give you the bleeding edge version.
For the moment, this installation guide is quite technical and has only been tested on macOS 10.11.5, 10.10.5 and 10.9.5 with the corresponding latest version of Xcode. You will need MacPorts, a little understanding of the dependencies between different tools (Subversion, MacPorts, PERL, X11, port ...) and the macOS architecture. You should also have administrative rights on the computer. This manual is therefore unfortunately not for everyone.
For this installation you will create a local MacPort repository. In this repository you will add macports description for AMC and possibly files for additional ports. Once these files are installed, the installation of AMC can be started.
Prerequisites¶
The requirements are the same as the installation of version 1.1.2 AMC. To work with the interface, AMC requires the graphical environment X Window System and X11, the Linux Libertine font, the DejaVu font family and the MacPorts installation system.
macOS does not contain the standard X11 graphical environment. It is possible to fill this gap by installing XQuartz, an X Windows System environment running macOS. You can download the application on the XQuartz site. XQuartz.
MacPorts¶
MacPorts is a system to build, install and manage open source software. You need to download the macOS Yosemite installation package on the site MacPorts and install MacPorts.
Linux Libertine font¶
Linux Libertine font is a free font that covers code pages for Latin languagesââ, Greek, Cyrillic languagesââ, Hebrew, the International Phonetic Alphabet (and other). You need to download the package "OTF" on LinuxLibertine.org site.
Caution : The current version of XQuartz (2.7.11) does not recognize the fonts installed in the user's folder. You must install the fonts by moving them in the "/Library/Fonts
" folder.
DejaVu font family¶
DejaVu fonts are used for japanese documentation generation.
Ces polices sont utilisées pour la génération des documentations en japonais. You need to download the fonts on dejavu-fonts.org site.
Caution : The current version of XQuartz (2.7.11) does not recognize the fonts installed in the user's folder. You must install the fonts by moving them in the "/Library/Fonts
" folder.
MacPorts installation (port) files¶
The MacPorts port file contains information that allows a program to be installed into the MacPorts system. It shows what tools are needed for installation and operation of the program and how to install the program.
MacPorts contains many ports but it does not contain a port describing the AMC installation from the source code of the program. So we have to create the file port for the development version of AMC.
To avoid conflicts with ports already described in MacPorts, new ports will be installed in the folders of the user who installs, instead of being installed in folders directly managed by MacPorts.
Local MacPorts repository¶
For MacPorts to use a local folder, you must create that local folder.
mkdir -p ~/nix
You should then tell MacPorts to take the local folder into account, before considering the standard hierarchy MacPorts. To do this you must edit the file "/opt/local/etc/macports/sources.conf
" and add a URL to the local file before the URL of the repository rsync
MacPorts.
file:///Users/julesvernes/nix/macports rsync://rsync.macports.org/release/tarballs/ports.tar [default]
Port Files¶
Three archives containing the port files are available for download:- for installation on OSÂ X 10.9 and 10.10 attachment:macports-10.10.zip,
- for installation on macOS 10.11 attachment:macports-10.11.zip,
- for installation on macOS 10.12 attachment:macports-10.12.zip.
La première archive ne contient que la description du port AMC. L'archive pour macOS 10.11 comprend une adaptation des ports gcc5
et pdftk
permettant leur fonctionnement sous cette version de macOS. L'archive pour macOS 10.12 contient une adaptation du port opencv
en plus des adaptations des ports gcc5
et pdftk
.
First archive contains only AMC port description. Archive for macOS 10.11 includes an adaptation of ports gcc5
and pdftk
to make them working under this version of macOS. The archive for macOS 10.12 contains an adaptation of port opencv
in addition to port adaptations gcc5
and pdftk
.
Download and uncompress this archive then move the "macports
" folder inside the previously created folder.
Each directory must contain a port document named Portfile
. This document is a text document containing a description for the MacPorts installation tool.
Excerpt for x11/auto-multiple-choice-devel/Portfile
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
PortSystem 1.0
PortGroup bitbucket 1.0
PortGroup perl5 1.0
set bitbucket_commit "d6719412b9a3"
set amc_revision "1966"
#1966:d6719412b9a3
bitbucket.setup auto-multiple-choice auto-multiple-choice ${bitbucket_commit}
name auto-multiple-choice-devel
version 1.3.${amc_revision}
categories x11 tex education
platforms darwin
license GPL-2+
maintainers laposte.fr:joel.brogniart,openmaintainer
description Auto Multiple Choice - Multiple Choice Papers Management
long_description Utility to manage multiple choice questionnaires, \
with optionally mixed questions and answers. \
AMC provides automatic marking from papers' scans. \
Annotated papers are produced. Marks can be exported \
as an OpenOffice.org sheet file.
homepage http://home.gna.org/auto-qcm
checksums rmd160 2d3597af254da3219e17c1d9dadc6c6fe4edd518 \
sha256 9207cfd1cd63d3889aa51eca7a987f2435bb053fabf6e4d9e5e9383be72d34e8
depends_build-append \
port:dblatex \
port:p${perl5.major}-xml-libxml
Installing AMC¶
Once the port files set up, generate the index of the new port.
cd ~/nix/macports portindex
Warning: standard and development of AMC versions can't be installed simultaneously. If a standard version was previously installed, you must uninstall it before installing the development version.
sudo port uninstall auto-multiple-choice
The installation of the development version of AMC can be launched. AMC depends on many other ports. The calculation and verification of all dependencies generates the opening of a large number of files that can cause installation failure. To avoid a failure, it is best to proceed in stages. First install the pdftk
port.
sudo port install pdftk
Then install pdflatex
port.
sudo port install pdflatex
Finally install AMC.
sudo port install auto-multiple-choice-devel
The installation may take a while. When it is complete and if there is no error, AMC is ready to be used.
Using AMC¶
You can start from the terminal or from XQuartz.
In the Terminal¶
auto-multiple-choice
This command will launch XQuartz and AMC application.
In XQuartz¶
Start XQuartz application.
We can immediately set XQuartz to facilitate the launch of AMC. Open the Applications > Customize...
menu.
In the Personalization window, click the button Add an entry
.
Set "Auto Multiple Choice
" in the Name
column and "auto-multiple-choice
" in the Command
column of the new menu item.
Close the Customize window, then select the Applications > Auto Multiple Choice
menu.
AMC window should appear.
Auto-multiple-choice is now ready to work.
Links¶
- Auto Multiple Choice, http://home.gna.org/auto-qcm/.
- Auto Multiple Choice, Installation sous macOS.
- MacPorts, http://www.macports.org.
- MacPorts, Local Portfile Repositories.
- MacPorts, How to create portfiles for CPAN Perl modules.
- XQuartz, http://xquartz.macosforge.org</a>.