Efraim Flashner <[email protected]> skribis: > On Sun, Jul 02, 2017 at 09:53:58PM +0200, Ludovic Courtès wrote: >> Efraim Flashner <[email protected]> skribis: >> >> > On Sun, Jul 02, 2017 at 11:13:05AM +0200, Ludovic Courtès wrote: >> >> [...] >> >> >> > guix: offload: command not found >> >> >> >> And “./pre-inst-env guile -c '(use-modules (ssh key))'” fails as well I >> >> guess? >> >> >> >> That would mean that Guile-SSH was found at configure time (i.e., it was >> >> in GUILE_LOAD_PATH) but has since disappeared or become unusable (e.g., >> >> GUILE_LOAD_PATH is different and no longer includes it, or Guile-SSH has >> >> been uninstalled, or a Guile-SSH is installed but it’s one for Guile 2.0 >> >> and you’re using 2.2 or vice-versa, etc.). >> >> >> >> Does this hypothesis hold? :-) >> >> >> > >> > firefly@firefly$ which guile >> > firefly@firefly$ guix environment --ad-hoc guile -- ./pre-inst-env guile >> > -c '((use-modules (ssh key))' >> > ...snip... >> > ;;; compiling >> > /gnu/store/...-guile-ssh-0.11.0/share/guile/site/2.2/ssh/key.scm >> > ;;; compiling >> > /gnu/store/...-guile-ssh-0.11.0/share/guile/site/2.2/ssh/log.scm >> > ;;; ssh/log.scm:65:4: warning: possibly unbound variable `%write-log' >> > ;;; compiled ... >> > ;;; compiled ... >> > firefly@firefly$ env | grep guile >> > firefly@firefly$ env | grep GUILE >> > firefly@firefly$ >> >> Could it be that ‘guix environment’ sources your shell startup file >> (e.g., .bashrc), and that said file adds Guile-SSH to GUILE_LOAD_PATH? >> >> That would explain while the first command finds Guile-SSH while “env” >> outside of ‘guix environment’ shows that GUILE_LOAD_PATH is unset. >> >> Ludo’. > > I went back to a previous email and reran the 'guix offload' command. > > firefly@firefly:$ ./pre-inst-env guix offload: > guix: offload: command not found > > firefly@firefly:$ guix offload: > guix offload: error: invalid arguments: > > so it looks like guile-json and guile-ssh are not pulled in with > './pre-inst-env guix' > > firefly@firefly:$ guix environment -- env > ...snip... > GUILE_LOAD_COMPLETED_PATH=/gnu/store/...guile-json:/gnu/store/...guile-ssh:/gnu/store/...guile2.2-gnutls
What does “./pre-inst-env guile -c '(use-modules (guix scripts offload))'” say? Ludo’.
