No readline in scheme-sandbox

classic Classic list List threaded Threaded
32 messages Options
12
Reply | Threaded
Open this post in threaded view
|

No readline in scheme-sandbox

David Sumbler
My ~/.guile file reads:

        (use-modules (ice-9 readline))
        (activate-readline)

When I run 'guile' from the command line, readline works fine.

But when I run 'lilypond scheme-sandbox' I get:

 GNU LilyPond 2.19.48
 Processing    
 `/usr/local/lilypond/usr/share/lilypond/current/ly/scheme-sandbox.ly'
 Parsing...
 /usr/local/lilypond/usr/share/lilypond/current/ly/scheme-
 sandbox.ly:3:2: error: GUILE signaled an error for the expression
 beginning here
 #
  (load-user-init)
 readline is not provided in this Guile installation

If I enter 'locate readline | grep guile' I get:

/usr/lib/libguilereadline-v-17.so
/usr/lib/libguilereadline-v-17.so.17
/usr/lib/libguilereadline-v-17.so.17.0.3
/usr/lib/x86_64-linux-gnu/libguilereadline-v-18.so
/usr/lib/x86_64-linux-gnu/libguilereadline-v-18.so.18
/usr/lib/x86_64-linux-gnu/libguilereadline-v-18.so.18.0.0
/usr/lib/x86_64-linux-gnu/guile/2.0/ccache/ice-9/readline.go
/usr/local/lilypond/usr/lib/libguilereadline-v-17.la
/usr/local/lilypond/usr/lib/libguilereadline-v-17.so
/usr/local/lilypond/usr/lib/libguilereadline-v-17.so.17
/usr/local/lilypond/usr/lib/libguilereadline-v-17.so.17.0.3
/usr/local/lilypond/usr/share/guile/1.8/ice-9/readline.scm
/usr/share/guile/1.8/ice-9/readline.scm
/usr/share/guile/2.0/ice-9/readline.scm

I am running lilypond v.2.19.48, and the executable is
/usr/local/lilypond/usr/bin/lilypond .

Can anyone explain why readline isn't working in scheme-sandbox?

David

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: No readline in scheme-sandbox

David Sumbler
On Sun, 2016-10-16 at 14:28 +0100, David Sumbler wrote:

> My ~/.guile file reads:
>
> (use-modules (ice-9 readline))
> (activate-readline)
>
> When I run 'guile' from the command line, readline works fine.
>
> But when I run 'lilypond scheme-sandbox' I get:
>
>  GNU LilyPond 2.19.48
>  Processing     
>  `/usr/local/lilypond/usr/share/lilypond/current/ly/scheme-
> sandbox.ly'
>  Parsing...
>  /usr/local/lilypond/usr/share/lilypond/current/ly/scheme-
>  sandbox.ly:3:2: error: GUILE signaled an error for the expression
>  beginning here
>  #
>   (load-user-init)
>  readline is not provided in this Guile installation
>
> If I enter 'locate readline | grep guile' I get:
>
> /usr/lib/libguilereadline-v-17.so
> /usr/lib/libguilereadline-v-17.so.17
> /usr/lib/libguilereadline-v-17.so.17.0.3
> /usr/lib/x86_64-linux-gnu/libguilereadline-v-18.so
> /usr/lib/x86_64-linux-gnu/libguilereadline-v-18.so.18
> /usr/lib/x86_64-linux-gnu/libguilereadline-v-18.so.18.0.0
> /usr/lib/x86_64-linux-gnu/guile/2.0/ccache/ice-9/readline.go
> /usr/local/lilypond/usr/lib/libguilereadline-v-17.la
> /usr/local/lilypond/usr/lib/libguilereadline-v-17.so
> /usr/local/lilypond/usr/lib/libguilereadline-v-17.so.17
> /usr/local/lilypond/usr/lib/libguilereadline-v-17.so.17.0.3
> /usr/local/lilypond/usr/share/guile/1.8/ice-9/readline.scm
> /usr/share/guile/1.8/ice-9/readline.scm
> /usr/share/guile/2.0/ice-9/readline.scm
>
> I am running lilypond v.2.19.48, and the executable is
> /usr/local/lilypond/usr/bin/lilypond .
>
> Can anyone explain why readline isn't working in scheme-sandbox?
>
> David

Further to the above, I find that if I type

/usr/local/lilypond/usr/bin/guile

then readline works just fine.  But not when guile is invoked with

lilypond scheme-sandbox

David

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: No readline in scheme-sandbox

David Kastrup
David Sumbler <[hidden email]> writes:

> Further to the above, I find that if I type
>
> /usr/local/lilypond/usr/bin/guile
>
> then readline works just fine.

Guile 2.0

>  But not when guile is invoked with
>
> lilypond scheme-sandbox

