|
1 | | ---- |
| 1 | +--- |
2 | 2 | title: Install and Run on MacOS |
3 | 3 | weight: 30 |
4 | 4 | type: docs |
5 | 5 | aliases: |
6 | 6 | - /running/running-on-mac |
7 | 7 | --- |
| 8 | +<style>.td-content blockquote { border-left: none; color: inherit; padding-left: 2rem;}</style> |
| 9 | + |
| 10 | +## **Prerequisite: Install XQuartz** |
| 11 | + |
| 12 | +Before installing and running Medley on your Mac, you will need to download and install XQuartz - an open-source X11 Windows server for the Mac. You can download the latest XQuartz .pkg from [XQuartz.org](https://xquartz.org) and install it using the MacOS installer. |
| 13 | + |
| 14 | +If you do not have a three-button mouse on your Mac, you will need to set `Emulate three button mouse` in the XQuartz preferences. |
| 15 | + |
| 16 | +>To do so, start XQuartz (e.g., by double clicking the XQuartz icon within Launchpad). Select XQuartz->Preferences from the menu bar. In the Preferences dialog, select the Input tab and then check the *Emulate three button mouse* option. |
| 17 | +
|
| 18 | +## **Install Medley** |
| 19 | + |
| 20 | +Medley releases on MacOS are distributed as a .zip file. The .zip file contains universal binaries so that the same file can be used for either Intel or Apple Silicon machines. |
| 21 | + |
| 22 | +To install Medley: |
| 23 | + |
| 24 | +1. Download the latest release .zip from the Medley latest releases page [(here)](https://online.interlisp.org/downloads/medley_downloads.html) , under the heading "MacOS ...". |
| 25 | + |
| 26 | + >You can also download the latest release .zip as well as any prior release .zips from the Medley GitHub site [(here)](https://github.com/Interlisp/medley/releases). In the Assets for any given release, the MacOS .zip file will be entitled *medley-full-macos-universal...zip* |
| 27 | + |
| 28 | +2. Drag the downloaded *medley-full-macos-universal...zip* file (which MacOS treats as an unzipped folder) from the Downloads folder into any folder of your choosing. For the purposes of these instructions, we will call this the *\<install_folder>*. And the file/folder just dragged into the \<install_foler>, we will call the *\<medley_folder>*. |
| 29 | + >You may also want to rename the \<medley_folder> from *medley-full-macos-universal...* to something more manageable - e.g., *medley-latest*. |
| 30 | +
|
| 31 | +4. In a Terminal window, you will need to remove the quarantine attributes from the executable files by executing the following command: |
| 32 | +`xattr -d com.apple.quarantine <install_folder>/<medley_folder>/maiko/darwin.universal/lde*` |
| 33 | + |
| 34 | + For example: |
| 35 | +``` |
| 36 | +ssd@Mac-mini ~ % xattr -d com.apple.quarantine ~/il/medley-latest/maiko/darwin.universal/lde* |
| 37 | +``` |
| 38 | + |
| 39 | + |
| 40 | +## **Run Medley** |
| 41 | + |
| 42 | +On MacOS, Medley must be started from a Terminal window. |
| 43 | + |
| 44 | +At the Terminal prompt, you need to execute the command `<install_folder>/<medley_folder>/medley/medley`. |
| 45 | +>Note: it is usually easiest to first `cd \<install_folder>/\<medley_folder>/medley` and then just execute `./medley` |
8 | 46 |
|
9 | | -## **How to Install** |
| 47 | +For example: |
| 48 | +``` |
| 49 | +ssd@Mac-mini ~ % cd ~/il/medley-latest/medley |
| 50 | +ssd@Mac-mini medley % ./medley -a -e -n |
| 51 | +``` |
10 | 52 |
|
11 | | -1. Get the Installer |
12 | | - Download the MacOS installer from [the latest release page](https://github.com/Interlisp/medley/releases/latest). |
| 53 | +Note that the first time you run it, Medley may take 10-15 seconds to start up as it starts the XQuartz X Windows server (assuming that it is not already running). |
| 54 | +>You can optionally start the XQuartz server manually before starting Medley. It will take 10-15 seconds to start up and then display an Xterm window in the upper-left corner of the screen. You can just close this Xterm window. |
13 | 55 |
|
14 | | -2. Run Medley |
15 | | - Unzip the `medley-full-macos-universal...zip` file on your computer. Run the `medley/run-medley` script in the unzipped folder to start Medley. |
| 56 | +There are many options to the `medley` command. For a brief overview, run `./medley --help`. For a more complete description, run `./medley --man` or click |
| 57 | + [here](https://online.interlisp.org/downloads/man_medley.html). |
16 | 58 |
|
| 59 | +For first-time users: `./medley -a -e -n` is a good starting point. This will give you a fully populated Medley system, including the applications built on Medley such as Notecards and Rooms. It will start with a Interlisp Exec window (instead of the Xerox Common Lisp Exec window). |
17 | 60 |
|
18 | | -## install medley from release, build maiko |
| 61 | +#### Notes: |
19 | 62 |
|
20 | | -Need XCode |
21 | | -Need XQuartz installed before you build maiko (includes XClient libraries). |
| 63 | +>By default, `medley` will create a directory in *$HOME/il*. This will be used by the Medley system as its *LOGINDIR*. Medley will start up with *LOGINDIR* as its current connected directory. It will load the personal init file (if any) from *LOGINDIR*/INIT or *LOGINDIR*/INIT.LCOM. Finally, Medley will use *LOGINDIR*/vmem/ to store its virtual memory file(s). The location of *LOGINDIR* can be changed using the `--logindir` option to `medley`. |
22 | 64 |
|
23 | | -* Requirements |
24 | 65 |
|
25 | | -- Intel or M1/M2 Macintosh (or even older) |
26 | | -- XQuartz Macintosh X server for your OS/mac vintage) |
27 | 66 |
|
28 | 67 |
|
29 | | -## XQuartz settings |
30 | 68 |
|
31 | | -emulate 3-button mouse |
|
0 commit comments