help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Packages don't get installed in the correct path


From: Garjola Dindi
Subject: Re: Packages don't get installed in the correct path
Date: Wed, 17 Mar 2021 14:22:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

On Wed 17-Mar-2021 at 10:25:39 +01, Garjola Dindi <garjola@garjola.net>
wrote: 
> 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: 
>>> 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?

OK, I think I got it.

My ~/.guix-profile folder seemed to be the problem, because it only
contained etc and share and no bin. I have removed it and made it a
symlink to /var/guix/profiles/per-user/garjola/guix-profile.

My .bashrc contains

,----
| export PATH="$HOME/.config/guix/current/bin${PATH:+:}$PATH"
| export INFOPATH="$HOME/.config/guix/current/share/info:$INFOPATH"
| export GUIX_PROFILE="$HOME/.guix-profile"
| export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale
| source "$HOME/.guix-profile/etc/profile"
`----

I think that now everything behaves as expected.

Is it correct to assume that the ~/.guix-profile has to be a link to the
per-user profile in /var?

The remaining puzzling question is why the ~/.guix-profile was like
that? I am assuming that the first guix invocation by a user after
running the installer as root should create the correct arborescences.
But since I had done some tests with guix a couple of years ago, maybe
that the folder was there already?

In any case, thanks for your patience.

Garjola.

-- 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]