Re: guix can't find (gnutls)

2017-02-09 Thread Alex Vong
Federico Beffa  writes:

> On Sun, Feb 5, 2017 at 9:38 AM, Alex Vong  wrote:
>> Federico Beffa  writes:
>>
>>> Hi,
>>>
>>> for some reason Guix can't find (gnutls) despite the module being
>>> installed and usable in Guile:
>>>
>> Are you running guixsd or runnign guix on a foreign distro?
>
> I'm on Debian testing.
>
>> I personally run guix on debian and had the same problem. I solved the
>> problem by building gnutls from source and installing it into
>> /usr/local. The problem is debian's gnutls doesn't contain
>> gnutls-guile.
>>
>> One might suggests to install guix's gnutls and build guix using it, but
>> it doesnt't work for me, so I resort to building from source.
>
> I had a similar experience: I installed gnutls manually in /usr/local
> and successfully compiled Guix.
>
> However, for various reasons, I then wanted to recompile Guix with
> Guix (and remove the manually installed gnutls and Debian Guile) and
> that's where I was struggling to make things work. I fixed things as
> in my reply to Alex Kost.
>
I would try Alex Kost's method too, installing gnutls manually has the
disadvantage of needing to track security update manually. I adopt that
method only because I don't know a better one. Thanks Alex.

> Thanks for your reply.
> Fede


signature.asc
Description: PGP signature


Re: guix can't find (gnutls)

2017-02-05 Thread Alex Kost
Federico Beffa (2017-02-05 11:48 +0100) wrote:

> On Sat, Feb 4, 2017 at 8:02 PM, Alex Kost  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



Re: guix can't find (gnutls)

2017-02-05 Thread Federico Beffa
On Sun, Feb 5, 2017 at 9:38 AM, Alex Vong  wrote:
> Federico Beffa  writes:
>
>> Hi,
>>
>> for some reason Guix can't find (gnutls) despite the module being
>> installed and usable in Guile:
>>
> Are you running guixsd or runnign guix on a foreign distro?

I'm on Debian testing.

> I personally run guix on debian and had the same problem. I solved the
> problem by building gnutls from source and installing it into
> /usr/local. The problem is debian's gnutls doesn't contain
> gnutls-guile.
>
> One might suggests to install guix's gnutls and build guix using it, but
> it doesnt't work for me, so I resort to building from source.

I had a similar experience: I installed gnutls manually in /usr/local
and successfully compiled Guix.

However, for various reasons, I then wanted to recompile Guix with
Guix (and remove the manually installed gnutls and Debian Guile) and
that's where I was struggling to make things work. I fixed things as
in my reply to Alex Kost.

Thanks for your reply.
Fede



Re: guix can't find (gnutls)

2017-02-05 Thread Federico Beffa
On Sat, Feb 4, 2017 at 8:02 PM, Alex Kost  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.

Thanks,
Fede



Re: guix can't find (gnutls)

2017-02-05 Thread Alex Vong
Federico Beffa  writes:

> Hi,
>
> for some reason Guix can't find (gnutls) despite the module being
> installed and usable in Guile:
>
Are you running guixsd or runnign guix on a foreign distro?

I personally run guix on debian and had the same problem. I solved the
problem by building gnutls from source and installing it into
/usr/local. The problem is debian's gnutls doesn't contain
gnutls-guile.

One might suggests to install guix's gnutls and build guix using it, but
it doesnt't work for me, so I resort to building from source.


signature.asc
Description: PGP signature


Re: guix can't find (gnutls)

2017-02-04 Thread Alex Kost
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.

-- 
Alex