> On Oct 19, 2023, at 12:47, Ian West <ian42w...@gmail.com> wrote: > > From the attached photo you will see that I created in 'home' a folder > called 'LilyPondArea', and in that a folder called 'lilypond-2.24.2'. In the > former I placed the downloaded tar, and in the latter the unpacked files of > lilypond-2.24.2 (i.e. 'bin', etc)
There is a problem if downloaded with a browser, because MacOS marks all executables (unix programs) as unknown, and to fix them all one by one is a chore. So it is better to use the Terminal: Open a new Terminal window, type "pwd", it should show your home directory path. Then (only type what is after "% ": % cd LilyPondArea % curl -L "https://gitlab.com/lilypond/lilypond/-/releases/v2.24.2/downloads/lilypond-2.24.2-darwin-x86_64.tar.gz" --output lilypond-2.24.2.tar.gz % tar -xf lilypond-2.24.2-darwin-x86_64.tar.gz You don't have to type the full name "lilypond……": after a few letter, just type <tab> and the shell will complete. The link given to "curl" is what is listed on the page https://lilypond.org/download.html. The option -L means to redirect to the real link, and --output … is a name that you chose. It is simpler to use wget, but the one I have is from MacPorts. Then, for the LilyPond files, you might create a directory in the Documents folder, as if you have iCloud, it gets saved there. To use the LilyPond program from Terminal, use: % ~/LilyPondArea/lilypond-2.24.2/bin/lilypond file.ly or with other options such as --version or --help. To simplify, you might write a script in Terminal: % touch lilypond % open -t lilypond First command creates a file; the second opens in the text editor chosen for .txt files. One can also write: % open -a TextEdit lilypond Paste, save and close: export LC_CTYPE=en_US.UTF-8 export LANG=en_US.UTF-8 exec HOME/LilyPondArea/bin/lilypond "$@" Here, HOME is the "pwd" path you got above. Then change permissions, so that any can run it: % chmod a+x lilypond Then install it on your system: % sudo cp lilypond /usr/local/bin This requires your password to be written. But now when you want to run lilypond, instead type % lilypond file.ly