Federico Beffa (2017-02-05 11:48 +0100) wrote: > On Sat, Feb 4, 2017 at 8:02 PM, Alex Kost <alez...@gmail.com> wrote: >> Federico Beffa (2017-02-04 15:50 +0100) wrote: >> >>> Hi, >>> >>> for some reason Guix can't find (gnutls) despite the module being >>> installed and usable in Guile: >> [...] >>> Any suggestion? >> >> Check that guix-daemon is also started with GUILE_LOAD_[COMPILED_]PATH >> environment containing gnutls modules. > > > That's it! > > I was test starting the daemon with "sudo guix-daemon > --build-users-group=guixbuild" from a shell with the GUILE_* > environment variables set correctly and things didn't work. Now I > defined those variables in the guix-daemon.system systemd unit and > things do work (I'm on Debian testing). I'm not sure of why the formed > didn't work, but the latter did it.
I think that's because when you run "sudo guix-daemon" your environment was not preserved; if you run "sudo -E guix-daemon", it would work. -- Alex