From: Garjola Dindi <garjola@garjola.net>
To: help-guix@gnu.org
Subject: Re: Packages don't get installed in the correct path
Date: Wed, 17 Mar 2021 10:25:39 +0100 [thread overview]
Message-ID: <87pmzy873g.fsf@pc-117-162.ovh.com> (raw)
In-Reply-To: 87v99qkynx.fsf@elephly.net
On Wed 17-Mar-2021 at 08:49:22 +01, Ricardo Wurmus <rekado@elephly.net>
wrote:
> Garjola Dindi <garjola@garjola.net> writes:
>
>> On Wed 17-Mar-2021 at 07:51:18 +01, Tobias Geerinckx-Rice <me@tobias.gr>
>> wrote:
>>> Hi Garjola!
>>>
>>> Garjola Dindi 写道:
>>>> I have added the following to my ~/.basrhc as indicated in the manual:
>>>>
>>>> ,----[ bash ]
>>>> | export PATH="/home/garjola/.config/guix/current/bin${PATH:+:}$PATH"
>>>
>>> Which mad-Max manual indicates this? Not [my copy of] Guix's:
>>>
>>
>> [...]
>>
>>
>> Mine (installed in
>> /gnu/store/mi10gphgjw1d....5b-guix-82a9538ea/share/info/guix.info.gz)
>> says in section 5.5 Invoking ‘guix gc’:
>>
>> ,----
>> | The result of running ‘guix pull’ is a “profile” available under
>> | ‘~/.config/guix/current’ containing the latest Guix. Thus, make sure to
>> | add it to the beginning of your search path so that you use the latest
>> | version, and similarly for the Info manual (*note Documentation::):
>> |
>> | export PATH="$HOME/.config/guix/current/bin:$PATH"
>> `----
>
> That’s okay. This ensures that “guix” (provided by “guix pull”) is
> available and preferred over whatever global installation of Guix there
> might be (such as /usr/local/bin/guix).
So this is in contradiction with what Tobias wrote before?
>
>>>> The most annoying thing is that the programs are not in the path
>>>
>>> I don't want to presume what you mean: that they're not where you
>>> thought they would be (not in ~/.config/guix), or that you can't
>>> actually run them (not in PATH)?
>>
>> They are not in PATH.
>
> Then all you need is to add this to ~/.bash_profile
>
> GUIX_PROFILE=$HOME/.guix-profile
> source $GUIX_PROFILE/etc/profile
The issue is that $HOME/.guix-profile/etc/profile is empty, and
therefore, none of the installed packages in /var are in the path.
>
>> It seems that there are a lot of things that I have not understood about
>> how the whole thing works.
>>
>> I will study the manual again. Is there a way to complete remove my
>> current installation so that I start with a clean slate?
>
> I advise against it. Your problem is with variables, not with stateless
> binaries in /gnu/store.
Given the inconsistencies I have, (the profile file being empty, for
instance), I don't feel confident with my installation and would rather
start from scratch. Is this possible?
Thanks.
--
next prev parent reply other threads:[~2021-03-17 9:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-16 20:31 Packages don't get installed in the correct path Garjola Dindi
2021-03-17 6:51 ` Tobias Geerinckx-Rice
2021-03-17 7:31 ` Garjola Dindi
2021-03-17 7:49 ` Ricardo Wurmus
2021-03-17 9:25 ` Garjola Dindi [this message]
2021-03-17 13:22 ` Garjola Dindi
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=87pmzy873g.fsf@pc-117-162.ovh.com \
--to=garjola@garjola.net \
--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.
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).