Re: No readline in scheme-sandbox
On Sat 22 Oct 2016 at 11:27:41 (+0200), Thomas Morley wrote: > 2016-10-22 11:13 GMT+02:00 David Kastrup : > > Thomas Morley writes: > > > >> 2016-10-22 10:12 GMT+02:00 David Kastrup : > >>> Thomas Morley writes: > >>> > The first hit reads in sourcefiles/guile.changelog: > > guile (1.8.1-2) unstable; urgency=low > > * Add readline as build dependency, libreadline8 as dependency for > libguile17 (thanks Ted Anderson). > * Remove /etc/hints. > * Remove curr from hints. > > -- Jan Nieuwenhuizen Tue, 31 Oct 2006 00:47:35 +0100 > > No idea whether it's important, it's far beyond my depth. > >>> > >>> That would point to readline support being compiled in. libreadline8 > >>> would likely be the current one. > >>> > >>> At any rate, David stated that calling the lilypond executable with full > >>> path left him with working readline support. > >>> > >>> Does > >>> > >>> which lilypond > >>> > >>> agree that the version called without explicit path is the same as with > >>> path? If so, something in command line processing would appear to make > >>> use of the 0th argument for finding libraries. That would warrant more > >>> examination. > >>> > >>> -- > >>> David Kastrup > >> > >> which lilypond > >> returns in my case: > >> /home/hermann/bin/lilypond > >> which is the script for 2.18.2 I mentioned in my previous post. > > > > David stated: > > > > 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. > > > > > > which sounds like he is _not_ running the wrapper script when stuff > > works but rather the executable without the wrapper. So it would appear > > that what the wrapper does happens to interfere with finding the system > > readline library while LilyPond presumably does not provide one of its > > own. Who is the main author of that wrapper? Maybe he has an idea? > > > > -- > > David Kastrup > > The entire (unchanged) wrapper script reads: > > #!/bin/sh > me=`basename $0` > export LD_LIBRARY_PATH="/home/hermann/lilypond/usr/lib" > exec "/home/hermann/lilypond/usr/bin/$me" "$@" > > Commenting the line "export ..." works, though I can't imagine the > consequences. > No idea who wrote the script, though. Presumably whoever built /home/hermann/lilypond/usr/bin/* wanted them to link to the particular set of libraries which they provided under /home/hermann/lilypond/usr/lib which also came in the installation file. If you export LD_LIBRARY_PATH="/home/hermann/lilypond/usr/bin" instead, then you just prevent those libraries from being found because they're not under /home/hermann/lilypond/usr/bin. Not setting it will have the same effect (except in the pathological case where someone has LD_LIBRARY_PATH set globally, a Bad Thing). Cheers, David. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
2016-10-22 11:13 GMT+02:00 David Kastrup : > Thomas Morley writes: > >> 2016-10-22 10:12 GMT+02:00 David Kastrup : >>> Thomas Morley writes: >>> The first hit reads in sourcefiles/guile.changelog: guile (1.8.1-2) unstable; urgency=low * Add readline as build dependency, libreadline8 as dependency for libguile17 (thanks Ted Anderson). * Remove /etc/hints. * Remove curr from hints. -- Jan Nieuwenhuizen Tue, 31 Oct 2006 00:47:35 +0100 No idea whether it's important, it's far beyond my depth. >>> >>> That would point to readline support being compiled in. libreadline8 >>> would likely be the current one. >>> >>> At any rate, David stated that calling the lilypond executable with full >>> path left him with working readline support. >>> >>> Does >>> >>> which lilypond >>> >>> agree that the version called without explicit path is the same as with >>> path? If so, something in command line processing would appear to make >>> use of the 0th argument for finding libraries. That would warrant more >>> examination. >>> >>> -- >>> David Kastrup >> >> which lilypond >> returns in my case: >> /home/hermann/bin/lilypond >> which is the script for 2.18.2 I mentioned in my previous post. > > David stated: > > 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. > > > which sounds like he is _not_ running the wrapper script when stuff > works but rather the executable without the wrapper. So it would appear > that what the wrapper does happens to interfere with finding the system > readline library while LilyPond presumably does not provide one of its > own. Who is the main author of that wrapper? Maybe he has an idea? > > -- > David Kastrup The entire (unchanged) wrapper script reads: #!/bin/sh me=`basename $0` export LD_LIBRARY_PATH="/home/hermann/lilypond/usr/lib" exec "/home/hermann/lilypond/usr/bin/$me" "$@" Commenting the line "export ..." works, though I can't imagine the consequences. No idea who wrote the script, though. Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
Thomas Morley writes: > 2016-10-22 10:12 GMT+02:00 David Kastrup : >> Thomas Morley writes: >> >>> The first hit reads in sourcefiles/guile.changelog: >>> >>> guile (1.8.1-2) unstable; urgency=low >>> >>> * Add readline as build dependency, libreadline8 as dependency for >>> libguile17 (thanks Ted Anderson). >>> * Remove /etc/hints. >>> * Remove curr from hints. >>> >>> -- Jan Nieuwenhuizen Tue, 31 Oct 2006 00:47:35 +0100 >>> >>> No idea whether it's important, it's far beyond my depth. >> >> That would point to readline support being compiled in. libreadline8 >> would likely be the current one. >> >> At any rate, David stated that calling the lilypond executable with full >> path left him with working readline support. >> >> Does >> >> which lilypond >> >> agree that the version called without explicit path is the same as with >> path? If so, something in command line processing would appear to make >> use of the 0th argument for finding libraries. That would warrant more >> examination. >> >> -- >> David Kastrup > > which lilypond > returns in my case: > /home/hermann/bin/lilypond > which is the script for 2.18.2 I mentioned in my previous post. David stated: 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. which sounds like he is _not_ running the wrapper script when stuff works but rather the executable without the wrapper. So it would appear that what the wrapper does happens to interfere with finding the system readline library while LilyPond presumably does not provide one of its own. Who is the main author of that wrapper? Maybe he has an idea? -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
2016-10-22 10:12 GMT+02:00 David Kastrup : > Thomas Morley writes: > >> The first hit reads in sourcefiles/guile.changelog: >> >> guile (1.8.1-2) unstable; urgency=low >> >> * Add readline as build dependency, libreadline8 as dependency for >> libguile17 (thanks Ted Anderson). >> * Remove /etc/hints. >> * Remove curr from hints. >> >> -- Jan Nieuwenhuizen Tue, 31 Oct 2006 00:47:35 +0100 >> >> No idea whether it's important, it's far beyond my depth. > > That would point to readline support being compiled in. libreadline8 > would likely be the current one. > > At any rate, David stated that calling the lilypond executable with full > path left him with working readline support. > > Does > > which lilypond > > agree that the version called without explicit path is the same as with > path? If so, something in command line processing would appear to make > use of the 0th argument for finding libraries. That would warrant more > examination. > > -- > David Kastrup which lilypond returns in my case: /home/hermann/bin/lilypond which is the script for 2.18.2 I mentioned in my previous post. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
Thomas Morley writes: > The first hit reads in sourcefiles/guile.changelog: > > guile (1.8.1-2) unstable; urgency=low > > * Add readline as build dependency, libreadline8 as dependency for > libguile17 (thanks Ted Anderson). > * Remove /etc/hints. > * Remove curr from hints. > > -- Jan Nieuwenhuizen Tue, 31 Oct 2006 00:47:35 +0100 > > No idea whether it's important, it's far beyond my depth. That would point to readline support being compiled in. libreadline8 would likely be the current one. At any rate, David stated that calling the lilypond executable with full path left him with working readline support. Does which lilypond agree that the version called without explicit path is the same as with path? If so, something in command line processing would appear to make use of the 0th argument for finding libraries. That would warrant more examination. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
2016-10-22 9:16 GMT+02:00 Thomas Morley : > 2016-10-22 0:37 GMT+02:00 Thomas Morley : >> 2016-10-22 0:17 GMT+02:00 David Kastrup : >>> Thomas Morley writes: >>> 2016-10-21 23:30 GMT+02:00 David Kastrup : > Thomas Morley writes: > >> I mostly use self-compiled LilyPond which seems to work as it should. >> I'd call it a bug not to have access to all guile-modules in released >> version. > > libreadline is not a Guile module. It can be loaded at runtime by > Guile. > > Maybe check whether installing libreadline5 or libreadline6 helps: it > may be that Gub compiled with a certain libreadline version in mind that > is not installed. > > -- > David Kastrup I currently have the following 3 installed: libreadline5 libreadline6 libreadline6-dev Should I try removing one? >>> >>> No. All but the -dev ones can be installed in parallel without problem. >>> You can have only one -dev one usually. >>> >>> -- >>> David Kastrup >> >> Ok. >> >> I have GUB-git on my computer, although never tried to compile it on >> my weak laptop I did: >> >> ~/gub (master)$ git grep "libreadline" >> sourcefiles/guile.changelog: * Add readline as build dependency, >> libreadline8 as dependency for >> sourcefiles/guile.changelog: * guile.hint (requires): Update to >> libncurses8, libreadline6. >> sourcefiles/guile.changelog: * Compile against libreadline5 and >> libncurses6. This fixes readline, >> sourcefiles/guile.changelog: * guile.hint: require libreadline5 and >> libncurses6. >> >> The first hit reads in sourcefiles/guile.changelog: >> >> guile (1.8.1-2) unstable; urgency=low >> >> * Add readline as build dependency, libreadline8 as dependency for >> libguile17 (thanks Ted Anderson). >> * Remove /etc/hints. >> * Remove curr from hints. >> >> -- Jan Nieuwenhuizen Tue, 31 Oct 2006 00:47:35 +0100 >> >> No idea whether it's important, it's far beyond my depth. >> >> Cheers, >> Harm > > Another observation. > > If installing LilyPond via the precompiled installer, a script called > "lilypond" for calling lilypond from the commandline is created in > bin. > Changing the line (in my case): > export LD_LIBRARY_PATH="/home/hermann/lilypond/usr/lib" > to > export LD_LIBRARY_PATH="/home/hermann/lilypond/usr/bin" > seems to work. Simply commenting the line works as well, afaict Tbh, I've only a vague idea what this line is supposed to do. > > > Cheers, > Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
2016-10-22 0:37 GMT+02:00 Thomas Morley : > 2016-10-22 0:17 GMT+02:00 David Kastrup : >> Thomas Morley writes: >> >>> 2016-10-21 23:30 GMT+02:00 David Kastrup : Thomas Morley writes: > I mostly use self-compiled LilyPond which seems to work as it should. > I'd call it a bug not to have access to all guile-modules in released > version. libreadline is not a Guile module. It can be loaded at runtime by Guile. Maybe check whether installing libreadline5 or libreadline6 helps: it may be that Gub compiled with a certain libreadline version in mind that is not installed. -- David Kastrup >>> >>> I currently have the following 3 installed: >>> libreadline5 >>> libreadline6 >>> libreadline6-dev >>> >>> Should I try removing one? >> >> No. All but the -dev ones can be installed in parallel without problem. >> You can have only one -dev one usually. >> >> -- >> David Kastrup > > Ok. > > I have GUB-git on my computer, although never tried to compile it on > my weak laptop I did: > > ~/gub (master)$ git grep "libreadline" > sourcefiles/guile.changelog: * Add readline as build dependency, > libreadline8 as dependency for > sourcefiles/guile.changelog: * guile.hint (requires): Update to > libncurses8, libreadline6. > sourcefiles/guile.changelog: * Compile against libreadline5 and > libncurses6. This fixes readline, > sourcefiles/guile.changelog: * guile.hint: require libreadline5 and > libncurses6. > > The first hit reads in sourcefiles/guile.changelog: > > guile (1.8.1-2) unstable; urgency=low > > * Add readline as build dependency, libreadline8 as dependency for > libguile17 (thanks Ted Anderson). > * Remove /etc/hints. > * Remove curr from hints. > > -- Jan Nieuwenhuizen Tue, 31 Oct 2006 00:47:35 +0100 > > No idea whether it's important, it's far beyond my depth. > > Cheers, > Harm Another observation. If installing LilyPond via the precompiled installer, a script called "lilypond" for calling lilypond from the commandline is created in bin. Changing the line (in my case): export LD_LIBRARY_PATH="/home/hermann/lilypond/usr/lib" to export LD_LIBRARY_PATH="/home/hermann/lilypond/usr/bin" seems to work. Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
2016-10-22 0:17 GMT+02:00 David Kastrup : > Thomas Morley writes: > >> 2016-10-21 23:30 GMT+02:00 David Kastrup : >>> Thomas Morley writes: >>> I mostly use self-compiled LilyPond which seems to work as it should. I'd call it a bug not to have access to all guile-modules in released version. >>> >>> libreadline is not a Guile module. It can be loaded at runtime by >>> Guile. >>> >>> Maybe check whether installing libreadline5 or libreadline6 helps: it >>> may be that Gub compiled with a certain libreadline version in mind that >>> is not installed. >>> >>> -- >>> David Kastrup >> >> I currently have the following 3 installed: >> libreadline5 >> libreadline6 >> libreadline6-dev >> >> Should I try removing one? > > No. All but the -dev ones can be installed in parallel without problem. > You can have only one -dev one usually. > > -- > David Kastrup Ok. I have GUB-git on my computer, although never tried to compile it on my weak laptop I did: ~/gub (master)$ git grep "libreadline" sourcefiles/guile.changelog: * Add readline as build dependency, libreadline8 as dependency for sourcefiles/guile.changelog: * guile.hint (requires): Update to libncurses8, libreadline6. sourcefiles/guile.changelog: * Compile against libreadline5 and libncurses6. This fixes readline, sourcefiles/guile.changelog: * guile.hint: require libreadline5 and libncurses6. The first hit reads in sourcefiles/guile.changelog: guile (1.8.1-2) unstable; urgency=low * Add readline as build dependency, libreadline8 as dependency for libguile17 (thanks Ted Anderson). * Remove /etc/hints. * Remove curr from hints. -- Jan Nieuwenhuizen Tue, 31 Oct 2006 00:47:35 +0100 No idea whether it's important, it's far beyond my depth. Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
Thomas Morley writes: > 2016-10-21 23:30 GMT+02:00 David Kastrup : >> Thomas Morley writes: >> >>> I mostly use self-compiled LilyPond which seems to work as it should. >>> I'd call it a bug not to have access to all guile-modules in released >>> version. >> >> libreadline is not a Guile module. It can be loaded at runtime by >> Guile. >> >> Maybe check whether installing libreadline5 or libreadline6 helps: it >> may be that Gub compiled with a certain libreadline version in mind that >> is not installed. >> >> -- >> David Kastrup > > I currently have the following 3 installed: > libreadline5 > libreadline6 > libreadline6-dev > > Should I try removing one? No. All but the -dev ones can be installed in parallel without problem. You can have only one -dev one usually. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
2016-10-21 23:30 GMT+02:00 David Kastrup : > Thomas Morley writes: > >> I mostly use self-compiled LilyPond which seems to work as it should. >> I'd call it a bug not to have access to all guile-modules in released >> version. > > libreadline is not a Guile module. It can be loaded at runtime by > Guile. > > Maybe check whether installing libreadline5 or libreadline6 helps: it > may be that Gub compiled with a certain libreadline version in mind that > is not installed. > > -- > David Kastrup I currently have the following 3 installed: libreadline5 libreadline6 libreadline6-dev Should I try removing one? Btw, I meanwhile found (ice-9 session) is not installed per default, neither in a released nor in the git-compiled lily. As opposed to guile directly invoked from command-line. At least (use-modules (ice-9 session)) works. Because it _is_ a guile module? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
Thomas Morley writes: > I mostly use self-compiled LilyPond which seems to work as it should. > I'd call it a bug not to have access to all guile-modules in released > version. libreadline is not a Guile module. It can be loaded at runtime by Guile. Maybe check whether installing libreadline5 or libreadline6 helps: it may be that Gub compiled with a certain libreadline version in mind that is not installed. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
2016-10-21 22:20 GMT+02:00 David Kastrup : > Thomas Morley writes: > >> 2016-10-21 22:06 GMT+02:00 Thomas Morley : >>> 2016-10-21 21:55 GMT+02:00 David Kastrup : >> Different version number? Or missing support at compilation time? What does ldd 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 I mostly use self-compiled LilyPond which seems to work as it should. I'd call it a bug not to have access to all guile-modules in released version. If I understand correctly the readline-functionality depends on extern librarys, maybe others are missing as well in released versions and nobody ever noticed ... Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
Thomas Morley writes: > 2016-10-21 22:06 GMT+02:00 Thomas Morley : >> 2016-10-21 21:55 GMT+02:00 David Kastrup : > >>> Different version number? Or missing support at compilation time? What >>> does >>> >>> ldd >>> >>> 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
Thomas Morley writes: > 2016-10-21 19:34 GMT+02:00 David Sumbler : >> 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 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
2016-10-21 22:06 GMT+02:00 Thomas Morley : > 2016-10-21 21:55 GMT+02:00 David Kastrup : >> Different version number? Or missing support at compilation time? What >> does >> >> ldd >> >> 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. 2.18.2 ~$ ldd lilypond/usr/bin/lilypond linux-vdso.so.1 => (0x7ffdbd724000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7f5179631000) libguile.so.17 => /home/hermann/lilypond/usr/bin/../lib/libguile.so.17 (0x7f517933c000) libgmp.so.3 => /home/hermann/lilypond/usr/bin/../lib/libgmp.so.3 (0x7f51790fc000) libpangoft2-1.0.so.0 => /home/hermann/lilypond/usr/bin/../lib/libpangoft2-1.0.so.0 (0x7f5178ecc000) libpango-1.0.so.0 => /home/hermann/lilypond/usr/bin/../lib/libpango-1.0.so.0 (0x7f5178c82000) libfreetype.so.6 => /home/hermann/lilypond/usr/bin/../lib/libfreetype.so.6 (0x7f51789fd000) libfontconfig.so.1 => /home/hermann/lilypond/usr/bin/../lib/libfontconfig.so.1 (0x7f51787c9000) libgobject-2.0.so.0 => /home/hermann/lilypond/usr/bin/../lib/libgobject-2.0.so.0 (0x7f5178584000) libgmodule-2.0.so.0 => /home/hermann/lilypond/usr/bin/../lib/libgmodule-2.0.so.0 (0x7f517838) libglib-2.0.so.0 => /home/hermann/lilypond/usr/bin/../lib/libglib-2.0.so.0 (0x7f51780a) libstdc++.so.6 => /home/hermann/lilypond/usr/bin/../lib/libstdc++.so.6 (0x7f5177d5f000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x7f5177a55000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x7f517783f000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7f5177476000) /lib64/ld-linux-x86-64.so.2 (0x55f8cca13000) libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x7f517723d000) libltdl.so.7 => /home/hermann/lilypond/usr/bin/../lib/libltdl.so.7 (0x7f5177034000) libz.so.1 => /home/hermann/lilypond/usr/bin/../lib/../lib/libz.so.1 (0x7f5176e1d000) libexpat.so.1 => /home/hermann/lilypond/usr/bin/../lib/../lib/libexpat.so.1 (0x7f5176bfa000) 2.19.50 ~$ ldd lilypond-git/build/out/bin/lilypond linux-vdso.so.1 => (0x7ffcf9749000) libguile.so.17 => /usr/lib/libguile.so.17 (0x7f308989f000) libpangoft2-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 (0x7f3089689000) libpango-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0 (0x7f308943c000) libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x7f30891e9000) libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x7f3088ed8000) libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x7f3088c94000) libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x7f30889ea000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x7f3088668000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x7f308835e000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x7f3088148000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x7f3087f2b000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7f3087b61000) libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x7f30878e1000) libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x7f30876a9000) libltdl.so.7 => /usr/lib/x86_64-linux-gnu/libltdl.so.7 (0x7f308749e000) /lib64/ld-linux-x86-64.so.2 (0x55f402a22000) libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x7f308724) libthai.so.0 => /usr/lib/x86_64-linux-gnu/libthai.so.0 (0x7f3087037000) libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x7f3086e2e000) libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x7f3086bbe000) libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x7f3086995000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x7f308677a000) libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x7f3086555000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7f308635) libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x7f308612b000) libdatrie.so.1 => /usr/lib/x86_64-linux-gnu/libdatrie.so.1 (0x7f3085f23000) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
2016-10-21 21:55 GMT+02:00 David Kastrup : > Thomas Morley writes: > >> 2016-10-21 19:34 GMT+02:00 David Sumbler : >>> 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 > > 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 => (0x7ffdbd724000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7f5179631000) libguile.so.17 => /home/hermann/lilypond/usr/bin/../lib/libguile.so.17 (0x7f517933c000) libgmp.so.3 => /home/hermann/lilypond/usr/bin/../lib/libgmp.so.3 (0x7f51790fc000) libpangoft2-1.0.so.0 => /home/hermann/lilypond/usr/bin/../lib/libpangoft2-1.0.so.0 (0x7f5178ecc000) libpango-1.0.so.0 => /home/hermann/lilypond/usr/bin/../lib/libpango-1.0.so.0 (0x7f5178c82000) libfreetype.so.6 => /home/hermann/lilypond/usr/bin/../lib/libfreetype.so.6 (0x7f51789fd000) libfontconfig.so.1 => /home/hermann/lilypond/usr/bin/../lib/libfontconfig.so.1 (0x7f51787c9000) libgobject-2.0.so.0 => /home/hermann/lilypond/usr/bin/../lib/libgobject-2.0.so.0 (0x7f5178584000) libgmodule-2.0.so.0 => /home/hermann/lilypond/usr/bin/../lib/libgmodule-2.0.so.0 (0x7f517838) libglib-2.0.so.0 => /home/hermann/lilypond/usr/bin/../lib/libglib-2.0.so.0 (0x7f51780a) libstdc++.so.6 => /home/hermann/lilypond/usr/bin/../lib/libstdc++.so.6 (0x7f5177d5f000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x7f5177a55000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x7f517783f000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7f5177476000) /lib64/ld-linux-x86-64.so.2 (0x55f8cca13000) libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x7f517723d000) libltdl.so.7 => /home/hermann/lilypond/usr/bin/../lib/libltdl.so.7 (0x7f5177034000) libz.so.1 => /home/hermann/lilypond/usr/bin/../lib/../lib/libz.so.1 (0x7f5176e1d000) libexpat.so.1 => /home/hermann/lilypond/usr/bin/../lib/../lib/libexpat.so.1 (0x7f5176bfa000)
Re: No readline in scheme-sandbox
2016-10-21 19:34 GMT+02:00 David Sumbler : > 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
On Fri, 2016-10-21 at 18:56 +0200, David Kastrup wrote: > Mark Knoop 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
Mark Knoop 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
On Fri, 2016-10-21 at 17:44 +0200, Thomas Morley wrote: > 2016-10-21 17:00 GMT+02:00 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 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 > > lilypond-user@gnu.org > > 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
2016-10-21 17:00 GMT+02:00 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 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 > lilypond-user@gnu.org > 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
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 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
On Wed, 2016-10-19 at 11:34 +0200, David Kastrup wrote: > David Sumbler 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
David Sumbler 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
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 writes: > > > > > > On Sun, 2016-10-16 at 21:19 +0200, David Kastrup wrote: > > > > > > > > David Sumbler 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
On Sun, 2016-10-16 at 23:09 +0200, David Kastrup wrote: > > David Sumbler writes: > > > > > On Sun, 2016-10-16 at 21:19 +0200, David Kastrup wrote: > > > > > > > > > David Sumbler 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
David Sumbler writes: > On Sun, 2016-10-16 at 21:19 +0200, David Kastrup wrote: >> David Sumbler 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
On Sun, 2016-10-16 at 21:19 +0200, David Kastrup wrote: > David Sumbler 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
David Sumbler 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: No readline in scheme-sandbox
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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user