unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Vollmert <rob@vllmrt.net>
To: 35942@debbugs.gnu.org
Subject: bug#35942: guix install: environment variable message is very confusing
Date: Tue, 28 May 2019 13:17:54 +0200	[thread overview]
Message-ID: <C2469F7E-5E47-408D-A551-344744C31AC0@vllmrt.net> (raw)

When installing a package that needs an environment variaible to be set for
use, `guix install` prints e.g.:

$ guix install python
...
The following environment variable definitions may be needed:
   export PYTHONPATH="/home/rob/.guix-profile/lib/python3.7/site-packages${PYTHONPATH:+:}$PYTHONPATH"

I understand that the variable will be set in a new shell, but not in the current shell.
But as it stands, the message serves to confuse even users that are somewhat experienced
with unix-like systems.

Suggestion to instead print:

Set the following environment variables to use <package> right away:
   export PYTHONPATH="/home/rob/.guix-profile/lib/python3.7/site-packages${PYTHONPATH:+:}$PYTHONPATH"

             reply	other threads:[~2019-05-28 11:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-28 11:17 Robert Vollmert [this message]
2019-05-28 12:08 ` bug#35942: guix install: environment variable message is very confusing Tobias Geerinckx-Rice
2019-05-28 15:23   ` Ludovic Courtès
2019-05-30  7:07     ` Ricardo Wurmus
2019-05-31 16:45       ` Andreas Enge
2019-05-31 21:19       ` Ludovic Courtès
2019-06-06  7:48         ` Ludovic Courtès

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=C2469F7E-5E47-408D-A551-344744C31AC0@vllmrt.net \
    --to=rob@vllmrt.net \
    --cc=35942@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).