[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use GUIX installed packages / libraries in Guile

From: swedebugia
Subject: Re: Use GUIX installed packages / libraries in Guile
Date: Sat, 12 Jan 2019 13:49:28 +0100

   Zelphir Kaltstahl <address@hidden> skrev: (12 januari 2019
   13:18:49 CET)

A while ago I installed Guix, initially only to be able to install
GNUTLS, to be able to make HTTPS requests with the standard library's
web client procedures http-get and similar.
Now I have Guix and I installed GNUTLS, but Guile does not know where it
is to find GNUTLS. For example the following code will tell me that
GNUTLS is required:
(use-modules (web client)
             #;(ice-9 receive))
    (lambda ()
      (http-get "";
                #:port (open-socket-for-uri "";)
                #:version '(1 . 1)
                #:keep-alive? #f
                #:headers '()
                #:decode-body? #t
                #:streaming? #f))
  (lambda (response response-text)
    (display response)
    (display response-text)))
(aEUR| some backtrace here aEUR|)
web/client.scm:105:2: In procedure tls-wrap:
Throw to key `gnutls-not-available' with args `("(gnutls) module not available")
I located something at:
Also I found:
ll /gnu/store/ | grep gnutls
-r--r--r--   2 root root           735 Jan  1  1970 259dacgq58awd2l8zq7i2p16l7j6
-r--r--r--   2 root root          2834 Jan  1  1970 7iajc4kiddris32jdkfn28gykvs2
-r--r--r--   2 root root          3656 Jan  1  1970 csji08kzw1rswy13jm7xk7f0rp13
-r--r--r--   2 root root          1315 Jan  1  1970 ivyr33ppfcwkdmkyhk1p6ky7mija
-r--r--r--   2 root root          4414 Jan  1  1970 kd0x57fwwvqqx8jircvs4bcawxsk
-r--r--r--   4 root root           579 Jan  1  1970 l8ap56kw9nan13lkgrg8v8ayzfrn
-r--r--r--   4 root root          1008 Jan  1  1970 sfg2p3l0363yk3s7hrzs1032fl0d
For this and other libraries: How do I make Guile automatically use
libraries installed through Guix?
Here is some more technical detail:
- I am using a Xubuntu 18.04 (lsb_release -d: Description:    Ubuntu
18.04.1 LTS)
- Guile version: 2.2.4
- Guix version: 0.16.0 (installed binary distribution using the install
script from the website)
- I have the following in my ~/.bashrc related to Guile and Guix:
# Guile Scheme Load Path
export GUILE_LOAD_PATH=/home/xiaolong/development/Guile/libs  # (this is where I
 put manually built and installed libraries)
# GNU GUIX locales
export GUIX_LOCPATH="${HOME}/.guix-profile/lib/locale"
export PATH="${HOME}/.guix-profile/bin${PATH:+:}$PATH"
- I have the following in my ~/.profile relating to Guile / Guix:
# changes for GNU GUIX
export GUIX_PROFILE="$HOME/.guix-profile"
source "$GUIX_PROFILE/etc/profile"
export GUIX_LOCPATH="$GUIX_PROFILE/lib/locale"
export LC_ALL="en_US.UTF-8"

   Your path is probably wrong.
   Try installing guile in your profile and guix will tell you which path
   to set.
   Sent from my pa 0/00!p for Android.

Attachment: pEpkey.asc
Description: application/pgp-keys

reply via email to

[Prev in Thread] Current Thread [Next in Thread]