unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "Bonface M. K." <bonfacemunyoki@gmail.com>
To: yasu <yasu@yasuaki.com>
Cc: help-guix@gnu.org
Subject: Re: Racket (require gregor)
Date: Sun, 20 Dec 2020 01:05:50 +0300	[thread overview]
Message-ID: <86h7oh78ox.fsf@gmail.com> (raw)
In-Reply-To: <b274c27858d7ea48d8a493f16636e9a345a860fb.camel@yasuaki.com> (yasu@yasuaki.com's message of "Fri, 11 Dec 2020 21:12:44 +0900")

[-- Attachment #1: Type: text/plain, Size: 1671 bytes --]

yasu <yasu@yasuaki.com> writes:

> Hi!
> I am tring to use the gregor package using my Racket  program:
> #lang racket(require gregor)
> But it fails with fthe ollowing error:
> Unable to locate the zoneinfo database on this computer. We searched
> for it in the following places:  - /usr/share/zoneinfo  -
> /usr/share/lib/zoneinfo  - /etc/zoneinfo
> There is a suggestion at: 
> https://lists.gnu.org/archive/html/help-guix/2018-08/msg00073.html of
> installing tzdata
> After installig it with: raco pkg install tzdata,
> It did not help (I still get exact same error). If there are users of
> Racket..., would you please try the same and see if it works for you?
> Cheers,
> Yasu
>

A bit late for the party, but one way to do it
would be to run Racket in a container, and as
usual export the necessary certs:

--8<---------------cut here---------------start------------->8---
# Create the container and expose the zoneinfo
./pre-inst-env guix environment -N -C --expose=/usr/share/zoneinfo --ad-hoc racket-minimal nss-certs coreutils libedit

export SSL_CERT_DIR="$GUIX_ENVIRONMENT/etc/ssl/certs" && export SSL_CERT_FILE="$GUIX_ENVIRONMENT/etc/ssl/certs/ca-certificates.crt"
--8<---------------cut here---------------end--------------->8---

I do things that way since there's a racket
program[0] I ran in a server; and it's convenient
on that regard...

[0] http://git.genenetwork.org/GeneNetwork/feedanalyser.git

-- 
Bonface M. K. <https://www.bonfacemunyoki.com>
Humble GNU Emacs User / Bearer of scheme-y parens
Curator: <https://upbookclub.com> / Twitter: @BonfaceKilz
GPG Key: D4F09EB110177E03C28E2FE1F5BBAE1E0392253F

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 869 bytes --]

  parent reply	other threads:[~2020-12-19 22:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-11 12:12 Racket (require gregor) yasu
2020-12-11 12:15 ` yasu
2020-12-11 12:19   ` Yasuaki Kudo
2020-12-11 14:24     ` Tobias Geerinckx-Rice
2020-12-12  8:52       ` yasu
2020-12-19 22:05 ` Bonface M. K. [this message]
     [not found] <mailman.69.1607792450.6761.help-guix@gnu.org>
2020-12-12 18:03 ` jgart
2020-12-15 21:03   ` Yasuaki Kudo
2020-12-19 22:01     ` Bonface M. K.
2020-12-19 21:59   ` Bonface M. K.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86h7oh78ox.fsf@gmail.com \
    --to=bonfacemunyoki@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=yasu@yasuaki.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).