From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mDdzGNYjH1+xPwAA0tVLHw (envelope-from ) for ; Mon, 27 Jul 2020 18:58:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 0OzKE9YjH1+JIQAAB5/wlQ (envelope-from ) for ; Mon, 27 Jul 2020 18:58:30 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7A458940224 for ; Mon, 27 Jul 2020 18:58:29 +0000 (UTC) Received: from localhost ([::1]:58242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k08KR-0001IW-Gy for larch@yhetil.org; Mon, 27 Jul 2020 14:58:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38864) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k08KJ-0001IK-Vg for help-guix@gnu.org; Mon, 27 Jul 2020 14:58:19 -0400 Received: from gateway20.websitewelcome.com ([192.185.49.40]:27921) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k08KH-0006kD-5i for help-guix@gnu.org; Mon, 27 Jul 2020 14:58:19 -0400 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway20.websitewelcome.com (Postfix) with ESMTP id D60B34017AFAA for ; Mon, 27 Jul 2020 12:35:58 -0500 (CDT) Received: from gator3135.hostgator.com ([50.87.144.171]) by cmsmtp with SMTP id 08K8kBjIChKYq08K8kEjv1; Mon, 27 Jul 2020 13:58:08 -0500 X-Authority-Reason: nr=8 Received: from [50.87.144.171] (port=23558 helo=gator3135.hostgator.com) by gator3135.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1k08K7-003R6Q-W8; Mon, 27 Jul 2020 13:58:07 -0500 Received: from [100.0.196.207] ([100.0.196.207]) by www.stihie.net (Horde Framework) with HTTPS; Mon, 27 Jul 2020 13:58:07 -0500 Date: Mon, 27 Jul 2020 13:58:07 -0500 Message-ID: <20200727135807.Horde.qzMO1hZdiGwWVFB8QMq3A0L@www.stihie.net> From: mbcladwell@stihie.net To: Julien Lepiller Subject: Re: No Guile development packages were found. References: <20200727065252.Horde.zwuqgyOS38xl3-x-35QYgsn@www.stihie.net> <20200727154826.06c55fa2@tachikoma.lepiller.eu> In-Reply-To: <20200727154826.06c55fa2@tachikoma.lepiller.eu> User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3135.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stihie.net X-BWhitelist: no X-Source-IP: 50.87.144.171 X-Source-L: Yes X-Exim-ID: 1k08K7-003R6Q-W8 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (gator3135.hostgator.com) [50.87.144.171]:23558 X-Source-Auth: mbcladwell@stihie.net X-Email-Count: 3 X-Source-Cap: cGxhcGFuO3BsYXBhbjtnYXRvcjMxMzUuaG9zdGdhdG9yLmNvbQ== X-Local-Domain: yes Received-SPF: pass client-ip=192.185.49.40; envelope-from=mbcladwell@stihie.net; helo=gateway20.websitewelcome.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/27 14:58:15 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -0.51 X-TUID: CVOu9HnsTNQp Quoting Julien Lepiller : > Hi, > > Le Mon, 27 Jul 2020 06:52:52 -0500, > mbcladwell@stihie.net a écrit : > >> Hi, >> I would like to upgrade guile-json in my local store. >> I start with >> $guix pull >> $guix package -u (didn't do anything) > > If guile-json is not installed in your default profile, that's > expected. Otherwise, maybe it was your first guix pull? Make sure you > have ~/.config/guix/current/bin *first* in your $PATH and run "hash > guix" to invalidate your shell's cache for the guix binary location. > > Make sure "type guix" returns ~/.config/guix/current/bin/guix. > >> >> Modifying the template at >> https://guix.gnu.org/blog/2018/a-packaging-tutorial-for-guix/ >> I create the file guile-json.scm: >> >> [...] >> >> Looking at the log file, the final lines are: >> >> checking for pkg-config... no >> configure: checking for guile 3.0 >> configure: checking for guile 2.2 >> configure: checking for guile 2.0 >> configure: error: >> No Guile development packages were found. >> >> Please verify that you have Guile installed. If you installed Guile >> from a binary distribution, please verify that you have also installed >> the development packages. If you installed it yourself, you might >> need to adjust your PKG_CONFIG_PATH; see the pkg-config man page for >> more. >> >> command >> "/gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/bin/bash" >> "./configure" "CONFIG_SHELL=/gnu/store/29jhbbg1hf55$ >> >> >> I am on Debian 9 working with guile v 2.2.7, dev files are installed: >> >> apt-get install guile-2.0-dev >> Reading package lists... Done >> Building dependency tree >> Reading state information... Done >> guile-2.0-dev is already the newest version (2.0.13+1-4). > > Guix does not interact with your system, and ensures that it does not > use anything from it when building. Otherwise, the resulting package's > content might depend on the content of the system that built it, and we > wouldn't be able to ensure reproducibility across all the linux > distributions. > > Instead, Guix builds packages in its own container system, completely > isolated from the system, your environment variables, etc... In order > to ensure guile is present in this container, you must declare it as a > dependency (we call that an "input"). You'll also need pkg-config, so > the package definition would look like this: > > (package > (name "guile-json") > ... > (build-system gnu-build-system) > (native-inputs > `(("pkg-config" ,pkg-config))) > (inputs > `(("guile" guile-3.0))) > ... > (license gpl3+)) > > With the necessary imports at the beginning of the file. You can have a > look at the actual definition we use in Guix with: > > guix edit guile-json > > Another possibility, as guile-json is available in Guix (we have 1.2.0, > 3.5.0 and 4.0.1 currently) is to use the available recipe for guile-json > but with a different source, like this: > > guix install guile-json@3.5.0 --with-source=https://... > > Not tested and if something changed in the build instructions, it might > break, but it's certainly easier than creating your own definition from > scratch. I specify the version since it's the closest to the version > you want (in fact the recipe has not changed for guile-json 4, which > would be the one used if you don't specify a version). > > Note that you'll need guile itself in your profile too in order for > guile-json to be useful. > >> >> In my .bashrc I set the variable such that at the terminal prompt: >> >> echo $PKG_CONFIG_PATH >> /home/mbc/.guix-profile/lib/pkgconfig >> >> Where did I go wrong? > > As said above, guix just doesn't care about your environment :) > >> Thanks >> Mortimer >> I need guile-json >= 4.2 because 4.2 provides guile-json-mapping I modified PATH: mbc@xps:~$ echo $PATH /opt/gradle/gradle-4.8.1/bin:/home/mbc/bin:/gnu/profiles/base/bin:/usr/share/lintian/overrides:/usr/local/bin/guile:/home/mbc/.guix-profile/bin:/home/mbc/.nvm/versions/node/v12.16.3/bin:/usr/local/bin:/usr/bin:/bin: mbc@xps:~$ export PATH=/home/mbc/.config/guix/current/bin/guix:$PATH mbc@xps:~$ echo $PATH /home/mbc/.config/guix/current/bin/guix:/opt/gradle/gradle-4.8.1/bin:/home/mbc/bin:/gnu/profiles/base/bin:/usr/share/lintian/overrides:/usr/local/bin/guile:/home/mbc/.guix-profile/bin:/home/mbc/.nvm/versions/node/v12.16.3/bin:/usr/local/bin:/usr/bin:/bin: /home/mbc/.config/guix/current/bin/guix is first but: mbc@xps:~$ hash guix mbc@xps:~$ type guix guix is hashed (/usr/local/bin/guix) mbc@xps:~$ Thanks Mortimer