Guile 1.8

--
David Kastrup

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: No readline in scheme-sandbox

David Sumbler
On Sun, 2016-10-16 at 21:19 +0200, David Kastrup wrote:

> David Sumbler <[hidden email]> writes:
>
> >
> > Further to the above, I find that if I type
> >
> > /usr/local/lilypond/usr/bin/guile
> >
> > then readline works just fine.
> Guile 2.0
>
> >
> >  But not when guile is invoked with
> >
> > lilypond scheme-sandbox
> Guile 1.8

Sorry, this hasn't helped me.

True, if I type 'guile' it runs /usr/bin/guile-2.0, but if I type
/usr/bin/guile-1.8 readline also works.

Presumably when I type 'lilypond scheme-sandbox' it runs the guile at
/usr/local/lilypond/usr/bin/guile, rather than the one in /usr/bin/.
 As Lilypond seems to have readline files in
/usr/local/lilypond/usr/lib/ and
/usr/local/lilypond/usr/share/guile/1.8/ice-9/
I would have expected readline to work.  Why are the files there if
they can't be used?

I'm guessing now - do these perhaps belong to an earlier version of
Lilypond, and have not been removed when I do 'uninstall-lilypond'?
 And has readline now been removed from the guile that comes with
Lilypond?

And if so, why?  And if not, I'm back to my original question: why
isn't readline loading?

David

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: No readline in scheme-sandbox

David Kastrup
David Sumbler <[hidden email]> writes:

> On Sun, 2016-10-16 at 21:19 +0200, David Kastrup wrote:
>> David Sumbler <[hidden email]> writes:
>>
>> >
>> > Further to the above, I find that if I type
>> >
>> > /usr/local/lilypond/usr/bin/guile
>> >
>> > then readline works just fine.
>> Guile 2.0
>>
>> >
>> >  But not when guile is invoked with
>> >
>> > lilypond scheme-sandbox
>> Guile 1.8
>
> Sorry, this hasn't helped me.
>
> True, if I type 'guile' it runs /usr/bin/guile-2.0, but if I type
> /usr/bin/guile-1.8 readline also works.

That's the system installation of Guile, not the one used in LilyPond.

> Presumably when I type 'lilypond scheme-sandbox' it runs the guile at
> /usr/local/lilypond/usr/bin/guile, rather than the one in /usr/bin/.

LilyPond doesn't run any Guile executable.  It just loads the Guile REPL
and runs it in LilyPond as LilyPond is linked with libguile.

>  As Lilypond seems to have readline files in
> /usr/local/lilypond/usr/lib/ and
> /usr/local/lilypond/usr/share/guile/1.8/ice-9/
> I would have expected readline to work.  Why are the files there if
> they can't be used?

Probably you don't have the necessary libraries installed.  Wrong
architecture?  Is your LilyPond a 64bit version?

--
David Kastrup

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: No readline in scheme-sandbox

David Sumbler
On Sun, 2016-10-16 at 23:09 +0200, David Kastrup wrote:

>
> David Sumbler <[hidden email]> writes:
>
> >
> > On Sun, 2016-10-16 at 21:19 +0200, David Kastrup wrote:
> > >
> > >
> > > David Sumbler <[hidden email]> writes:
> > >
> > > >
> > > >
> > > >
> > > > Further to the above, I find that if I type
> > > >
> > > > /usr/local/lilypond/usr/bin/guile
> > > >
> > > > then readline works just fine.
> > > Guile 2.0
> > >
> > > >
> > > >
> > > >
> > > >  But not when guile is invoked with
> > > >
> > > > lilypond scheme-sandbox
> > > Guile 1.8
> > Sorry, this hasn't helped me.
> >
> > True, if I type 'guile' it runs /usr/bin/guile-2.0, but if I type
> > /usr/bin/guile-1.8 readline also works.
> That's the system installation of Guile, not the one used in
> LilyPond.
>
> >
> >
> > Presumably when I type 'lilypond scheme-sandbox' it runs the guile
> > at
> > /usr/local/lilypond/usr/bin/guile, rather than the one in
> > /usr/bin/.
> LilyPond doesn't run any Guile executable.  It just loads the Guile
> REPL
> and runs it in LilyPond as LilyPond is linked with libguile.
I don't quite understand that, but may be it's not important for me to
understand.

>
> >
> >  As Lilypond seems to have readline files in
> > /usr/local/lilypond/usr/lib/ and
> > /usr/local/lilypond/usr/share/guile/1.8/ice-9/
> > I would have expected readline to work.  Why are the files there if
> > they can't be used?
> Probably you don't have the necessary libraries installed.  Wrong
> architecture?  Is your LilyPond a 64bit version?
Yes, I'm running the 64-bit version of Lilypond 2.19.40.

