Re: /usr/local/lilypond/usr/bin/lilypond: not found

2023-04-12 Thread JD Margulici
Jean, thank you so much for your explanations and insights. You've
convinced me that I'm better off building an image from an Ubuntu base. In
fact I had reached the same conclusion after reading that folks use Alpine
for its small size, yet a full install of Tex Live (which I also require)
is multiple gigabytes anyway.

Thank you also for confirming that the problem is likely due to the
glibc/musl discrepancy. I'm not going to try and fix this since I'll switch
to Ubuntu, but I'm glad to at least be able to understand why this
installation could not succeed out of the box.

JD

On Wed, Apr 12, 2023 at 4:34 PM Jean Abou Samra  wrote:

> Le mercredi 12 avril 2023 à 16:07 -0700, JD Margulici a écrit :
>
> Hi Jean,
>
> your diagnostic sounds promising. I successfully installed the Frescobaldi
> Flatpak, but still cannot launch lilypond from the command line. Any idea
> how to get there? I'm building a docker container and I don't have much
> experience with docker, so getting to the Frescobaldi GUI is not
> straightforward.
>
> I'm not sure how one would do this; however, if your goal is to create a
> Docker image, then installing the Flatpak isn't what you want. The main
> point of using Alpine Linux for Docker images is its small size (e.g., for
> a faster CI), but the Frescobaldi Flatpak includes tons of KDE stuff that
> weighs in the Gigabytes or so. If you can't find a way to run LilyPond on
> Alpine without Flatpak, you're better off using a glibc-based distro like
> Fedora or Ubuntu for your Docker image.
>
> I tried 2.24 by unpacking the .tar archive and it doesn't run.
> the lilypond command  returns:
> /bin/sh: lilypond: not found
> even though the directory in in my PATH
> and the lilypond-book command returns:
> /usr/bin/lilypond-2.24.1/bin/lilypond-book: exec: line 10:
> /usr/bin/lilypond-2.24.1/bin/../libexec/python3.10: not found
>
> Apparently, that is a typical error when trying to use a glibc-based
> executable on a musl-based system. Sources:
>
> https://pet2cattle.com/2022/11/alpine-not-found
>
>
> https://stackoverflow.com/questions/69607005/cannot-run-executables-with-alpine-and-busybox-docker-images
>
> Prior to unpacking I installed the gcompat alpine package but I can't tell
> whether that is sufficient to get around the glibc issue.
>
> I can't explain this, sorry.
>
> According to https://git.adelielinux.org/adelie/gcompat, it would be
> interesting to see the output of scanelf -i
> /.../lilypond-2.24.1/bin/lilypond.
>
> By the way, why are you putting the lilypond-2.24.1 inside /usr/bin/?
> That's just weird. /usr/bin/ is normally for executables only, not for
> directories with executables and other data, plus it's normally only
> touched by the system package manager, never by you (unlike
> /usr/local/bin/). I would just put the binaries into $HOME.
>
> Back to the topic, perhaps try asking on Alpine Linux forums. You could
> also evaluate if the size is important in your workflow (what are you
> trying to do with the image?) and perhaps change your choice of distro for
> a glibc-based one to save yourself the trouble.
>
> Best,
>
> Jean
>


Re: /usr/local/lilypond/usr/bin/lilypond: not found

2023-04-12 Thread Jean Abou Samra
Le mercredi 12 avril 2023 à 16:07 -0700, JD Margulici a écrit :
> Hi Jean,
> 
> your diagnostic sounds promising. I successfully installed the Frescobaldi 
> Flatpak, but still cannot launch lilypond from the command line. Any idea how 
> to get there? I'm building a docker container and I don't have much 
> experience with docker, so getting to the Frescobaldi GUI is not 
> straightforward.

I'm not sure how one would do this; however, if your goal is to create a Docker 
image, then installing the Flatpak isn't what you want. The main point of using 
Alpine Linux for Docker images is its small size (e.g., for a faster CI), but 
the Frescobaldi Flatpak includes tons of KDE stuff that weighs in the Gigabytes 
or so. If you can't find a way to run LilyPond on Alpine without Flatpak, 
you're better off using a glibc-based distro like Fedora or Ubuntu for your 
Docker image.

