Re: Running 2.23.7 on Linux

2022-03-28 Thread David Wright
On Mon 28 Mar 2022 at 21:10:03 (+0200), Lilypond-User wrote:

> Correct, the relocation doesn't follow symlinks, I've opened
> https://gitlab.com/lilypond/lilypond/-/issues/6314 For the time being,
> you'll need to create a wrapper shell script that just calls lilypond
> with its full path.

… or even an alias. (Debian.)

Cheers,
David.



Re: Running 2.23.7 on Linux

2022-03-28 Thread Jonas Hahnfeld via LilyPond user discussion
On Mon, 2022-03-28 at 21:14 +0200, Jean Abou Samra wrote:
> Le 28/03/2022 à 21:10, Jonas Hahnfeld via LilyPond user discussion a écrit :
> > Correct, the relocation doesn't follow symlinks, I've opened
> > https://gitlab.com/lilypond/lilypond/-/issues/6314 For the time being,
> > you'll need to create a wrapper shell script that just calls lilypond
> > with its full path.
> 
> Relatedly, I am seeing hardcoded paths apparently coming from
> your computer in the binaries. Is that expected?
> 
> $ ~/lilypond2.23.7/bin/lilypond scheme-sandbox
> [...]
> scheme@(#{ g102}#)> %load-path
> $1 = ("/home/jean/lilypond2.23.7/share/lilypond/2.23.7/scm" 
> "/home/jean/lilypond2.23.7/share/guile/2.2" 
> "/home/lily/lilypond-2.23.7/release/binaries/dependencies/install/guile-2.2.7/share/guile/2.2"
>  
> "/home/lily/lilypond-2.23.7/release/binaries/dependencies/install/guile-2.2.7/share/guile/site/2.2"
>  
> "/home/lily/lilypond-2.23.7/release/binaries/dependencies/install/guile-2.2.7/share/guile/site"
>  
> "/home/lily/lilypond-2.23.7/release/binaries/dependencies/install/guile-2.2.7/share/guile")

Yes, it's the place where I build the binaries in my VM. I think you
can partly see the same with the GUB binaries. Not for %load-path
though, where it actually includes /usr/share/guile/1.8 from the
system, which is arguably worse - including a non-existing path at
least doesn't do any harm. At some point, I'll maybe go through all
dependencies and teach them that they should forget about the place
where they were built / installed.

Jonas


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


Re: Running 2.23.7 on Linux

2022-03-28 Thread Jean Abou Samra

Le 28/03/2022 à 21:10, Jonas Hahnfeld via LilyPond user discussion a écrit :

Correct, the relocation doesn't follow symlinks, I've opened
https://gitlab.com/lilypond/lilypond/-/issues/6314 For the time being,
you'll need to create a wrapper shell script that just calls lilypond
with its full path.




Relatedly, I am seeing hardcoded paths apparently coming from
your computer in the binaries. Is that expected?

$ ~/lilypond2.23.7/bin/lilypond scheme-sandbox
[...]
scheme@(#{ g102}#)> %load-path
$1 = ("/home/jean/lilypond2.23.7/share/lilypond/2.23.7/scm" 
"/home/jean/lilypond2.23.7/share/guile/2.2" 
"/home/lily/lilypond-2.23.7/release/binaries/dependencies/install/guile-2.2.7/share/guile/2.2" 
"/home/lily/lilypond-2.23.7/release/binaries/dependencies/install/guile-2.2.7/share/guile/site/2.2" 
"/home/lily/lilypond-2.23.7/release/binaries/dependencies/install/guile-2.2.7/share/guile/site" 
"/home/lily/lilypond-2.23.7/release/binaries/dependencies/install/guile-2.2.7/share/guile")



Jean




Re: Running 2.23.7 on Linux

2022-03-28 Thread Jonas Hahnfeld via LilyPond user discussion
On Mon, 2022-03-28 at 16:29 +1100, Kevin Pye wrote:
> (OpenSUSE Leap 15.3 to be precise)
> 
> So I've downloaded 2.23.7 and untarred into ~/Software/lilypond-
> 2.23.7, created a symbolic link from ~/Software/lilypond-
> 2.23.7/bin/lilypond to ~/bin/lilypond, and get the following...
> 
> [...]
> 
> > ~/bin/lilypond x.ly 
> GNU LilyPond 2.23.7 (running Guile 2.2) 
> Uncaught exception: 
> Throw to key misc-error with args ("primitive-load-path" "Unable to
> find file ~S in load path" ("ice-9/boot-9") #f)Cannot exit gracefully
> when init is in progress; aborting. 
> Aborted (core dumped)

Correct, the relocation doesn't follow symlinks, I've opened
https://gitlab.com/lilypond/lilypond/-/issues/6314 For the time being,
you'll need to create a wrapper shell script that just calls lilypond
with its full path.

Jonas


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


Re: Running 2.23.7 on Linux

2022-03-28 Thread Knute Snortum
On Mon, Mar 28, 2022 at 6:55 AM Mats Bengtsson  wrote:
>
>
> On 2022-03-28 15:35, Carl Sorensen wrote:
>>
>>
>> I just tried doing a similar soft link in Ubuntu and I get exactly the same 
>> error message, so it's most likely not OS related.
>
>
> Just a wild guess.  Do you have ~/bin/lilypond in your path?
>
> Carl
>
> Yes, that's the soft link that I added in my previous attempt, but it doesn't 
> matter. If I remove the link from ~/bin/, instead add a link from 
> /tmp/lilypond and call it, I get the same error:
>
> > /tmp/lilypond
> GNU LilyPond 2.23.7 (running Guile 2.2)
> Uncaught exception:
> Throw to key misc-error with args ("primitive-load-path" "Unable to find file 
> ~S in load path" ("ice-9/boot-9") #f)Cannot exit gracefully when init is in 
> progress; aborting.
> Abort (core dumped)
>
> /Mats

I know it doesn't solve the symlink problem, but here is what my
~/bin/lilypond looks like, and it works fine:

###
#!/bin/bash

LY_HOME="${LY_HOME:-/home/knute/lilypond/lilypond-2.23.7/bin}"
$LY_HOME/lilypond $@
###

If I want another version of LilyPond to execute, I can issue the commands:

$ export LY_HOME=/home/knute/lilypond/lilypond-2.22.2/bin
$ lilypond --version

GNU LilyPond 2.22.2

--
Knute Snortum



Re: Running 2.23.7 on Linux

2022-03-28 Thread Mats Bengtsson

  
  


On 2022-03-28 15:35, Carl Sorensen
  wrote:


  
  

  

  I just tried doing a similar soft link in Ubuntu and I
get exactly the same error message, so it's most likely
not OS related.

  
  
  
  Just a wild guess.  Do you have ~/bin/lilypond in your
path?
  
  
  Carl

  

Yes, that's the soft link that I added in my previous attempt,
  but it doesn't matter. If I remove the link from ~/bin/, instead
  add a link from /tmp/lilypond and call it, I get the same error:
> /tmp/lilypond 
  GNU LilyPond 2.23.7 (running Guile 2.2) 
  Uncaught exception: 
  Throw to key misc-error with args ("primitive-load-path" "Unable
  to find file ~S in load path" ("ice-9/boot-9") #f)Cannot exit
  gracefully when init is in progress; aborting. 
  Abort (core dumped) 

    /Mats

  




Re: Running 2.23.7 on Linux

2022-03-28 Thread Carl Sorensen
On Mon, Mar 28, 2022 at 6:56 AM Mats Bengtsson 
wrote:

>
> On 2022-03-28 12:02, Jogchum Reitsma wrote:
>
> Op 28-03-2022 om 07:29 schreef Kevin Pye:
>
> (OpenSUSE Leap 15.3 to be precise)
>
> So I've downloaded 2.23.7 and untarred into ~/Software/lilypond-2.23.7,
> created a symbolic link from ~/Software/lilypond-2.23.7/bin/lilypond to
> ~/bin/lilypond, and get the following...
>
> > ~/bin/lilypond --version
> GNU LilyPond 2.23.7 (running Guile 2.2)
>
> Copyright (c) 1996--2022 by
> Han-Wen Nienhuys 
> Jan Nieuwenhuizen 
> and others.
>
> This program is free software.  It is covered by the GNU General Public
> License and you are welcome to change it and/or distribute copies of it
> under certain conditions.  Invoke as `lilypond --warranty' for more
> information.
>
> > ~/bin/lilypond x.ly
> GNU LilyPond 2.23.7 (running Guile 2.2)
> Uncaught exception:
> Throw to key misc-error with args ("primitive-load-path" "Unable to find
> file ~S in load path" ("ice-9/boot-9") #f)Cannot exit gracefully when init
> is in progress; aborting.
> Aborted (core dumped)
>
> (with the same result whether the file exists or not).
>
> However...
>
> > ~/Software/lilypond-2.23.7/bin/lilypond x.ly
> GNU LilyPond 2.23.7 (running Guile 2.2)
> warning: cannot find file: `x.ly'
> fatal error: failed files: "x.ly"
>
> So it works if run directly from the installation directory, but not via a
> symbolic link.
>
> Any ideas?
>
> Kevin.
>
> Hi Kevin,
>
> I would throw this question on the opensuse-support list., since it's more
> OS-related than lilypond specific,I would think.
>
> I don't have the expertise to tell what goes wrong here, but it could be
> something with relative paths, which are different in case one starts from
> another point in the file system.
>
> I'm on Opensuse Tumbleweed, and there the version of lilypond is kept
> reasonably actual.
>
> I just tried doing a similar soft link in Ubuntu and I get exactly the
> same error message, so it's most likely not OS related.
>

Just a wild guess.  Do you have ~/bin/lilypond in your path?

Carl


Re: Running 2.23.7 on Linux

2022-03-28 Thread Mats Bengtsson

  
  


On 2022-03-28 12:02, Jogchum Reitsma
  wrote:


  
  Op 28-03-2022 om 07:29 schreef Kevin
Pye:
  
  



(OpenSUSE Leap 15.3 to be precise)



So I've downloaded 2.23.7 and untarred into
  ~/Software/lilypond-2.23.7, created a symbolic link from
  ~/Software/lilypond-2.23.7/bin/lilypond to ~/bin/lilypond, and
  get the following...



>
~/bin/lilypond --version 
  GNU LilyPond 2.23.7 (running Guile 2.2) 
  
  Copyright (c) 1996--2022 by 
  Han-Wen Nienhuys 
  
  Jan Nieuwenhuizen 
  
  and others. 
  
  This program is free software.  It is covered by the GNU
  General Public 
  License and you are welcome to change it and/or distribute
  copies of it 
  under certain conditions.  Invoke as `lilypond --warranty'
  for more 
  information.


>
~/bin/lilypond x.ly 
  GNU LilyPond 2.23.7 (running Guile 2.2) 
  Uncaught exception: 
  Throw to key misc-error with args ("primitive-load-path"
  "Unable to find file ~S in load path" ("ice-9/boot-9")
  #f)Cannot exit gracefully when init is in progress;
  aborting. 
  Aborted (core dumped)


(with the same result whether the file
exists or not).



However...



>
~/Software/lilypond-2.23.7/bin/lilypond x.ly 
  GNU LilyPond 2.23.7 (running Guile 2.2) 
  warning: cannot find file: `x.ly' 
  fatal error: failed files: "x.ly"


So it works if run directly from the installation
  directory, but not via a symbolic link.



Any ideas?



Kevin.

  
  Hi Kevin,
  I would throw this question on the opensuse-support list.,
since it's more OS-related than lilypond specific,I would think.
  
  I don't have the expertise to tell what goes wrong here, but it
could be something with relative paths, which are different in
case one starts from another point in the file system.
  I'm on Opensuse Tumbleweed, and there the version of lilypond
is kept reasonably actual.
  

I just tried doing a similar soft link in Ubuntu and I get
  exactly the same error message, so it's most likely not OS
  related. 

    /Mats


  




Re: Running 2.23.7 on Linux

2022-03-28 Thread Jogchum Reitsma

Op 28-03-2022 om 07:29 schreef Kevin Pye:

(OpenSUSE Leap 15.3 to be precise)

So I've downloaded 2.23.7 and untarred into 
~/Software/lilypond-2.23.7, created a symbolic link from 
~/Software/lilypond-2.23.7/bin/lilypond to ~/bin/lilypond, and get the 
following...


> ~/bin/lilypond --version
GNU LilyPond 2.23.7 (running Guile 2.2)

Copyright (c) 1996--2022 by
Han-Wen Nienhuys 
Jan Nieuwenhuizen 
and others.

This program is free software.  It is covered by the GNU General Public
License and you are welcome to change it and/or distribute copies of it
under certain conditions.  Invoke as `lilypond --warranty' for more
information.

> ~/bin/lilypond x.ly
GNU LilyPond 2.23.7 (running Guile 2.2)
Uncaught exception:
Throw to key misc-error with args ("primitive-load-path" "Unable to 
find file ~S in load path" ("ice-9/boot-9") #f)Cannot exit gracefully 
when init is in progress; aborting.

Aborted (core dumped)

(with the same result whether the file exists or not).

However...

> ~/Software/lilypond-2.23.7/bin/lilypond x.ly
GNU LilyPond 2.23.7 (running Guile 2.2)
warning: cannot find file: `x.ly'
fatal error: failed files: "x.ly"

So it works if run directly from the installation directory, but not 
via a symbolic link.


Any ideas?

Kevin.


Hi Kevin,

I would throw this question on the opensuse-support list., since it's 
more OS-related than lilypond specific,I would think.


I don't have the expertise to tell what goes wrong here, but it could be 
something with relative paths, which are different in case one starts 
from another point in the file system.


I'm on Opensuse Tumbleweed, and there the version of lilypond is kept 
reasonably actual.


regards, Jogchum