[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Overrding the localstatedir
From: |
Ludovic Courtès |
Subject: |
Re: Overrding the localstatedir |
Date: |
Fri, 03 Jan 2014 16:23:57 +0100 |
User-agent: |
Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) |
Hi!
And happy new year to everyone, where applicable! :-)
John Darrington <address@hidden> skribis:
> After a while I run "guix package -i guix" which installs just fine.
(Note that there’s little point in doing that since it gives you the
same version that you just installed. If you wanted to use the latest,
run ‘guix pull’ instead (info "(guix) Invoking guix pull").)
> But sadly now guix is broken. Wheneve I run any command I get:
>
> guix package: error: failed to connect to `/var/nix/daemon-socket/socket':
> No such file or directory
>
> Shouldn't we have a --localstatedir option or an environment variable so that
> guix knows where to find its state
> dir?
There is one already. Among other things, it tells the Guix clients
(all the ‘guix’ commands) where to find the daemon socket, and it tells
the daemon where to find its database that describes what’s in the
store.
Presumably, the problem you have here is that the Guix you installed by
hand had a different $localstatedir than the other one. The ‘guix’
package in Guix is built with --localstatedir=/var.
Could you check that?
HTH,
Ludo’.