lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with Frescobaldi and LilyPond


From: David Wright
Subject: Re: Problems with Frescobaldi and LilyPond
Date: Sun, 22 May 2022 22:32:55 -0500

On Sun 22 May 2022 at 19:27:08 (-0700), Ralph Palmer wrote:
> 
> I recently had to have my laptop completely re-setup with Ubuntu 22.04. The
> outfit that did it renamed my "Home" from rpalmer to ralph. They also
> managed to get rid of all my data and program files. I was able to do a
> full restore from my backup disk, but I couldn't get Frescobaldi or
> LilyPond to work.
> 
> I have installed Frescobaldi 3.2 and LilyPond 2.23.9. Frescobaldi seems to
> load correctly, and I can view a saved LilyPond file. However, when I try
> to compile, I get the following message :
> 
> %%%%%%%%%%
> Starting lilypond 2.23.6 [banishMisfortune.ly] . . .
> /home/ralph/bin/lilypond: 4: exec: /home/ralph/lilypond/usr/bin/lilypond:
> not found
> Exited with return code 127.
> %%%%%%%%%%%
> 
> When I run "lilypond" from the terminal, I get the same message (see the
> attached screen shot). I think I used to make adjustments to PATH:, but I
> can't even find PATH.
> 
> Should I try a complete uninstall of LilyPond and Frescobaldi and start
> from scratch?
> 
> I appreciate any help and/or advice you can give.

When you type lilypond at the command prompt, it's running "lilypond"
from your ~/bin directory, which suggests that that directory is in
your $PATH, very conventional.

However, it looks as if the script that it runs is for an old version,
2.23.6, and that version is the last to use the old installation
layout, originally created by running a shell script. It looks as if
you have a number of entries in your ~/bin file that resemble what's
in my own installation of 2.22.1, which I'll list here:

lrwxrwxrwx abc2ly
lrwxrwxrwx convert-ly
lrwxrwxrwx etf2ly
-rwxr-x--- lilypond
lrwxrwxrwx lilypond-book
lrwxrwxrwx lilypond-invoke-editor
-rwxr-x--- lilypond-wrapper.guile
-rwxr-x--- lilypond-wrapper.python3
lrwxrwxrwx midi2ly
lrwxrwxrwx mup2ly
lrwxrwxrwx musicxml2ly
-rwxr-x--- uninstall-lilypond

If you cat lilypond, it'll likely resemble:

$ cat lilypond
#!/bin/sh
me=`basename $0`
export LD_LIBRARY_PATH="/home/auser/lilypond/usr/lib"
exec "/home/auser/lilypond/usr/bin/$me" "$@"
$ 

I imagine what's happened is that your main LP installation,
which was at /home/R/lilypond/ (where R stands for rpalmer
or ralph), has been deleted (as you reported), but the scripts
in /home/R/bin/, which used to point to it, are still present.

The uninstall-lilypond script is designed to clean out all the
various parts of an installation, BUT if it's there, I wouldn't
run it until you've read the last few lines of it, to see what
it will remove. I'm going to guess that your new installation
of LP is in /home/R/lilypond-2.23.9/ and that the uninstall
script is going to try to remove files in /home/R/lilypond/,
in which case it should be ok so long as you haven't put lots
of your own goodies in the latter.

--

Once you've got that done, then Frescobaldi needs to be told where LP
is, which I'm guessing is, as I said, /home/R/lilypond-2.23.9/lilypond.
There's presumably a F~ menu item to do that.

You can check that location by running LP from the command line with:

$ /home/R/lilypond-2.23.9/lilypond

or

$ ~/lilypond-2.23.9/lilypond

If you get this far and it all works, then that just leaves the PATH
mystery to solve. If nothing after the -- works, then I would guess
that you might have downloaded lilypond 2.23.9, but not unpacked it.
(One doesn't "install" these new versions with a script.) Just post
again for help.

Cheers,
David.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]