From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Overrding the localstatedir Date: Fri, 03 Jan 2014 16:23:57 +0100 Message-ID: <8761q1nl6a.fsf@gnu.org> References: <20140101131947.GA17931@jocasta.intra> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vz6bU-0006TD-Kx for guix-devel@gnu.org; Fri, 03 Jan 2014 10:24:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vz6bO-0003by-GE for guix-devel@gnu.org; Fri, 03 Jan 2014 10:24:04 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:36609) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vz6bO-0003bp-A2 for guix-devel@gnu.org; Fri, 03 Jan 2014 10:23:58 -0500 In-Reply-To: <20140101131947.GA17931@jocasta.intra> (John Darrington's message of "Wed, 1 Jan 2014 14:19:47 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: John Darrington Cc: guix-devel@gnu.org Hi! And happy new year to everyone, where applicable! :-) John Darrington skribis: > After a while I run "guix package -i guix" which installs just fine. (Note that there=E2=80=99s little point in doing that since it gives you the same version that you just installed. If you wanted to use the latest, run =E2=80=98guix pull=E2=80=99 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 =E2=80=98guix=E2=80=99 commands) where to find the daemon socket, = and it tells the daemon where to find its database that describes what=E2=80=99s 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 =E2=80=98guix= =E2=80=99 package in Guix is built with --localstatedir=3D/var. Could you check that? HTH, Ludo=E2=80=99.