David

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: No readline in scheme-sandbox

David Sumbler
On Mon, 2016-10-17 at 09:02 +0100, David Sumbler wrote:

> On Sun, 2016-10-16 at 23:09 +0200, David Kastrup wrote:
> >
> > David Sumbler <[hidden email]> writes:
> > >
> > > On Sun, 2016-10-16 at 21:19 +0200, David Kastrup wrote:
> > > >
> > > > David Sumbler <[hidden email]> writes:
> > > > >
> > > > > Further to the above, I find that if I type
> > > > >
> > > > > /usr/local/lilypond/usr/bin/guile
> > > > >
> > > > > then readline works just fine.
> > > > Guile 2.0
> > > >
> > > > >
> > > > >  But not when guile is invoked with
> > > > >
> > > > > lilypond scheme-sandbox
> > > > Guile 1.8
> > > Sorry, this hasn't helped me.
> > >
> > > True, if I type 'guile' it runs /usr/bin/guile-2.0, but if I type
> > > /usr/bin/guile-1.8 readline also works.
> > That's the system installation of Guile, not the one used in
> > LilyPond.
> >
> > >
> > > Presumably when I type 'lilypond scheme-sandbox' it runs the
> > > guile at
> > > /usr/local/lilypond/usr/bin/guile, rather than the one in
> > > /usr/bin/.
> > LilyPond doesn't run any Guile executable.  It just loads the Guile
> > REPL and runs it in LilyPond as LilyPond is linked with libguile.
> I don't quite understand that, but may be it's not important for me
> to understand.
> > >
> > >
> > >  As Lilypond seems to have readline files in
> > > /usr/local/lilypond/usr/lib/ and
> > > /usr/local/lilypond/usr/share/guile/1.8/ice-9/
> > > I would have expected readline to work.  Why are the files there
> > > if
> > > they can't be used?
> > Probably you don't have the necessary libraries installed.  Wrong
> > architecture?  Is your LilyPond a 64bit version?
> Yes, I'm running the 64-bit version of Lilypond 2.19.40.
>
> David

Given that, on my 64-bit Linux system, I have Guile 1.8 installed
complete with readline, I'd be very grateful if somebody could explain
to me how I can get readline to load when I type 'lilypond scheme-
sandbox' with Lilypond v.2.19.40 .

David


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: No readline in scheme-sandbox

David Kastrup
David Sumbler <[hidden email]> writes:

> Given that, on my 64-bit Linux system, I have Guile 1.8 installed
> complete with readline, I'd be very grateful if somebody could explain
> to me how I can get readline to load when I type 'lilypond scheme-
> sandbox' with Lilypond v.2.19.40 .

Did you compile LilyPond yourself?

--
David Kastrup

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: No readline in scheme-sandbox

David Sumbler
On Wed, 2016-10-19 at 11:34 +0200, David Kastrup wrote:
> David Sumbler <[hidden email]> writes:
>
> >
> > Given that, on my 64-bit Linux system, I have Guile 1.8 installed
> > complete with readline, I'd be very grateful if somebody could
> > explain
> > to me how I can get readline to load when I type 'lilypond scheme-
> > sandbox' with Lilypond v.2.19.40 .
> Did you compile LilyPond yourself?

(There is an error in my previous email: I have Lilypond v.2.19.48)

I downloaded lilypond-2.19.48-1.linux-64.sh from http://lilypond.org/de
velopment.html and then ran

sudo sh ./lilypond-2.19.48-1.linux-64.sh --doc

David

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: No readline in scheme-sandbox

David Sumbler
On Wed, 2016-10-19 at 13:59 +0100, David Sumbler wrote:

> On Wed, 2016-10-19 at 11:34 +0200, David Kastrup wrote:
> >
> > David Sumbler <[hidden email]> writes:
> >
> > >
> > >
> > > Given that, on my 64-bit Linux system, I have Guile 1.8 installed
> > > complete with readline, I'd be very grateful if somebody could
> > > explain
> > > to me how I can get readline to load when I type 'lilypond
> > > scheme-
> > > sandbox' with Lilypond v.2.19.40 .
> > Did you compile LilyPond yourself?
> (There is an error in my previous email: I have Lilypond v.2.19.48)
>
> I downloaded lilypond-2.19.48-1.linux-64.sh from http://lilypond.org/
> de
> velopment.html and then ran
>
> sudo sh ./lilypond-2.19.48-1.linux-64.sh --doc
>
> David

Sorry to keep banging on about this, but I can't help feeling that
somebody must know the answer!

My .guile file reads:

(use-modules (ice-9 readline))
(activate-readline) 

I find the following:

1)

If I run 'lilypond scheme-sandbox' I get a message saying:

