< Back to IRCAM Forum

Lilypond and Big Sur install issue

and when I reload the workspace, the path is missing…

Last login: Mon Aug 30 16:37:52 on console
lotus@tv ~ % lilypond
GNU LilyPond 2.22.1
Utilisation : lilypond [OPTIONS]... FICHIER...

Composer la musique ou jouer en format MIDI à partir du FICHIER

LilyPond produit une jolie notation musicale
Pour plus d'informations, voir https://lilypond.org

Options :
  -f, --formats=FORMATs             produire FORMAT...
                                        Aussi comme options séparées :
      --pdf                         générer des fichiers PDF (par défaut)
      --svg                         générer des fichiers SVG
      --png                         générer des fichiers PNG
      --ps                          générer des fichiers PostScript
  -E, --eps                         générer des fichiers PostScript encapsulé
  -O, --pspdfopt=CLÉ               définit l'optimisation ps/pdf à CLÉ, à savoir
                                        « size » (par défaut), « TeX » ou «TeX-GS »
  -d, --define-default=SYM[=VAL]    affecte VAL (par défaut #t) à l'option Scheme SYM ;
                                        utiliser -dhelp pour avoir de l'aide.
  -e, --evaluate=EXPR               évaluation du code Scheme
  -h, --help                        visualiser cette aide et quitter
  -H, --header=CHAMP                écrire le champ d'entête CHAMP dans le
                                        fichier nommé RACINE.CHAMP
  -I, --include=RÉP                ajouter RÉPERTOIRE au chemin de recherche
  -i, --init=FICHIER                utiliser FICHIER comme
                                      fichier d'initialisation
  -j, --jail=USER,GROUP,CAGE,RÉP   chroot dans CAGE, devenir UTILISATEUR:GROUPE
                                        et cd dans RÉPERTOIRE
  -l, --loglevel=LOGLEVEL           affiche les informations selon le niveau de LOGLEVEL :
                                        NONE, ERROR, WARNING, BASIC,
                                        PROGRESS, INFO (défaut) ou DEBUG.
  -o, --output=FICHIER              écrit le résultat dans FICHIER (le suffixe
                                        sera ajouté) ou dans DOSSIER, auquel cas le
                                        nom du fichier serarepris du fichier source.
      --relocate                    ignoré(e)
  -s, --silent                      pas de progression, seulement les messages d'erreur
                                        (équivalent à --loglevel=ERROR)
  -v, --version                     affiche le numéro de version et quitte
  -V, --verbose                     état verbeux (équivalent à --loglevel=DEBUG)
  -w, --warranty                    affiche les notices de garantie et du droit d'auteur

Transmettez votre rapport de bogue en anglais à https://lilypond.org/bug-reports.html
  ou la <a href="https://lists.gnu.org/mailman/listinfo/lilypond-user-fr">liste francophone des utilisateurs</a>.

lotus@tv ~ %

Ok

One problem at a time:

can you please type this is a terminal:
echo $PATH

lotus@tv ~ % echo $PATH

/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

OM => :mac

ok all is good. I suspect that in bigsur there is no more bash compatibility,
Can you please do the ultimate test before fixing this issue (just to be sure where the problem lies):

which bash

Best
K

lotus@tv ~ % which bash

/bin/bash

Ok so the problem still lies in the path of the binary.
I am testing this on Catalina with a lilypond install from homebrew and all is working.
So please do try to fix the issue with the path.
question: when you define the path, do you click on apply + ok?
reopen the preferences and check it out if it is still there.

Try now evaluating om->lily. This should work.

If not please do call these functions (after laoding the library) and send me please the output:

Screenshot_2021-08-30_18-42-17

Best
K

Yes, it’s still there !

no… sorry

that ?

MIDI Setup:
  MIDI devices detected:
     UMC204HD 192k [INPUT]
     Gestionnaire IAC Bus 1 [INPUT]
     VMPK Output [INPUT]
     UMC204HD 192k [OUTPUT]
     Gestionnaire IAC Bus 1 [OUTPUT]
     VMPK Input [OUTPUT]
  MIDI-OUT port 0 => VMPK Input
  MIDI-OUT port 1 => VMPK Input
Audio Setup...
  Audio driver: CoreAudio
  Selected device: Loopback Audio
  Initializing audio channels (0x2)
====================
 OpenMusic v. 6.19.0.0                            
 r. 2021/05/19
 (c) IRCAM - Representations Musicales
 http://repmus.ircam.fr/openmusic/
 ====================

Loading workspace: 'Untitled' ...
Workspace loaded
Loading patch: /Users/lotus/Desktop/Untitled/elements/Patch 2.omp
Loading patch: /Users/lotus/Desktop/Untitled/elements/Patch.omp
OM > "Loading library omlily - v. 3.2"

;;;============================================================                                
;;               OMLily  
;;      author : Karim Haddad 
;;      RepMus - IRCAM
;;;============================================================

APPLYING PREFERENCES...
Audio Setup...
  Audio driver: CoreAudio
  Selected device: Loopback Audio
  Initializing audio channels (0x2)
APPLYING PREFERENCES...
Audio Setup...
  Audio driver: CoreAudio
  Selected device: Loopback Audio
  Initializing audio channels (0x2)
:: cd "/Users/lotus/Desktop/"; bash -l -c '"lilypond" "/Users/lotus/Desktop/trg"'
:: bash: lilypond: command not found
:: open "/Users/lotus/Desktop/trg.pdf"
:: The file /Users/lotus/Desktop/trg.pdf does not exist.
OM => #P"/Users/lotus/Desktop/trg.pdf"

Nope,

Here try this patch:

lily.omp (770 Bytes)

But first please do load the library.

By the way, which version of the library you are using ?

MIDI Setup:
  MIDI devices detected:
     UMC204HD 192k [INPUT]
     Gestionnaire IAC Bus 1 [INPUT]
     VMPK Output [INPUT]
     UMC204HD 192k [OUTPUT]
     Gestionnaire IAC Bus 1 [OUTPUT]
     VMPK Input [OUTPUT]
  MIDI-OUT port 0 => VMPK Input
  MIDI-OUT port 1 => VMPK Input
Audio Setup...
  Audio driver: CoreAudio
  Selected device: Loopback Audio
  Initializing audio channels (0x2)
====================
 OpenMusic v. 6.19.0.0                            
 r. 2021/05/19
 (c) IRCAM - Representations Musicales
 http://repmus.ircam.fr/openmusic/
 ====================

Loading workspace: 'Untitled' ...
Workspace loaded
OM > "Cannot make a lib out of a OM protected package!"
OM > "Loading library omlily - v. 3.2"

;;;============================================================                                
;;               OMLily  
;;      author : Karim Haddad 
;;      RepMus - IRCAM
;;;============================================================

APPLYING PREFERENCES...
Audio Setup...
  Audio driver: CoreAudio
  Selected device: Loopback Audio
  Initializing audio channels (0x2)
APPLYING PREFERENCES...
Audio Setup...
  Audio driver: CoreAudio
  Selected device: Loopback Audio
  Initializing audio channels (0x2)
APPLYING PREFERENCES...
Audio Setup...
  Audio driver: CoreAudio
  Selected device: Loopback Audio
  Initializing audio channels (0x2)
Loading patch: /Users/lotus/Desktop/Untitled/elements/lily.omp
OM => #P"NOT FOUND"

I use : Lilypond 2.22.1

best,

jerome

This cannot be the output of (pathname (lilypond?))
It should look something like this (here on linux):
Screenshot_2021-08-30_19-12-21

so the problem is here, I have :

OM => #P"NOT FOUND"

ok,

can you type in the terminal exactly this:
bash -l -c ‘which lilypond’

and send me the result. (don’t forget the ')

lotus@tv ~ % bash -l -c ‘which lilypond’

lilypond’: ‘which: command not found

try simply:

which lilypond

if command not found you might consider installing it:

https://ports.macports.org/port/debianutils/

Reboot and retry.
Sorry about all this fuss. Which used to be standard on Macosx…

lotus@tv ~ % which lilypond

/opt/local/bin/lilypond

I’ve rebooted several times…

but when I launch OM and omlily, I loose the path

ok:

  1. put the path in preferences.
  2. save
  3. save the workspace (cmd+s)
  4. without quitting OM send me please the preferences.lisp file you will find in your workspace folder.

I had that once…

image

preferences.lisp (3,7 Ko)

Very strange. om->lily doesn’t call any trh binary. By the way trh is not at all a know unix binary???

Its seems that your library’s code is messed up for some reason?

Can you download it again and replace it please?

Best
K

Yes, I’m going to start from the beginning, but I have big problems with this system installation, I’m even thinking of making a new machine… I have a lot of things too strange…

I’ve dowloaded omlily 3.2 and replace the library but I have the same behavior

thank you for your help,

Best,

Jerome

If you are talking about the /opt/local/bin/trh behavior, well yes there seems you have a problem with your install.