[Top][All Lists]

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

Re: Getting readline to work in scheme-sandbox

From: Michael Käppler
Subject: Re: Getting readline to work in scheme-sandbox
Date: Wed, 15 Jan 2020 09:24:41 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1

Ok, seems that guile-2.2-libs does not provide libguilereadline...

I think the remaining option is to build guile-1.8 from scratch.
First make sure that you have libreadline-dev installed, then, in your
home directory, do:

git clone -b branch_release-1-8 --single-branch guile-1.8
cd guile-1.8
./configure --disable-error-on-warning --prefix=/usr/local
make install

If you do not want to install your self-compiled guile-1.8 globally with
"make install" it should be also sufficient to
to and put the corresponding file from
in there.

Then try with again. Please report if it succeeds now.


Am 15.01.2020 um 00:05 schrieb Knute Snortum:
I'm not in a vanilla setup, so I changed the commands to: (just for posterity)

$ export 
$ strace -o readlinedebug.log

The log file is attached.

Knute Snortum
(via Gmail)

On Tue, Jan 14, 2020 at 8:47 AM Michael Käppler <address@hidden> wrote:
This is weird. Seems that strace does not recognize the shebang in the
lilypond script.
Could you please to try to execute the steps in the startup script directly?
I assume you used the vanilla lilypond installer and installed to your
home directory

export LD_LIBRARY_PATH="/home/knute/lilypond/usr/lib"
strace -o readlinedebug.log /home/knute/lilypond/usr/bin/lilypond

Am 14.01.2020 um 16:36 schrieb Knute Snortum:
It looks like I get an error in strace.  The sandbox is never executed:

execve("/home/knute/bin/lilypond", ["lilypond", ""],
0x7ffe4792c428 /* 53 vars */) = -1 ENOEXEC (Exec format error)
strace: exec: Exec format error
+++ exited with 1 +++

Knute Snortum
(via Gmail)

On Mon, Jan 13, 2020 at 10:59 PM Michael Käppler <address@hidden> wrote:
Hi Knute,
I'm currently working on this problem. A library called
libguilereadline, that comes with guile,
does provide the interface to the libreadline library. The version we
ship with our packages, however,
seems to be broken somehow.
There are some ways to get around this. Do you have
guile-2.2-libs installed, too?
If installing guile-2.2-libs does not help either, please send me the output

strace -o readlinedebug.log lilypond

where you type the mentioned commands for activating readline.


Am 14.01.2020 um 01:31 schrieb Knute Snortum:
I recently discovered the scheme-sandbox in LilyPond and I want to get
line editing to work.  In the comments say:

% 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.

I'm assuming that these are commands to type into the sandbox.  But
when I do this I get an error:

guile> (use-modules (ice-9 readline))
ERROR: readline is not provided in this Guile installation
ABORT: (misc-error)

When I search for installed packages at the Linux command line, I see this:

libreadline8/eoan,now 8.0-3 amd64 [installed,automatic]

Any idea why readline is not available?

My system is Ubuntu 19.10, Guile is 2.2 and LilyPond is 2.19.83.

Knute Snortum
(via Gmail)

reply via email to

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