Installing AMC with MacPorts on macOS
Version 37 (Joël Brogniart, 07/07/2025 09:09 am)
| 1 | 28 | Joël Brogniart | h1. Installing AMC on macOS with MacPorts |
|---|---|---|---|
| 2 | 1 | ||
| 3 | 34 | Joël Brogniart | The installation guide requires some knowledge about Unix tools, the use of command lines, the installation of "MacPorts":http://www.macports.org. You must also have administrative rights on the computer. It is therefore not intended for everyone. |
| 4 | 10 | Joël Brogniart | |
| 5 | 9 | Joël Brogniart | h2. Prerequisites |
| 6 | 1 | ||
| 7 | 35 | Joël Brogniart | To work with its interface, AMC requires the Linux Libertine, the MacPorts installation system and an X Window System or X11 graphical environment. |
| 8 | 20 | Joël Brogniart | |
| 9 | 1 | h3. Linux Libertine font |
|
| 10 | 12 | Joël Brogniart | |
| 11 | 1 | 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 "sourceforge":https://sourceforge.net/projects/linuxlibertine/ site. |
|
| 12 | 1 | ||
| 13 | 34 | Joël Brogniart | *Caution*: X Window Ssstem does not recognize the fonts installed in the user's folder. You must install the fonts by moving them in the "@/Library/Fonts@" folder. |
| 14 | 34 | Joël Brogniart | |
| 15 | 1 | h3. MacPorts |
|
| 16 | 1 | ||
| 17 | 29 | Joël Brogniart | MacPorts is a system that compiles, installs and manages open source software. You need to download the installation package for your version of macOS from the "MacPorts":http://www.macports.org and install MacPorts. Follow the instructions carefully and don't forget to install Xcode. |
| 18 | 29 | Joël Brogniart | |
| 19 | 1 | h3. X Window System environment |
|
| 20 | 1 | ||
| 21 | 35 | Joël Brogniart | MacOS does not contain the standard X11 graphical environment. If you haven't the "XQuartz":http://xquartz.macosforge.org application installed you should install X Window with MacPorts. |
| 22 | 1 | ||
| 23 | 35 | Joël Brogniart | To install X Window with MacPorts, use the following command. |
| 24 | 35 | Joël Brogniart | <pre>sudo port install xorg-server xterm xman xlogo</pre> |
| 25 | 28 | Joël Brogniart | |
| 26 | 28 | Joël Brogniart | *Caution*: for the X Window System environment to be correctly taken into account, after its installation you must leave your session and connect again. |
| 27 | 28 | Joël Brogniart | |
| 28 | 28 | Joël Brogniart | h2. Installing AMC |
| 29 | 28 | Joël Brogniart | |
| 30 | 37 | Joël Brogniart | It is possible to install one of the two versions of AMC. Either the @stable@ version (currently, version 1.4.0 of 12/29/2018), or the @development@ version (currently, version 1.5.0_rc2-2-gd3d7ea2 of 2/20/2021). The @stable@ version evolves slowly and version changes are infrequent. Several months or years may pass between two version changes. The @development@ version is subject to more frequent changes. Some of the new features have not been fully tested and may not work as expected. |
| 31 | 1 | ||
| 32 | 20 | Joël Brogniart | It is not possible to install both the @stable@ and the @development@ version. If one of these versions is installed, you must uninstall it before installing the other version. |
| 33 | 23 | Joël Brogniart | |
| 34 | 34 | Joël Brogniart | For installation and operation AMC requires a @LaTeX@ environment. The standard installation will use MacPorts to install this environment. If you are using "MacTeX":http://www.tug.org/mactex/ and want AMC to use @MacTeX@ instead of the MacPort environment, the installation process differs from the standard installation. You should follow either the instructions of the standard installation, or those of the installation of a version of AMC using MacTeX. These descriptions assume that you have a fresh and up-to-date MacPorts installation. |
| 35 | 20 | Joël Brogniart | |
| 36 | 35 | Joël Brogniart | If needed, update you Macports installation with the following commands. |
| 37 | 35 | Joël Brogniart | <pre>sudo port selfupdate |
| 38 | 35 | Joël Brogniart | sudo port upgrade outdated</pre> |
| 39 | 35 | Joël Brogniart | |
| 40 | 20 | Joël Brogniart | h3. Standard installation |
| 41 | 19 | Joël Brogniart | |
| 42 | 20 | Joël Brogniart | The standard installation uses MacPorts to install the LaTeX environment needed by AMC. Use the following command to install the @stable@ version of AMC. |
| 43 | 20 | Joël Brogniart | <pre>sudo port install auto-multiple-choice</pre> |
| 44 | 4 | Joël Brogniart | |
| 45 | 20 | Joël Brogniart | Or use the following command to install the @development@ version of AMC. |
| 46 | 20 | Joël Brogniart | <pre>sudo port install auto-multiple-choice-devel</pre> |
| 47 | 7 | Joël Brogniart | |
| 48 | 20 | Joël Brogniart | h3. Installing AMC for use with MacTeX |
| 49 | 20 | Joël Brogniart | |
| 50 | 28 | Joël Brogniart | MacPorts build tools must be able to access MacTeX tools. For example, with the MacTeX 2018 installation, these tools are available in the @"/Library/TeX/texbin"@ folder. The MacPorts configuration needs to be changed to include this folder in MacPorts @path@. |
| 51 | 20 | Joël Brogniart | |
| 52 | 11 | Joël Brogniart | Be careful, as noted in the "MacPorts documentation":https://guide.macports.org/chunked/internals.configuration-files.html, changing MacPorts' @path@ can have unpredictable effects and consequences for others tools. It must be avoided. |
| 53 | 20 | Joël Brogniart | |
| 54 | 20 | Joël Brogniart | Edit the @/opt/local/etc/macports/macports.conf@ file to add the following line. |
| 55 | 1 | <pre>binpath /opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/Library/TeX/texbin</pre> |
|
| 56 | 20 | Joël Brogniart | |
| 57 | 5 | Joël Brogniart | For the stable version of AMC, you must start the installation with the following command. |
| 58 | 20 | Joël Brogniart | <pre>sudo port install auto-multiple-choice +mactex</pre> |
| 59 | 20 | Joël Brogniart | |
| 60 | 5 | Joël Brogniart | And for the development version of AMC it is necessary to use the command which follows. |
| 61 | 5 | Joël Brogniart | <pre>sudo port install auto-multiple-choice-devel +mactex</pre> |
| 62 | 1 | ||
| 63 | 1 | The installation may take a while. When it is complete and if there is no error, AMC is ready to be used. |
|
| 64 | 5 | Joël Brogniart | |
| 65 | 7 | Joël Brogniart | h2. Using AMC |
| 66 | 1 | ||
| 67 | 28 | Joël Brogniart | You can start from the terminal or from the X Window system. |
| 68 | 7 | Joël Brogniart | |
| 69 | 5 | Joël Brogniart | h3. In the Terminal |
| 70 | 1 | ||
| 71 | 5 | Joël Brogniart | <pre>auto-multiple-choice</pre> |
| 72 | 5 | Joël Brogniart | |
| 73 | 7 | Joël Brogniart | This command will launch XQuartz and AMC application. |
| 74 | 5 | Joël Brogniart | |
| 75 | 5 | Joël Brogniart | h3. In the X Window System |
| 76 | 28 | Joël Brogniart | |
| 77 | 5 | Joël Brogniart | The X Window system can be provided by the XQuartz application (in the @Applications@ folder) or the X11 application (in the @Applications/MacPorts@ folder). Launch the application. |
| 78 | 28 | Joël Brogniart | |
| 79 | 5 | Joël Brogniart | !xquartz.png! |
| 80 | 5 | Joël Brogniart | |
| 81 | 28 | Joël Brogniart | We can immediately set the application to facilitate the launch of AMC. Open the @Applications > Customize...@ menu. |
| 82 | 7 | Joël Brogniart | |
| 83 | 7 | Joël Brogniart | !xquartz-menu-applications-personnaliser.png! |
| 84 | 5 | Joël Brogniart | |
| 85 | 5 | Joël Brogniart | In the Personalization window, click the button @Add an entry@. |
| 86 | 7 | Joël Brogniart | |
| 87 | 5 | Joël Brogniart | !xquartz-fenetre-personnaliser-menu-applications.png! |
| 88 | 7 | Joël Brogniart | |
| 89 | 35 | Joël Brogniart | Set "@Auto Multiple Choice@" in the @Name@ column and "@LANG=fr_FR.UTF-8 auto-multiple-choice@" in the @Command@ column of the new menu item. |
| 90 | 7 | Joël Brogniart | |
| 91 | 5 | Joël Brogniart | !xquartz-fenetre-personnaliser-menu-applications-2.png! |
| 92 | 7 | Joël Brogniart | |
| 93 | 5 | Joël Brogniart | Close the Customize window, then select the @Applications > Auto Multiple Choice@ menu. |
| 94 | 5 | Joël Brogniart | |
| 95 | 5 | Joël Brogniart | !xquartz-menu-applications-amc.png! |
| 96 | 7 | Joël Brogniart | |
| 97 | 5 | Joël Brogniart | AMC window should appear. |
| 98 | 5 | Joël Brogniart | |
| 99 | 5 | Joël Brogniart | !auto-multiple-choice-window.png! |
| 100 | 7 | Joël Brogniart | |
| 101 | 5 | Joël Brogniart | Auto-multiple-choice is now ready to work. |
| 102 | 1 | ||
| 103 | 1 | h2. Links |
|
| 104 | 25 | Joël Brogniart | |
| 105 | 25 | Joël Brogniart | * Linux Libertine fonts, "https://sourceforge.net/projects/linuxlibertine/":https://sourceforge.net/projects/linuxlibertine/ |
| 106 | 1 | * MacPorts, "http://www.macports.org":http://www.macports.org. |
|
| 107 | 22 | Joël Brogniart | * MacTeX, "http://www.tug.org/mactex/":http://www.tug.org/mactex/ |
| 108 | 22 | Joël Brogniart | * XQuartz, "http://xquartz.macosforge.org":http://xquartz.macosforge.org. |