> I tried 2.24 by unpacking the .tar archive and it doesn't run.   
> the lilypond command  returns:  
> /bin/sh: lilypond: not found  
> even though the directory in in my PATH  
> and the lilypond-book command returns:  
> /usr/bin/lilypond-2.24.1/bin/lilypond-book: exec: line 10: 
> /usr/bin/lilypond-2.24.1/bin/../libexec/python3.10: not found

Apparently, that is a typical error when trying to use a glibc-based executable 
on a musl-based system. Sources:

[https://pet2cattle.com/2022/11/alpine-not-found](https://pet2cattle.com/2022/11/alpine-not-found)

[https://stackoverflow.com/questions/69607005/cannot-run-executables-with-alpine-and-busybox-docker-images](https://stackoverflow.com/questions/69607005/cannot-run-executables-with-alpine-and-busybox-docker-images)

> Prior to unpacking I installed the gcompat alpine package but I can't tell 
> whether that is sufficient to get around the glibc issue.


I can't explain this, sorry.

According to 
[https://git.adelielinux.org/adelie/gcompat](https://git.adelielinux.org/adelie/gcompat),
 it would be interesting to see the output of `scanelf -i 
/.../lilypond-2.24.1/bin/lilypond`.

By the way, why are you putting the `lilypond-2.24.1` inside `/usr/bin/`? 
That's just weird. `/usr/bin/` is normally for executables only, not for 
directories with executables and other data, plus it's normally only touched by 
the system package manager, never by you (unlike `/usr/local/bin/`). I would 
just put the binaries into `$HOME`.

Back to the topic, perhaps try asking on Alpine Linux forums. You could also 
evaluate if the size is important in your workflow (what are you trying to do 
with the image?) and perhaps change your choice of distro for a glibc-based one 
to save yourself the trouble.

Best,

Jean


signature.asc
Description: This is a digitally signed message part


Re: /usr/local/lilypond/usr/bin/lilypond: not found

2023-04-12 Thread JD Margulici
Hi Jean,

your diagnostic sounds promising. I successfully installed the Frescobaldi
Flatpak, but still cannot launch lilypond from the command line. Any idea
how to get there? I'm building a docker container and I don't have much
experience with docker, so getting to the Frescobaldi GUI is not
straightforward.

I tried 2.24 by unpacking the .tar archive and it doesn't run.
the lilypond command  returns:
/bin/sh: lilypond: not found
even though the directory in in my PATH
and the lilypond-book command returns:
/usr/bin/lilypond-2.24.1/bin/lilypond-book: exec: line 10:
/usr/bin/lilypond-2.24.1/bin/../libexec/python3.10: not found

Prior to unpacking I installed the gcompat alpine package but I can't tell
whether that is sufficient to get around the glibc issue.

Thank you!

JD

On Wed, Apr 12, 2023 at 12:26 AM Jean Abou Samra  wrote:

>
>
> Le 12 avr. 2023 à 02:26, JD Margulici  a écrit :
>
> 
> Hello, I am running the following commands to install Lilypond on Alpine
> Linux:
>
> wget https://lilypond.org/download/binaries/linux-64/$LILYPOND_INSTALLER
> sh $LILYPOND_INSTALLER
>
> with LILYPOND_INSTALLER set to lilypond-2.23.6-1.linux-64.sh
>
> The installation proceeds without glitches. However when I try to run
> Lilypond I get the following error message, which in spite of its apparent
> simplicity is rather cryptic since the file that is not found actually
> exists:
>
> /usr/local/bin/lilypond: exec: line 4:
> /usr/local/lilypond/usr/bin/lilypond: not found
>
> Similar error with lilypond-book:
>
> /usr/local/bin/lilypond-book: exec: line 6:
> /usr/local/lilypond/usr/bin/python3: not found
>
> I found a 15-year old post that reports the same error, but the
> resolution was not clear:
> https://lists.gnu.org/archive/html/lilypond-user/2009-01/msg00725.html
>
> Thank you for your help!
>
>
>
> Not sure about the error message, but I don’t think it could be that
> simple since the binaries we provide are for glibc-based systems, while
> Alpine uses musl. You could try the techniques here:
> https://wiki.alpinelinux.org/wiki/Running_glibc_programs
>
> There is a Frecobaldi Flatpak that includes LilyPond binaries.
>
> Also, 2.23.6 was a development version that has been replaced by the
> stable 2.24 release series. You should upgrade to 2.24 (for which we don’t
> provide sh installers but static binaries, though still dynamically linking
> to glibc).
>
>
>


Re: /usr/local/lilypond/usr/bin/lilypond: not found

2023-04-12 Thread JD Margulici
Thank you David. I tried a 32-bit version but the installation fails, so
that confirms that I am pulling the correct version. I also tried unpacking
the archive for the current release, but the executables fail as follows:

the lilypond command  returns:
/bin/sh: lilypond: not found
even though the directory in in my PATH
and the lilypond-book command returns:
/usr/bin/lilypond-2.24.1/bin/lilypond-book: exec: line 10:
/usr/bin/lilypond-2.24.1/bin/../libexec/python3.10: not found

Any thoughts?

On Tue, Apr 11, 2023 at 6:57 PM David Wright 
wrote:

> On Tue 11 Apr 2023 at 17:04:07 (-0700), JD Margulici wrote:
> > Hello, I am running the following commands to install Lilypond on Alpine
> > Linux:
> >
> > wget https://lilypond.org/download/binaries/linux-64/$LILYPOND_INSTALLER
> > sh $LILYPOND_INSTALLER
> >
> > with LILYPOND_INSTALLER set to lilypond-2.23.6-1.linux-64.sh
>
> … (a 64-bit version).
>
> > The installation proceeds without glitches. However when I try to run
> > Lilypond I get the following error message, which in spite of its
> apparent
> > simplicity is rather cryptic since the file that is not found actually
> > exists:
> >
> > /usr/local/bin/lilypond: exec: line 4:
> > /usr/local/lilypond/usr/bin/lilypond: not found
> >
> > Similar error with lilypond-book:
> >
> > /usr/local/bin/lilypond-book: exec: line 6:
> > /usr/local/lilypond/usr/bin/python3: not found
> >
> > I found a 15-year old post that reports the same error, but the
> > resolution was not clear:
> > https://lists.gnu.org/archive/html/lilypond-user/2009-01/msg00725.html
>
> Reading that post and its OP, it looks as if they installed a 32-bit
> version on a 64-bit OS. Can you check that you're not doing the opposite?
>
> My machine:
>
> $ uname -a
> Linux axis 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64
> GNU/Linux
> $
>  ↑   ↑↑
>
> Apropos the version that you're installing, 2.23.6. That's the last
> version of LP that comes as an insaller. More recent versions come
> as an archive which you just unpack somewhere. Does this change
> have anything to do with why you're running this old and otherwise
> unnotable version?
>
> Cheers,
> David.
>


Re: /usr/local/lilypond/usr/bin/lilypond: not found

2023-04-12 Thread JD Margulici
Thanks for the suggestions, William. I double checked the paths and
permissions, and I don't think the issue is there. I also tried directly
untaring the 2.24.1 files and that doesn't work either: the lilypond
command  returns:
/bin/sh: lilypond: not found
even though the directory in in my PATH
and the lilypond-book command returns:
/usr/bin/lilypond-2.24.1/bin/lilypond-book: exec: line 10:
/usr/bin/lilypond-2.24.1/bin/../libexec/python3.10: not found

I can install lilypond on Ubuntu by using apt-get, but for now I'm still
completely stuck on the Alpine distribution, and I don't understand these
errors.

On Tue, Apr 11, 2023 at 6:12 PM William Rehwinkel <
will...@williamrehwinkel.net> wrote:

> Dear JD,
>
> I'm not sure I can help much but will just write two things that come to
> mind.
>
> Did you double check that the path /usr/local/lilypond/usr/bin/lilypond
> exists, and is not just a slightly different path? When I install
> lilypond from
>
> https://gitlab.com/lilypond/lilypond/-/releases/v2.24.1/downloads/lilypond-2.24.1-darwin-x86_64.tar.gz
> the binary is usually found at /path/to/lilypond-x.x.x/bin/lilypond, not
> /<..>/lilypond/usr/bin/lilypond. Something doesn't seem right about the
> path to lilypond and python3, as if it is supposed to be
> /usr/bin/{lilypond,python3} without /usr/local/lilypond appended to it.
> But again I haven't tried installing in this way.
>
> My other guess is it is a sort of permissions error, like that directory
> or file is owned by a different user.
>
> Other than that, hopefully someone else will be of better help.
>
> -Will
>
> On 4/11/23 20:04, JD Margulici wrote:
> > Hello, I am running the following commands to install Lilypond on Alpine
> > Linux:
> >
> > wget https://lilypond.org/download/binaries/linux-64/$LILYPOND_INSTALLER
> > <https://lilypond.org/download/binaries/linux-64/$LILYPOND_INSTALLER>
> > sh $LILYPOND_INSTALLER
> >
> > with LILYPOND_INSTALLER set to lilypond-2.23.6-1.linux-64.sh
> > <http://lilypond-2.23.6-1.linux-64.sh>
> >
> > The installation proceeds without glitches. However when I try to run
> > Lilypond I get the following error message, which in spite of its
> > apparent simplicity is rather cryptic since the file that is not found
> > actually exists:
> >
> > /usr/local/bin/lilypond: exec: line 4:
> > /usr/local/lilypond/usr/bin/lilypond: not found
> >
> > Similar error with lilypond-book:
> >
> > /usr/local/bin/lilypond-book: exec: line 6:
> > /usr/local/lilypond/usr/bin/python3: not found
> >
> > I found a 15-year old post that reports the same error, but the
> > resolution was not clear:
> > https://lists.gnu.org/archive/html/lilypond-user/2009-01/msg00725.html
> > <https://lists.gnu.org/archive/html/lilypond-user/2009-01/msg00725.html>
> >
> > Thank you for your help!
> >
> > JD
>
> --
> + --- +
> |   William Rehwinkel - Oberlin College and   |
> |  Conservatory '24   |
> |will...@williamrehwinkel.net |
> | PGP key:|
> | https://ftp.williamrehwinkel.net/pubkey.txt |
> + --- +
>


Re: /usr/local/lilypond/usr/bin/lilypond: not found

2023-04-12 Thread Jean Abou Samra
Le 12 avr. 2023 à 02:26, JD Margulici  a écrit :Hello, I am running the following commands to install Lilypond on Alpine Linux:wget https://lilypond.org/download/binaries/linux-64/$LILYPOND_INSTALLERsh $LILYPOND_INSTALLERwith LILYPOND_INSTALLER set to lilypond-2.23.6-1.linux-64.shThe installation proceeds without glitches. However when I try to run Lilypond I get the following error message, which in spite of its apparent simplicity is rather cryptic since the file that is not found actually exists:/usr/local/bin/lilypond: exec: line 4: /usr/local/lilypond/usr/bin/lilypond: not foundSimilar error with lilypond-book:/usr/local/bin/lilypond-book: exec: line 6: /usr/local/lilypond/usr/bin/python3: not foundI found a 15-year old post that reports the same error, but the resolution was not clear: https://lists.gnu.org/archive/html/lilypond-user/2009-01/msg00725.htmlThank you for your help!
Not sure about the error message, but I don’t think it could be that simple since the binaries we provide are for glibc-based systems, while Alpine uses musl. You could try the techniques here: https://wiki.alpinelinux.org/wiki/Running_glibc_programsThere is a Frecobaldi Flatpak that includes LilyPond binaries.Also, 2.23.6 was a development version that has been replaced by the stable 2.24 release series. You should upgrade to 2.24 (for which we don’t provide sh installers but static binaries, though still dynamically linking to glibc).

Re: /usr/local/lilypond/usr/bin/lilypond: not found

2023-04-11 Thread David Wright
On Tue 11 Apr 2023 at 17:04:07 (-0700), JD Margulici wrote:
> Hello, I am running the following commands to install Lilypond on Alpine
> Linux:
> 
> wget https://lilypond.org/download/binaries/linux-64/$LILYPOND_INSTALLER
> sh $LILYPOND_INSTALLER
> 
> with LILYPOND_INSTALLER set to lilypond-2.23.6-1.linux-64.sh

… (a 64-bit version).

> The installation proceeds without glitches. However when I try to run
> Lilypond I get the following error message, which in spite of its apparent
> simplicity is rather cryptic since the file that is not found actually
> exists:
> 
> /usr/local/bin/lilypond: exec: line 4:
> /usr/local/lilypond/usr/bin/lilypond: not found
> 
> Similar error with lilypond-book:
> 
> /usr/local/bin/lilypond-book: exec: line 6:
> /usr/local/lilypond/usr/bin/python3: not found
> 
> I found a 15-year old post that reports the same error, but the
> resolution was not clear:
> https://lists.gnu.org/archive/html/lilypond-user/2009-01/msg00725.html

Reading that post and its OP, it looks as if they installed a 32-bit
version on a 64-bit OS. Can you check that you're not doing the opposite?

My machine:

$ uname -a
Linux axis 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 
GNU/Linux
$ 
 ↑   ↑↑

Apropos the version that you're installing, 2.23.6. That's the last
version of LP that comes as an insaller. More recent versions come
as an archive which you just unpack somewhere. Does this change
have anything to do with why you're running this old and otherwise
unnotable version?

Cheers,
David.



Re: /usr/local/lilypond/usr/bin/lilypond: not found

2023-04-11 Thread William Rehwinkel via LilyPond user discussion

Dear JD,

I'm not sure I can help much but will just write two things that come to 
mind.


Did you double check that the path /usr/local/lilypond/usr/bin/lilypond 
exists, and is not just a slightly different path? When I install 
lilypond from 
https://gitlab.com/lilypond/lilypond/-/releases/v2.24.1/downloads/lilypond-2.24.1-darwin-x86_64.tar.gz 
the binary is usually found at /path/to/lilypond-x.x.x/bin/lilypond, not 
/<..>/lilypond/usr/bin/lilypond. Something doesn't seem right about the 
path to lilypond and python3, as if it is supposed to be 
/usr/bin/{lilypond,python3} without /usr/local/lilypond appended to it. 
But again I haven't tried installing in this way.


My other guess is it is a sort of permissions error, like that directory 
or file is owned by a different user.


Other than that, hopefully someone else will be of better help.

-Will

On 4/11/23 20:04, JD Margulici wrote:
Hello, I am running the following commands to install Lilypond on Alpine 
Linux:


wget https://lilypond.org/download/binaries/linux-64/$LILYPOND_INSTALLER 
<https://lilypond.org/download/binaries/linux-64/$LILYPOND_INSTALLER>

sh $LILYPOND_INSTALLER

with LILYPOND_INSTALLER set to lilypond-2.23.6-1.linux-64.sh 
<http://lilypond-2.23.6-1.linux-64.sh>


The installation proceeds without glitches. However when I try to run 
Lilypond I get the following error message, which in spite of its 
apparent simplicity is rather cryptic since the file that is not found 
actually exists:


/usr/local/bin/lilypond: exec: line 4: 
/usr/local/lilypond/usr/bin/lilypond: not found


Similar error with lilypond-book:

/usr/local/bin/lilypond-book: exec: line 6: 
/usr/local/lilypond/usr/bin/python3: not found


I found a 15-year old post that reports the same error, but the 
resolution was not clear: 
https://lists.gnu.org/archive/html/lilypond-user/2009-01/msg00725.html 
<https://lists.gnu.org/archive/html/lilypond-user/2009-01/msg00725.html>


Thank you for your help!

JD


--
+ --- +
|   William Rehwinkel - Oberlin College and   |
|  Conservatory '24   |
|will...@williamrehwinkel.net |
| PGP key:|
| https://ftp.williamrehwinkel.net/pubkey.txt |
+ --- +


OpenPGP_signature
Description: OpenPGP digital signature


/usr/local/lilypond/usr/bin/lilypond: not found

2023-04-11 Thread JD Margulici
Hello, I am running the following commands to install Lilypond on Alpine
Linux:

wget https://lilypond.org/download/binaries/linux-64/$LILYPOND_INSTALLER
sh $LILYPOND_INSTALLER

with LILYPOND_INSTALLER set to lilypond-2.23.6-1.linux-64.sh

The installation proceeds without glitches. However when I try to run
Lilypond I get the following error message, which in spite of its apparent
simplicity is rather cryptic since the file that is not found actually
exists:

/usr/local/bin/lilypond: exec: line 4:
/usr/local/lilypond/usr/bin/lilypond: not found

Similar error with lilypond-book:

/usr/local/bin/lilypond-book: exec: line 6:
/usr/local/lilypond/usr/bin/python3: not found

I found a 15-year old post that reports the same error, but the
resolution was not clear:
https://lists.gnu.org/archive/html/lilypond-user/2009-01/msg00725.html

Thank you for your help!

JD