On Thu, 10 Jan 2019, david.lars...@selfhosted.xyz wrote:
On Thu, 10 Jan 2019, Gábor Boskovits wrote:
Hello,
could you could try installing the guile-readline package, or create
an evironment with it, like guix environment --ad-hoc guile-readline
John Soo <js...@asu.edu> ezt írta (időpont: 2019. jan. 10., Cs, 17:30):
Hello all,
I have an issue running guile from command line, namely "no code for
module (ice-9 readline). I'm pretty sure the load path is correct in my
profile and I haven't touched ~/.guile. Any clues on what to do?
Thanks,
John
Best regards,
g_bor
Hi,
I don't have a good fix, but a couple suggestions for a workaround.
1. To verify paths you can check 'echo $GUILE_LOAD_PATH' and 'echo
$GUILE_LOAD_COMPILED_PATH' from cli, and from guile REPL you can check
for example (display %load-path). If necessary you can add a statement
in bash like:
export
GUILE_LOAD_PATH="/root/.guix-profile/include${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH
sorry, that line should have been:
export
GUILE_LOAD_PATH="~/.guix-profile/share/guile/site/2.0${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH"
or whatever your correct path is to the ice-9 dir.
and rerun your script.
2. Secondly, you can look up the guile install directory, to check for
the folder where you can find the ice-9 directory. If the ice-9 dir is
located in ~/.guix-profile/share/guile/site/2.0 and there's a readline
file inside, you can start guile with guile -L
~/.guix-profile/share/guile/site/2.0 myscript.scm.
Im also having issues with guile when running guix as a stand-alone
package manager while it works fine with GuixSD but that's possibly
unrelated.
Regards,
David L