/usr/local/lilypond/usr/share/lilypond/current/ly/scheme-
sandbox.ly:3:2: error: GUILE signaled an error for the expression
beginning here
#
 (load-user-init)
readline is not provided in this Guile installation

In 'top' I can see that the actual running command is
'/usr/local/lilypond/usr/bin/lilypond scheme-sandbox'.

2)

If I run '/usr/local/lilypond/usr/bin/lilypond scheme-sandbox' directly
from the command line, I get guile complete with readline.


This doesn't actually matter too much now that I have discovered that
the longer form of the command works as expected, even though the
shorter one doesn't.

But how is it that I get different results from two command line
entries which end up running the same actual command?

David

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: No readline in scheme-sandbox

Thomas Morley-2
2016-10-21 17:00 GMT+02:00 David Sumbler <[hidden email]>:

> On Wed, 2016-10-19 at 13:59 +0100, David Sumbler wrote:
>> On Wed, 2016-10-19 at 11:34 +0200, David Kastrup wrote:
>> >
>> > David Sumbler <[hidden email]> writes:
>> >
>> > >
>> > >
>> > > Given that, on my 64-bit Linux system, I have Guile 1.8 installed
>> > > complete with readline, I'd be very grateful if somebody could
>> > > explain
>> > > to me how I can get readline to load when I type 'lilypond
>> > > scheme-
>> > > sandbox' with Lilypond v.2.19.40 .
>> > Did you compile LilyPond yourself?
>> (There is an error in my previous email: I have Lilypond v.2.19.48)
>>
>> I downloaded lilypond-2.19.48-1.linux-64.sh from http://lilypond.org/
>> de
>> velopment.html and then ran
>>
>> sudo sh ./lilypond-2.19.48-1.linux-64.sh --doc
>>
>> David
>
> Sorry to keep banging on about this, but I can't help feeling that
> somebody must know the answer!
>
> My .guile file reads:
>
> (use-modules (ice-9 readline))
> (activate-readline)
>
> I find the following:
>
> 1)
>
> If I run 'lilypond scheme-sandbox' I get a message saying:
>
> /usr/local/lilypond/usr/share/lilypond/current/ly/scheme-
> sandbox.ly:3:2: error: GUILE signaled an error for the expression
> beginning here
> #
>  (load-user-init)
> readline is not provided in this Guile installation
>
> In 'top' I can see that the actual running command is
> '/usr/local/lilypond/usr/bin/lilypond scheme-sandbox'.
>
> 2)
>
> If I run '/usr/local/lilypond/usr/bin/lilypond scheme-sandbox' directly
> from the command line, I get guile complete with readline.
>
>
> This doesn't actually matter too much now that I have discovered that
> the longer form of the command works as expected, even though the
> shorter one doesn't.
>
> But how is it that I get different results from two command line
> entries which end up running the same actual command?
>
> David
>
> _______________________________________________
> lilypond-user mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/lilypond-user

Hi David,

I had a look in scheme-sandbox.ly. I quote the entire file:

%%%% file begin

\version "2.16.0"

#(load-user-init)

% This loads the user's .guile file for interactive sessions.
% One typical thing you might want to put there is
% (use-modules (ice-9 readline))
% (activate-readline)
% in order to activate command line editing for interactive sessions.
% You need libreadline support and the respective Guile module to be
% installed for that.  In Debian, for example, this is part of the
% guile-1.8-libs package.  Depending on your system and version, the
% requirements may be different.

#(newline)
#(scm-style-repl)

%%%% file end

So silly question: do you have the guile-1.8-libs package?

Cheers,
  Harm

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: No readline in scheme-sandbox

David Sumbler
On Fri, 2016-10-21 at 17:44 +0200, Thomas Morley wrote:

> 2016-10-21 17:00 GMT+02:00 David Sumbler <[hidden email]>:
> >
> > On Wed, 2016-10-19 at 13:59 +0100, David Sumbler wrote:
> > >
> > > On Wed, 2016-10-19 at 11:34 +0200, David Kastrup wrote:
> > > >
> > > >
> > > > David Sumbler <[hidden email]> writes:
> > > >
> > > > >
> > > > >
> > > > >
> > > > > Given that, on my 64-bit Linux system, I have Guile 1.8
> > > > > installed
> > > > > complete with readline, I'd be very grateful if somebody
> > > > > could
> > > > > explain
> > > > > to me how I can get readline to load when I type 'lilypond
> > > > > scheme-
> > > > > sandbox' with Lilypond v.2.19.40 .
> > > > Did you compile LilyPond yourself?
> > > (There is an error in my previous email: I have Lilypond
> > > v.2.19.48)
> > >
> > > I downloaded lilypond-2.19.48-1.linux-64.sh from http://lilypond.
> > > org/
> > > de
> > > velopment.html and then ran
> > >
> > > sudo sh ./lilypond-2.19.48-1.linux-64.sh --doc
> > >
> > > David
> > Sorry to keep banging on about this, but I can't help feeling that
> > somebody must know the answer!
> >
> > My .guile file reads:
> >
> > (use-modules (ice-9 readline))
> > (activate-readline)
> >
> > I find the following:
> >
> > 1)
> >
> > If I run 'lilypond scheme-sandbox' I get a message saying:
> >
> > /usr/local/lilypond/usr/share/lilypond/current/ly/scheme-
> > sandbox.ly:3:2: error: GUILE signaled an error for the expression
> > beginning here
> > #
> >  (load-user-init)
> > readline is not provided in this Guile installation
> >
> > In 'top' I can see that the actual running command is
> > '/usr/local/lilypond/usr/bin/lilypond scheme-sandbox'.
> >
> > 2)
> >
> > If I run '/usr/local/lilypond/usr/bin/lilypond scheme-sandbox'
> > directly
> > from the command line, I get guile complete with readline.
> >
> >
> > This doesn't actually matter too much now that I have discovered
> > that
> > the longer form of the command works as expected, even though the
> > shorter one doesn't.
> >
> > But how is it that I get different results from two command line
> > entries which end up running the same actual command?
> >
> > David
> >
> > _______________________________________________
> > lilypond-user mailing list
> > [hidden email]
> > https://lists.gnu.org/mailman/listinfo/lilypond-user
> Hi David,
>
> I had a look in scheme-sandbox.ly. I quote the entire file:
>
> %%%% file begin
>
> \version "2.16.0"
>
> #(load-user-init)
>
> % This loads the user's .guile file for interactive sessions.
> % One typical thing you might want to put there is
> % (use-modules (ice-9 readline))
> % (activate-readline)
> % in order to activate command line editing for interactive sessions.
> % You need libreadline support and the respective Guile module to be
> % installed for that.  In Debian, for example, this is part of the
> % guile-1.8-libs package.  Depending on your system and version, the
> % requirements may be different.
>
> #(newline)
> #(scm-style-repl)
>
> %%%% file end
>
> So silly question: do you have the guile-1.8-libs package?

Yes.  The output from 'aptitude search guile-1.8-libs' is:

i A guile-1.8-libs
p   guile-1.8-libs:i386

David


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: No readline in scheme-sandbox

Mark Knoop-4
At 17:11 on 21 Oct 2016, David Sumbler wrote:
>> > > > > Given that, on my 64-bit Linux system, I have Guile 1.8
                             ^^^^^^

>> > > I downloaded lilypond-2.19.48-1.linux-64.sh from http://lilypond.
                                             ^^

>Yes.  The output from 'aptitude search guile-1.8-libs' is:
>
>i A guile-1.8-libs
>p   guile-1.8-libs:i386
                    ^^^^

This may be your problem. Try installing the 64-bit libs.

--
Mark Knoop

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: No readline in scheme-sandbox

David Kastrup
Mark Knoop <[hidden email]> writes:

> At 17:11 on 21 Oct 2016, David Sumbler wrote:
>>> > > > > Given that, on my 64-bit Linux system, I have Guile 1.8
>                              ^^^^^^
>
>>> > > I downloaded lilypond-2.19.48-1.linux-64.sh from http://lilypond.
>                                              ^^
>
>>Yes.  The output from 'aptitude search guile-1.8-libs' is:
>>
>>i A guile-1.8-libs
>>p   guile-1.8-libs:i386
>                     ^^^^
>
> This may be your problem. Try installing the 64-bit libs.

sudo apt-get install guile-1.8-libs:amd64

But then he stated that the commandline Guile (which would definitely
use the system libs) had a working readline.  Maybe it's also 32bit?
Otherwise I'd be somewhat puzzled since for me (Ubuntu Yakkety)
Guile-1.8 is one of the few things that has no multilib support and
insists on only one architecture being installed.

For the record, I get

p   guile-1.8-libs                                                                   - Core Guile libraries                                                                      
i   guile-1.8-libs:amd64                                                             - Core Guile libraries                                                                      

with the above aptitude command.

--
David Kastrup

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: No readline in scheme-sandbox

David Sumbler
On Fri, 2016-10-21 at 18:56 +0200, David Kastrup wrote:

