0

我正在尝试将 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. 我已经安装了glibc-locales,并且GUIX_LOCPATH设置为"$HOME/.guix-profile/lib/locale"

4

1 回答 1

0

原来locale ...警告是红鲱鱼,我错过readline包裹。

我需要

  • guix install guile-readline, 其次是
  • . "$GUIX_PROFILE/etc/profile"

之后,guile启动正常。

于 2022-02-10T05:51:08.463 回答