我试图将Guile配置为使用readline。
这是我的~/.guile
(use-modules (ice-9 readline))(还有更多,这一行就足以导致这种失败)
下面是我的互动日志:
agam@ssdnodes-61de65ea00d0b:~$ guile
guile: warning: failed to install locale
Backtrace:
In ice-9/boot-9.scm:
1752:10 12 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
11 (apply-smob/0 #<thunk 7fb7984660c0>)
In ice-9/boot-9.scm:
724:2 10 (call-with-prompt ("prompt") #<procedure 7fb796fc2e80 ?> ?)
In ice-9/eval.scm:
619:8 9 (_ #(#(#<directory (guile-user) 7fb79846cc80>)))
In unknown file:
8 (primitive-load "/home/agam/.guile")
In ice-9/eval.scm:
721:20 7 (primitive-eval (use-modules (ice-9 readline)))
In ice-9/psyntax.scm:
1230:36 6 (expand-top-sequence ((use-modules (ice-9 readline))) _ ?)
1222:19 5 (parse _ (("placeholder" placeholder)) ((top) #(# # ?)) ?)
259:10 4 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) ?)
In ice-9/boot-9.scm:
3927:20 3 (process-use-modules _)
222:17 2 (map1 (((ice-9 readline))))
3928:31 1 (_ ((ice-9 readline)))
3329:6 0 (resolve-interface (ice-9 readline) #:select _ #:hide _ ?)
ice-9/boot-9.scm:3329:6: In procedure resolve-interface:
no code for module (ice-9 readline)如果有帮助的话,我会在通过guix install guile安装的Guile中这样做。我已经安装了glibc-locales,GUIX_LOCPATH被设置为"$HOME/.guix-profile/lib/locale"
发布于 2022-02-10 05:51:08
原来locale ...的警告是一条红鲱鱼,我错过了readline包。
我需要
guix install guile-readline,跟随by. "$GUIX_PROFILE/etc/profile"在那之后,guile很好地启动了。
https://stackoverflow.com/questions/71042830
复制相似问题