> Mark Knoop <[hidden email]> writes:
>
> >
> > At 17:11 on 21 Oct 2016, David Sumbler wrote:
> > >
> > > >
> > > > >
> > > > > >
> > > > > > >
> > > > > > > >
> > > > > > > > Given that, on my 64-bit Linux system, I have Guile 1.8
> >                              ^^^^^^
> >
> > >
> > > >
> > > > >
> > > > > >
> > > > > > I downloaded lilypond-2.19.48-1.linux-64.sh from http://lil
> > > > > > ypond.
> >                                              ^^
> >
> > >
> > > Yes.  The output from 'aptitude search guile-1.8-libs' is:
> > >
> > > i A guile-1.8-libs
> > > p   guile-1.8-libs:i386
> >                     ^^^^
> >
> > This may be your problem. Try installing the 64-bit libs.
> sudo apt-get install guile-1.8-libs:amd64
>
> But then he stated that the commandline Guile (which would definitely
> use the system libs) had a working readline.  Maybe it's also 32bit?
> Otherwise I'd be somewhat puzzled since for me (Ubuntu Yakkety)
> Guile-1.8 is one of the few things that has no multilib support and
> insists on only one architecture being installed.
>
> For the record, I get
>
> p   guile-1.8-
> libs                                                                 
>   - Core Guile
> libraries                                                            
>           
> i   guile-1.8-
> libs:amd64                                                           
>   - Core Guile
> libraries                                                            
>           
>
> with the above aptitude command.

I have just run 'sudo apt-get install guile-1.8-libs:amd64'
and I am told:

guile-1.8-libs is already the newest version (1.8.8+1-10ubuntu1).
guile-1.8-libs set to manually installed.

Reflecting the second line above, 'aptitude search guile-1.8-libs' now
gives me:

i   guile-1.8-libs
p   guile-1.8-libs:i386

(The 'A' flag no longer appears in the first line.)

Incidentally, the 'p' flag indicates that "no trace of the package
exists on the system", so it is not the 32-bit version that is causing
problems.

Behaviour of 'lilypond scheme-sandbox' has not changed as a result of
trying to reinstall guile-1.8-libs:amd64

I am running Ubuntu 16.04 (Xenial) and Lilypond 2.19.48 .

David



_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: No readline in scheme-sandbox

Thomas Morley-2
2016-10-21 19:34 GMT+02:00 David Sumbler <[hidden email]>:
> On Fri, 2016-10-21 at 18:56 +0200, David Kastrup wrote:

>> For the record, I get
>>
>> p   guile-1.8-
>> libs
>>   - Core Guile
>> libraries
>>
>> i   guile-1.8-
>> libs:amd64
>>   - Core Guile
>> libraries
>>
>>
>> with the above aptitude command

A strange observation:
I compiled a .ly-file containing nothing but

\version "2.19.44"
#(use-modules (ice-9 readline))

With lily compiled from git I get:

GNU LilyPond 2.19.50
Processing `atest-42.ly'
Parsing...
Success: compilation successfully completed


But with 2.19.44 from the released installer:
GNU LilyPond 2.19.44
Processing `atest-42.ly'
Parsing...
atest-42.ly:3:2: error: GUILE signaled an error for the expression
beginning here
#
 (use-modules (ice-9 readline))
readline is not provided in this Guile installation
fatal error: failed files: "atest-42.ly"

wtf ???


For the record, I'm on Ubuntu 16.04, 64-bit, lilypond-git and
lilypond-2.19.44 are both in my home-directory

aptitude search guile-1.8-libs

returns:

i A guile-1.8-libs
- Core Guile libraries
p   guile-1.8-libs:i386
- Core Guile libraries

Cheers,
  Harm

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: No readline in scheme-sandbox

David Kastrup
Thomas Morley <[hidden email]> writes:

> 2016-10-21 19:34 GMT+02:00 David Sumbler <[hidden email]>:
>> On Fri, 2016-10-21 at 18:56 +0200, David Kastrup wrote:
>
>>> For the record, I get
>>>
>>> p   guile-1.8-
>>> libs
>>>   - Core Guile
>>> libraries
>>>
>>> i   guile-1.8-
>>> libs:amd64
>>>   - Core Guile
>>> libraries
>>>
>>>
>>> with the above aptitude command
>
> But with 2.19.44 from the released installer:
> GNU LilyPond 2.19.44
> Processing `atest-42.ly'
> Parsing...
> atest-42.ly:3:2: error: GUILE signaled an error for the expression
> beginning here
> #
>  (use-modules (ice-9 readline))
> readline is not provided in this Guile installation
> fatal error: failed files: "atest-42.ly"
>
> wtf ???

Different version number?  Or missing support at compilation time?  What
does

ldd <path to LilyPond>

state here?

On my self-compiled LilyPond I see

dak@lola:/usr/local/tmp/lilypond$ ldd out/bin/lilypond
        linux-vdso.so.1 =>  (0xsomething)
        libguile.so.17 => /usr/lib/libguile.so.17 (0xsomething)
        libpangoft2-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 (0xsomething)
        libpango-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0 (0xsomething)
        libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0xsomething)
        libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0xsomething)
        libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0xsomething)
        libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0xsomething)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0xsomething)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0xsomething)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0xsomething)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0xsomething)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0xsomething)
        libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0xsomething)
        libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0xsomething)
        libltdl.so.7 => /usr/lib/x86_64-linux-gnu/libltdl.so.7 (0xsomething)
        /lib64/ld-linux-x86-64.so.2 (0xsomething)
        libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0xsomething)
        libthai.so.0 => /usr/lib/x86_64-linux-gnu/libthai.so.0 (0xsomething)
        libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0xsomething)
        libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0xsomething)
        libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0xsomething)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0xsomething)
        libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0xsomething)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0xsomething)
        libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0xsomething)
        libdatrie.so.1 => /usr/lib/x86_64-linux-gnu/libdatrie.so.1 (0xsomething)

What's the set of libraries in the precompiled binary?

--
David Kastrup

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: No readline in scheme-sandbox

Thomas Morley-2
2016-10-21 21:55 GMT+02:00 David Kastrup <[hidden email]>:

> Thomas Morley <[hidden email]> writes:
>
>> 2016-10-21 19:34 GMT+02:00 David Sumbler <[hidden email]>:
>>> On Fri, 2016-10-21 at 18:56 +0200, David Kastrup wrote:
>>
>>>> For the record, I get
>>>>
>>>> p   guile-1.8-
>>>> libs
>>>>   - Core Guile
>>>> libraries
>>>>
>>>> i   guile-1.8-
>>>> libs:amd64
>>>>   - Core Guile
>>>> libraries
>>>>
>>>>
>>>> with the above aptitude command
>>
>> But with 2.19.44 from the released installer:
>> GNU LilyPond 2.19.44
>> Processing `atest-42.ly'
>> Parsing...
>> atest-42.ly:3:2: error: GUILE signaled an error for the expression
>> beginning here
>> #
>>  (use-modules (ice-9 readline))
>> readline is not provided in this Guile installation
>> fatal error: failed files: "atest-42.ly"
>>
>> wtf ???
>
> Different version number?  Or missing support at compilation time?  What
> does
>
> ldd <path to LilyPond>
>
> state here?
>
> On my self-compiled LilyPond I see
>
> dak@lola:/usr/local/tmp/lilypond$ ldd out/bin/lilypond
>         linux-vdso.so.1 =>  (0xsomething)
>         libguile.so.17 => /usr/lib/libguile.so.17 (0xsomething)
>         libpangoft2-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 (0xsomething)
>         libpango-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0 (0xsomething)
>         libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0xsomething)
>         libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0xsomething)
>         libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0xsomething)
>         libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0xsomething)
>         libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0xsomething)
>         libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0xsomething)
>         libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0xsomething)
>         libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0xsomething)
>         libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0xsomething)
>         libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0xsomething)
>         libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0xsomething)
>         libltdl.so.7 => /usr/lib/x86_64-linux-gnu/libltdl.so.7 (0xsomething)
>         /lib64/ld-linux-x86-64.so.2 (0xsomething)
>         libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0xsomething)
>         libthai.so.0 => /usr/lib/x86_64-linux-gnu/libthai.so.0 (0xsomething)
>         libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0xsomething)
>         libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0xsomething)
>         libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0xsomething)
>         libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0xsomething)
>         libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0xsomething)
>         libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0xsomething)
>         libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0xsomething)
>         libdatrie.so.1 => /usr/lib/x86_64-linux-gnu/libdatrie.so.1 (0xsomething)
>

> What's the set of libraries in the precompiled binary?
>
> --
> David Kastrup

For 2.18.2 I get:

~$ ldd lilypond/usr/bin/lilypond
    linux-vdso.so.1 =>  (0x00007ffdbd724000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f5179631000)
    libguile.so.17 =>
/home/hermann/lilypond/usr/bin/../lib/libguile.so.17
(0x00007f517933c000)
    libgmp.so.3 => /home/hermann/lilypond/usr/bin/../lib/libgmp.so.3
(0x00007f51790fc000)
    libpangoft2-1.0.so.0 =>
/home/hermann/lilypond/usr/bin/../lib/libpangoft2-1.0.so.0
(0x00007f5178ecc000)
    libpango-1.0.so.0 =>
/home/hermann/lilypond/usr/bin/../lib/libpango-1.0.so.0
(0x00007f5178c82000)
    libfreetype.so.6 =>
/home/hermann/lilypond/usr/bin/../lib/libfreetype.so.6
(0x00007f51789fd000)
    libfontconfig.so.1 =>
