From: Thomas Bennett <tom@caminu.fr>
To: help-guix@gnu.org
Subject: consider setting the necessary environment variables
Date: Sun, 17 Mar 2024 12:40:47 +0100 [thread overview]
Message-ID: <2341ca5e-9655-45b3-a736-9fd75ea8cc8e@caminu.fr> (raw)
Hello Guix community,
I have an issue where my root user seems to be unable to have its
environment set.
As advised, I put the following lines at the end of my shell rc file
(as root, using bash)
# tail /root/.bashrc
[...]
GUIX_PROFILE="/root/.config/guix/current"
. "$GUIX_PROFILE/etc/profile"
And it is correctly registered since:
# echo $GUIX_PROFILE
/root/.config/guix/current
However, the problem is I can install packages but I'm not able to use
them. For instance with bat binary:
root@brain ~# guix package -i bat
The following package will be upgraded: bat (dependencies or package
changed)
The following derivation will be built:
/gnu/store/mwznz6gqq4lrxl5pmql8mxixcmhmnnfy-profile.drv
building CA certificate bundle...
listing Emacs sub-directories...
building fonts directory...
generating GdkPixbuf loaders cache...
generating GLib schema cache...
creating GTK+ icon theme cache...
building cache files for GTK+ input methods...
|building directory of Info manuals...
building XDG desktop file cache...
building XDG MIME database...
building profile with 4 packages...
hint: Consider setting the necessary environment variables by running:
GUIX_PROFILE="/root/.guix-prof
. "$GUIX_PROFILE/etc/profile"
Alternately, see `guix package --search-paths -p "/root/.guix-profile"'.
# guix package --search-paths -p "/root/.guix-profile"
export PATH="/root/.guix-profile/bin:/root/.guix-profile/sbin"
export EMACSLOADPATH="/root/.guix-profile/share/emacs/site-lisp"
export INFOPATH="/root/.guix-profile/share/info"
root@brain /home/tomi# bat
bash: bat: command not found
When doing a full system upgrade with guix pull and guix package -u,
everything seems to operate fine and at the end, the message
hint: Consider setting the necessary environment variables by running:
GUIX_PROFILE="/root/.guix-profile"
. "$GUIX_PROFILE/etc/profile"
Alternately, see `guix package --search-paths -p "/root/.guix-profile"'.
appears.
I tried to manually source "$GUIX_PROFILE/etc/profile" but it's no better.
Thank you for your help,
Thomas
next reply other threads:[~2024-03-17 11:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-17 11:40 Thomas Bennett [this message]
2024-03-17 19:31 ` consider setting the necessary environment variables Carlo Zancanaro
2024-05-13 15:04 ` Thomas Bennett
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2341ca5e-9655-45b3-a736-9fd75ea8cc8e@caminu.fr \
--to=tom@caminu.fr \
--cc=help-guix@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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.