From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Problems with downloading from https Date: Sun, 26 Oct 2014 10:03:10 +0300 Message-ID: <87y4s348k1.fsf@gmail.com> References: <877fzogiq5.fsf@gmail.com> <20141025200250.675.55930@vulcan.local.tld> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiHrI-0003Qb-3o for guix-devel@gnu.org; Sun, 26 Oct 2014 03:03:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XiHrD-0006mz-Eh for guix-devel@gnu.org; Sun, 26 Oct 2014 03:03:24 -0400 In-Reply-To: <20141025200250.675.55930@vulcan.local.tld> (Ian Denhardt's message of "Sat, 25 Oct 2014 16:02:55 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Ian Denhardt (2014-10-26 00:02 +0400) wrote: > Quoting Alex Kost (2014-10-25 13:30:26) >> Hello, I noticed >> and decided to ask about a similar problem I have. >> >> Whenever I try to download anything from https, I get an error, for >> example: >> >> --8<---------------cut here---------------start------------->8--- >> $ guix download https://savannah.gnu.org/projects/guix/ >> starting download of `/tmp/guix-file.Z7tZhy' from `https://savannah.gnu.= org/projects/guix/'... >> ;;; Failed to autoload make-session in (gnutls): >> ;;; ERROR: missing interface for module (gnutls) >> ERROR: In procedure module-lookup: Unbound variable: make-session >> failed to download "/tmp/guix-file.Z7tZhy" from "https://savannah.gnu.or= g/projects/guix/" >> guix download: error: https://savannah.gnu.org/projects/guix/: download = failed >> --8<---------------cut here---------------end--------------->8--- >> >> I have a feeling that I'm missing something obvious but I can't figure >> it out. Any help appreciated. > > Huh, I assumed this was just me having set up something wrong. Either > this is an actual bug, or we've hit the same pitfall with configuration. > > Do others have this working? What's your setup like? I'm running in a > git checkout on an up-to-date Archlinux system, set up according to the > instructions in the README. The same for me (Arch Linux as well). Unhappily, as you can see at gnutls is built without guile support (./configure =E2=80=A6 --disable-guil= e). Thus gnutls from Arch Linux wouldn't work; so I installed gnutls using guix and augmented guile paths with: /home//.guix-profile/share/guile/site With this guile can find (gnutls) module and the error disappears. Ludovic Court=C3=A8s (2014-10-26 01:53 +0400) wrote: > The problem is that the GnuTLS Guile bindings must be installed for > =E2=80=98guix download=E2=80=99 to work with HTTPS (the manual suggests i= t, but perhaps > not clearly enough?) Thanks for the explanation. The manual is absolutely clear, I just didn't read it properly :-) > So just install GnuTLS, make sure =E2=80=98guile -c '(use-modules (gnutls= ))'=E2=80=99 > succeeds, and then it=E2=80=99ll work. Yes, I installed gnutls, but it didn't work because I didn't set the right guile paths: =E2=80=9Cguix package --search-paths=E2=80=9D recommends "/usr/local/var/guix/profiles/per-user//guix-profile/share/guile/site= /2.0" but "gnutls.scm" is actually placed in "/usr/local/var/guix/profiles/per-user//guix-profile/share/guile/site" so =E2=80=98(use-modules (gnutls))=E2=80=99 failed for me. Perhaps =E2=80=9Cguix package --search-paths=E2=80=9D should be adjusted to= recommend the following (?): export GUILE_LOAD_PATH=3D"/share/guile/site/2.0:/share/guile/site" export GUILE_LOAD_COMPILED_PATH=3D"/share/guile/site/= 2.0:/share/guile/site" --=20 Alex