/home/hermann/lilypond/usr/bin/../lib/libfontconfig.so.1
(0x00007f51787c9000)
    libgobject-2.0.so.0 =>
/home/hermann/lilypond/usr/bin/../lib/libgobject-2.0.so.0
(0x00007f5178584000)
    libgmodule-2.0.so.0 =>
/home/hermann/lilypond/usr/bin/../lib/libgmodule-2.0.so.0
(0x00007f5178380000)
    libglib-2.0.so.0 =>
/home/hermann/lilypond/usr/bin/../lib/libglib-2.0.so.0
(0x00007f51780a0000)
    libstdc++.so.6 =>
/home/hermann/lilypond/usr/bin/../lib/libstdc++.so.6
(0x00007f5177d5f000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f5177a55000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f517783f000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5177476000)
    /lib64/ld-linux-x86-64.so.2 (0x000055f8cca13000)
    libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f517723d000)
    libltdl.so.7 => /home/hermann/lilypond/usr/bin/../lib/libltdl.so.7
(0x00007f5177034000)
    libz.so.1 =>
/home/hermann/lilypond/usr/bin/../lib/../lib/libz.so.1
(0x00007f5176e1d000)
    libexpat.so.1 =>
/home/hermann/lilypond/usr/bin/../lib/../lib/libexpat.so.1
(0x00007f5176bfa000)

For self-compiled 2.19.50 I get:

hermann@kasten ~$ ldd lilypond-git/build/out/bin/lilypond
    linux-vdso.so.1 =>  (0x00007ffcf9749000)
    libguile.so.17 => /usr/lib/libguile.so.17 (0x00007f308989f000)
    libpangoft2-1.0.so.0 =>
/usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 (0x00007f3089689000)
    libpango-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0
(0x00007f308943c000)
    libgobject-2.0.so.0 =>
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f30891e9000)
    libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0
(0x00007f3088ed8000)
    libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1
(0x00007f3088c94000)
    libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6
(0x00007f30889ea000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(0x00007f3088668000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f308835e000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f3088148000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f3087f2b000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3087b61000)
    libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f30878e1000)
    libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f30876a9000)
    libltdl.so.7 => /usr/lib/x86_64-linux-gnu/libltdl.so.7 (0x00007f308749e000)
    /lib64/ld-linux-x86-64.so.2 (0x000055f402a22000)
    libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0
(0x00007f3087240000)
    libthai.so.0 => /usr/lib/x86_64-linux-gnu/libthai.so.0 (0x00007f3087037000)
    libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f3086e2e000)
    libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f3086bbe000)
    libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f3086995000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f308677a000)
    libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f3086555000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3086350000)
    libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3
(0x00007f308612b000)
    libdatrie.so.1 => /usr/lib/x86_64-linux-gnu/libdatrie.so.1
(0x00007f3085f23000)

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: No readline in scheme-sandbox

Thomas Morley-2
2016-10-21 22:06 GMT+02:00 Thomas Morley <[hidden email]>:
> 2016-10-21 21:55 GMT+02:00 David Kastrup <[hidden email]>:

>> Different version number?  Or missing support at compilation time?  What
>> does
>>
>> ldd <path to LilyPond>
>>
>> state here?
>>
>> On my self-compiled LilyPond I see
>>
>> dak@lola:/usr/local/tmp/lilypond$ ldd out/bin/lilypond
[...]
>
>> What's the set of libraries in the precompiled binary?
>>
>> --
>> David Kastrup
>
> For 2.18.2 I get:
>
[...]
> For self-compiled 2.19.50 I get:
[...]

Hard to read, thus same attached.

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user

ldd-output.txt (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: No readline in scheme-sandbox

David Kastrup
Thomas Morley <[hidden email]> writes:

> 2016-10-21 22:06 GMT+02:00 Thomas Morley <[hidden email]>:
>> 2016-10-21 21:55 GMT+02:00 David Kastrup <[hidden email]>:
>
>>> Different version number?  Or missing support at compilation time?  What
>>> does
>>>
>>> ldd <path to LilyPond>
>>>
>>> state here?
>>>
>>> On my self-compiled LilyPond I see
>>>
>>> dak@lola:/usr/local/tmp/lilypond$ ldd out/bin/lilypond
> [...]
>>
>>> What's the set of libraries in the precompiled binary?
>>>
>>> --
>>> David Kastrup
>>
>> For 2.18.2 I get:
>>
> [...]
>> For self-compiled 2.19.50 I get:
> [...]
>
> Hard to read, thus same attached.

It's probably sort of a red herring since the readline library is in
neither version.  Probably it depends on whether the readline
development headers were available (in a version matching the installed
libreadline on the target system) at the time Gub compiled libguile.

--
David Kastrup

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
12