[Top][All Lists]

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

Use GUIX installed packages / libraries in Guile

From: Zelphir Kaltstahl
Subject: Use GUIX installed packages / libraries in Guile
Date: Sat, 12 Jan 2019 13:18:49 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1


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)))


(… some backtrace here …)

web/client.scm:105:2: In procedure tls-wrap:
Throw to key `gnutls-not-available' with args `("(gnutls) module not 

I located something at:


Also I found:

ll /gnu/store/ | grep gnutls
-r--r--r--   2 root root           735 Jan  1  1970 
-r--r--r--   2 root root          2834 Jan  1  1970 
-r--r--r--   2 root root          3656 Jan  1  1970 
-r--r--r--   2 root root          1315 Jan  1  1970 
-r--r--r--   2 root root          4414 Jan  1  1970 
-r--r--r--   4 root root           579 Jan  1  1970 
-r--r--r--   4 root root          1008 Jan  1  1970 

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"



reply via email to

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