From: Leo Famulari <leo@famulari.name>
To: 51348@debbugs.gnu.org
Subject: bug#51348: Exception on `guix install nss-certs`
Date: Sat, 23 Oct 2021 16:04:03 -0400 [thread overview]
Message-ID: <YXRqs5Wa4PMRGCaj@jasmine.lan> (raw)
In-Reply-To: <q7aKeY7pvn3Z6oSoEzwQi11R4isz3AkAoanuUbqIOl9byMmlTIj-1RvYxmZwI12Kp2fd3zSvI71RD8yZahzdxpi3Z2lspEHRPL2nppIpqGY=@protonmail.com>
On Sat, Oct 23, 2021 at 10:57:20AM +0000, Raimundo Martins via Bug reports for GNU Guix wrote:
> Hi! I'm having an exception when trying to install nss-certs. I have glibc-utf8-locales installed, and even tried installing glibc-locales even though my LANG=en_US.UTF-8.
> I'm running Guix the package manager on top of Void Linux.
Right, you can use glibc-utf8-locales (a random locale collection
intended for test purposes) to get en_US.UTF-8
> Throw to key `encoding-error' with args `("scm_to_stringn" "cannot convert wide string to output locale" 84 #f #f)'.
Did you set GUIX_LOCPATH, as suggested in the Application Setup section
of the manual?
https://guix.gnu.org/manual/en/html_node/Application-Setup.html
I'm not sure exactly which context this error occurs in, but I recommend
setting GUIX_LOCPATH in two places:
1) Your user's login environment. That is, ~/.bash_profile or equivalent
for your shell, like this:
export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale
Remember that you'll have to re-login to make it effective. This can be
done with `bash --login`.
2) The guix-daemon's environment. On Debian, that means adding a line
like this to the Service section of guix-daemon.service and reloading
and restarting the service:
Environment=GUIX_LOCPATH=/var/guix/profiles/per-user/root/guix-profile/lib/locale
Does Void Linux use runit instead of systemd? I'm sure there is a way to
export environment variables in service contexts with runit.
next prev parent reply other threads:[~2021-10-23 20:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-23 10:57 bug#51348: Exception on `guix install nss-certs` Raimundo Martins via Bug reports for GNU Guix
2021-10-23 20:04 ` Leo Famulari [this message]
2021-10-25 21:15 ` bug#51348: Solved: " Raimundo Martins via Bug reports for GNU Guix
2021-10-27 22:32 ` Julien Lepiller
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=YXRqs5Wa4PMRGCaj@jasmine.lan \
--to=leo@famulari.name \
--cc=51348@debbugs.gnu.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).