From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= Subject: Re: [outreach] Help trying to create R package Date: Thu, 18 Oct 2018 19:41:39 +0200 Message-ID: <20181018194139.0cbf30ed@alma-ubu> References: <20181017001851.71543cc9@alma-ubu> <20181017091750.1c408b8d@alma-ubu> <20181018085424.541e9287@alma-ubu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/ecVfKUO/5GlQSQ7kUZY+qUR"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDCIu-0006TP-0x for guix-devel@gnu.org; Thu, 18 Oct 2018 13:41:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDCIo-0006TG-T8 for guix-devel@gnu.org; Thu, 18 Oct 2018 13:41:47 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:47822 helo=bjoernhoefling.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDCIo-0006T0-Ib for guix-devel@gnu.org; Thu, 18 Oct 2018 13:41:42 -0400 In-Reply-To: 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: Laura Lazzati Cc: Guix-devel , Ricardo Wurmus --Sig_/ecVfKUO/5GlQSQ7kUZY+qUR Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 18 Oct 2018 14:26:50 -0300 Laura Lazzati wrote: > On Thu, Oct 18, 2018 at 1:18 PM Laura Lazzati > wrote: > > > > On Thu, Oct 18, 2018 at 12:40 PM G=C3=A1bor Boskovits > > wrote: =20 > > > > > > Laura Lazzati ezt =C3=ADrta (id=C5=91pon= t: > > > 2018. okt. 18., Cs, 17:26): =20 > > > > > > > > On Thu, Oct 18, 2018 at 12:15 PM G=C3=A1bor Boskovits > > > > wrote: =20 > > > > > > > > > > Hi Laura, > > > > > > > > > > Laura Lazzati ezt =C3=ADrta (id=C5= =91pont: > > > > > 2018. okt. 18., Cs, 16:49): =20 > > > > > > > > > > > > On Thu, Oct 18, 2018 at 4:50 AM G=C3=A1bor Boskovits > > > > > > wrote: =20 > > > > > > > > > > > > > > Wow, Bj=C3=B6rn, you were so fast again :) > > > > > > > > > > > > > > I just got around this right now. =20 > > > > > > Again, thank both for being so kind :) =20 > > > > > > > > > > > > > > Bj=C3=B6rn H=C3=B6fling e= zt > > > > > > > =C3=ADrta (id=C5=91pont: 2018. okt. 18., Cs, 8:54): =20 > > > > > > > > > > > > > > > > Hi Laura, > > > > > > > > > > > > > > > > On Wed, 17 Oct 2018 22:36:02 -0300 > > > > > > > > Laura Lazzati wrote: > > > > > > > > > > > > > > > > =20 > > > > > > > > > > https://www.gnu.org/software/guix/manual/en/html_node/C= ontributing.html#Contributing =20 > > > > > > > > > I have already read this chapter, but I am messed up. > > > > > > > > > I have already cloned from git, but I have some > > > > > > > > > questions: 1) Do I need to install everything from > > > > > > > > > the git repo in my distro? =20 > > > > > > > > > > > > > > > > I'm not sure if I understand you right. You ask if you > > > > > > > > "need to install everything from the git in my > > > > > > > > distro?". I don't get that. Let me tell what I mean: > > > > > > > > > > > > > > > > You cloned that one, right? > > > > > > > > > > > > > > > > git clone https://git.savannah.gnu.org/git/guix.git > > > > > > > > > > > > > > > > That is the source code of Guix. I.e. when you do a > > > > > > > > > > > > > > > > guix package -i hello > > > > > > > > > > > > > > > > then you use the binary "guix" command that you > > > > > > > > installed in the beginning. And the repository you > > > > > > > > cloned is just the source code, there is nothing in > > > > > > > > there that you need to install. > > > > > > > > > > > > > > > > > > > > > > > > Maybe you ment the list of software that is written > > > > > > > > here: > > > > > > > > > > > > > > > > https://www.gnu.org/software/guix/manual/en/guix.html#Build= ing-from-Git > > > > > > > > > > > > > > > > When building Guix from a checkout, the following > > > > > > > > packages are required in addition to those mentioned in > > > > > > > > the installation instructions (see Requirements). > > > > > > > > > > > > > > > > GNU Autoconf; > > > > > > > > GNU Automake; > > > > > > > > GNU Gettext; > > > > > > > > GNU Texinfo; > > > > > > > > Graphviz; > > > > > > > > GNU Help2man (optional). > > > > > > > > > > > > > > > > So, yeah. In order to compile Guix from source, you > > > > > > > > need all these. =20 > > > > > > I was indeed trying to do this. > > > > > > =20 > > > > > > > > > > > > > > > > But wait, read the next sentence. You have guix already > > > > > > > > installed. Guix provides a VERY nice command, `guix > > > > > > > > envirionment `. With that, Guix prepares an > > > > > > > > "environment" that can be directly used to build > > > > > > > > . > > > > > > > > > > > > > > > > So, if you enter: > > > > > > > > > > > > > > > > guix environment guix =20 > > > > > > I have just did this :) =20 > > > > > Great. =20 > > > > > > > > > > > > > > > > then Guix will know best what software in which version > > > > > > > > it needs in order to build guix (in this case, itself, > > > > > > > > don't get trapped by that self-circularity :-)) > > > > > > > > > > > > > > > > When you are in, you can just follow the next steps > > > > > > > > described: > > > > > > > > > > > > > > > > ./bootstrap =20 > > > > > > This worked fine. =20 > > > > > > > > ./configure --localstatedir=3D/var =20 > > > > > > > > > > > > This did not, I am getting this error: > > > > > > > > > > > > configure: checking for guile 2.2 > > > > > > configure: found guile 2.2 > > > > > > checking for guile-2.2... /usr/bin/guile-2.2 > > > > > > checking for Guile version >=3D 2.2... 2.2.3 > > > > > > checking for guild-2.2... no > > > > > > checking for guile-config-2.2... no > > > > > > checking for guile-tools-2.2... no > > > > > > configure: error: 'guild' binary not found; please check > > > > > > your guile-2.x installation. > > > > > > =20 > > > > > > > > > > I don't know what to make of this, but you could try guix > > > > > environment guix --ad-hoc guild. > > > > > Please see if that helps, if not then I will have a closer > > > > > look at this. =20 > > > > I restored everything to the snapshot where I ended cloning > > > > guix. I get this error when trying to run guix environme guix > > > > --ad-hoc guild: guix environment: error: guild: unknown package > > > > =20 > > > > > > Oops, my bad, yes. I've checked this more thoroughly, on my system > > > guild is provided by guile, which should be provided by guile. > > > Could you run a which guild and a which guile inside the guix > > > environment guix? =20 > > I went back to the previous snapshot several times. > > > > I was cloning the guix and throwing guix environment guix without > > doing cd guix After several times, I realized that I had a warning > > in the output: > > > > building /gnu/store/ilscbls919b78vn9l7b2jb72jmalbxm8-profile.drv... > > warning: collision encountered: > > /gnu/store/b5x786d3h552j2zp4ppvlz9dkbiqy2ng-ld-wrapper-0/bin/ld > > /gnu/store/srmqh29dpm50j8kj1pbqg2rgh053wgyp-binutils-2.30/bin/ld > > warning: choosing > > /gnu/store/b5x786d3h552j2zp4ppvlz9dkbiqy2ng-ld-wrapper-0/bin/ld > > successfully > > built /gnu/store/ilscbls919b78vn9l7b2jb72jmalbxm8-profile.drv But I > > did not paid attention to that, echo $? was OK (0). And then ran > > everything as I stated, facing all that issues. > > > > Now I've cloned the repo again, removing previously the guix > > directory. did cd guix > > and ran guix environment guix > > Did not have that warning anymore, just the usual locale warning > > that happens all the time. > > ran ./bootstrap > > > > And in both cases (before restoring my VM state, and now) the result > > of the which commands are: > > > > /gnu/store/2w5kxhmkq4zkamsgx1b40vr3ii1z4dxb-profile/bin/guild > > and > > /gnu/store/2w5kxhmkq4zkamsgx1b40vr3ii1z4dxb-profile/bin/guile > > > > I don't know if this is relevant or not, and if I should run the > > .configure or not before you seing this. =20 > I answer myself: > ran > $./configure --localstatedir=3D/var > And same output. Sad. OK, first check again that you are working with the "right" guix: Check 'which guix' and it should be the one in ~/.config/guix/bin/guix If not, it was somewhere in the discussion already (Excuse my brevity, need to go soon). If that doesn't fix, I suppose still you have the "wrong" guile, somehwere from Ubuntu. Try this: guix environment --pure guix or even stronger: guix environment -C guix These are stronger environments, the last one even a container (that could cause even more trouble, ah, yes, the container will cause trouble because it cannot access the build daemon, damn.) The --pure and -C have the feature that they will blend out everything from your current environment. Even "normal" stuff like ls, which, etc. But you can enrich again your environment: guix environment --pure guix --ad-hoc coreutils findutils which=20 would be a good starter. Read in manual about guix environment. Hope this brings you a step further. Again, sorry for brevity. Bj=C3=B6rn --Sig_/ecVfKUO/5GlQSQ7kUZY+qUR Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlvIxdQACgkQvyhstlk+X/3nDQCguV7/qutNujafgG7saC16F8fC RiAAoK2ZRXFiJ340fEPv0M70prnS2j7w =SAac -----END PGP SIGNATURE----- --Sig_/ecVfKUO/5GlQSQ7kUZY+qUR--