From: sbaugh@catern.com
To: guix-devel@gnu.org
Subject: Foreign distro GUIX_LOCPATH errors when installing from manual
Date: Tue, 05 Jul 2016 13:07:37 -0400 [thread overview]
Message-ID: <87h9c4au92.fsf@earth.catern.com> (raw)
Hi,
I was just getting started with Guix by installing it on my regular
distro, Debian Jessie, by following the manual (which is really great -
I tried installing Nix first but couldn't get it to work, the Guix
manual is much better).
The install was successful but I noticed two errors related to
GUIX_LOCPATH which I had to fix by asking others for advice. Both happen
when running guix package commands as a regular user, by running
/usr/local/bin/guix.
- substitute: warning: failed to install locale: Invalid argument
This was a result of the daemon, running as root, not having
GUIX_LOCPATH set in its environment.
My solution was installing glibc-locale in root's profile, and adding:
Environment=GUIX_LOCPATH=/root/.guix_profile/lib/locale
to the [Service] section of the systemd unit file used to start the
daemon. I suggest that this line should be added to the unit file
shipped with guix, and that the installation instructions say to install
glibc-locale (or some other locale package) in root's profile.
- warning: failed to install locale: Invalid argument
This was a result of the user running guix not having GUIX_LOCPATH set
in their current environment. But, keep in mind, the user is running
guix through /usr/local/bin/guix, which is in fact a symlink to root's
guix.
I suggest that the appropriate solution is to instead of symlinking
/usr/local/bin/guix to
/var/guix/profiles/per-user/root/guix-profile/bin/guix, we should
replace /usr/local/bin/guix with the following shell script:
#!/bin/sh
export GUIX_LOCPATH=/var/guix/profiles/per-user/root/guix-profile/lib/locale
/var/guix/profiles/per-user/root/guix-profile/bin/guix $*
That is, root's guix should be run with root's locales.
Hopefully these can be fixed!
next reply other threads:[~2016-07-05 17:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-05 17:07 sbaugh [this message]
2016-07-11 10:07 ` Foreign distro GUIX_LOCPATH errors when installing from manual Ludovic Courtès
2016-07-11 10:48 ` Thomas Danckaert
2016-07-11 18:26 ` Spencer Baugh
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=87h9c4au92.fsf@earth.catern.com \
--to=sbaugh@catern.com \
--cc=guix-devel@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).