From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: [outreach] Help trying to create R package Date: Fri, 19 Oct 2018 09:29:39 +0200 Message-ID: References: <20181016074412.54757b18@alma-ubu> <20181016082350.75757e6b@alma-ubu> <20181017001851.71543cc9@alma-ubu> <20181017091750.1c408b8d@alma-ubu> <20181018085424.541e9287@alma-ubu> <87va5zktpa.fsf@elephly.net> <87r2gml8ec.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000715efd05788fde89" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDPEK-0002Gx-5T for guix-devel@gnu.org; Fri, 19 Oct 2018 03:29:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDPEJ-0001Hk-24 for guix-devel@gnu.org; Fri, 19 Oct 2018 03:29:56 -0400 Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]:46725) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gDPEI-0001E0-I5 for guix-devel@gnu.org; Fri, 19 Oct 2018 03:29:54 -0400 Received: by mail-oi1-x231.google.com with SMTP id k64-v6so26054188oia.13 for ; Fri, 19 Oct 2018 00:29:51 -0700 (PDT) In-Reply-To: <87r2gml8ec.fsf@elephly.net> 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" To: Ricardo Wurmus Cc: Guix-devel --000000000000715efd05788fde89 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Ricardo, Ricardo Wurmus ezt =C3=ADrta (id=C5=91pont: 2018. okt.= 19., P 9:10): > > Hi Laura, > > > with guix environment --pure guix --ad-hoc coreutils findutils which (o= r > -C) > > I get, the output: > > Command 'lesspipe' is available in the following places > > * /bin/lesspipe > > * /usr/bin/lesspipe > > The command could not be located because '/bin:/usr/bin' is not > > included in the PATH environment variable. > > lesspipe: command not found > > This is because your shell initialization code (e.g. to set up the > prompt) refers to lesspipe. You can ignore this or remove the fancy > initialization. > > > There, I run which guix and get: > > which: no guix in > > > (/gnu/store/khk3lpx1li9y5zxzdppn9wi4n5g1qsgs-profile/bin:/gnu/store/khk3l= px1li9y5zxzdppn9wi4n5g1qsgs-profile/sbin) > > That=E2=80=99s because =E2=80=9C--pure=E2=80=9D resets the PATH; that=E2= =80=99s by design. The only > problem you have is that your Guix is located elsewhere. But why do you > need Guix itself inside of an environment to build Guix? > > The point of using =E2=80=9Cguix environment --pure guix=E2=80=9D is only= to enter a > clean environment containing everything you need to build Guix from > source. So once you=E2=80=99re inside of this environment you can run th= e > bootstrap and configure scripts, and run make to compile the sources. > > To *use* that Guix you just built you need to use =E2=80=9C./pre-inst-env= guix=E2=80=9D > from the source directory. > > > The closest I got was by setting: > > PATH=3D$PATH:/usr/bin/:/bin > > PATH=3D$PATH:/usr/local/bin > > This defeats the purpose of using =E2=80=9C--pure=E2=80=9D as these direc= tories contain > all sorts of things on a foreign distro, so you lose control over the > environment. > Sorry, my bad, I missed that. > -- > Ricardo > g_bor > --000000000000715efd05788fde89 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Ricardo,

Ricardo Wurmus <reka= do@elephly.net> ezt =C3=ADrta (id=C5=91pont: 2018. okt. 19., P 9:10)= :

Hi Laura,

> with guix environment --pure guix --ad-hoc coreutils findutils which (= or -C)
> I get, the output:
> Command 'lesspipe' is available in the following places
>=C2=A0 * /bin/lesspipe
>=C2=A0 * /usr/bin/lesspipe
> The command could not be located because '/bin:/usr/bin' is no= t
> included in the PATH environment variable.
> lesspipe: command not found

This is because your shell initialization code (e.g. to set up the
prompt) refers to lesspipe.=C2=A0 You can ignore this or remove the fancy initialization.

> There, I run which guix and get:
> which: no guix in
> (/gnu/store/khk3lpx1li9y5zxzdppn9wi4n5g1qsgs-profile/bin:/gnu/store/kh= k3lpx1li9y5zxzdppn9wi4n5g1qsgs-profile/sbin)

That=E2=80=99s because =E2=80=9C--pure=E2=80=9D resets the PATH; that=E2=80= =99s by design.=C2=A0 The only
problem you have is that your Guix is located elsewhere.=C2=A0 But why do y= ou
need Guix itself inside of an environment to build Guix?

The point of using =E2=80=9Cguix environment --pure guix=E2=80=9D is only t= o enter a
clean environment containing everything you need to build Guix from
source.=C2=A0 So once you=E2=80=99re inside of this environment you can run= the
bootstrap and configure scripts, and run make to compile the sources.

To *use* that Guix you just built you need to use =E2=80=9C./pre-inst-env g= uix=E2=80=9D
from the source directory.

> The closest I got was by setting:
> PATH=3D$PATH:/usr/bin/:/bin
> PATH=3D$PATH:/usr/local/bin

This defeats the purpose of using =E2=80=9C--pure=E2=80=9D as these directo= ries contain
all sorts of things on a foreign distro, so you lose control over the
environment.

Sorry, my bad, I missed that.

=

--
Ricardo
g_bor
--000000000000715efd05788fde89--