From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Wilms Subject: Re: Can't configure guix, no guile-sqlite3 Date: Thu, 2 Aug 2018 13:40:19 +0200 Message-ID: <52dc709a-7b4a-4d96-9cf3-eb211bbccbe9@freenet.de> References: <6c8ead34-ddc5-1916-8333-68d87beacbf1@freenet.de> <87o9elcke1.fsf@gmail.com> Reply-To: t_w_@freenet.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1flC0d-0000er-BV for help-guix@gnu.org; Thu, 02 Aug 2018 07:43:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1flC0a-0008Bu-6o for help-guix@gnu.org; Thu, 02 Aug 2018 07:43:11 -0400 Received: from mout3.freenet.de ([2001:748:100:40::2:5]:55492) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1flC0Z-00088G-VB for help-guix@gnu.org; Thu, 02 Aug 2018 07:43:08 -0400 Received: from [195.4.92.164] (helo=mjail1.freenet.de) by mout3.freenet.de with esmtpa (ID t_w_@freenet.de) (port 25) (Exim 4.90_1 #2) id 1flC0V-0005aj-NW for help-guix@gnu.org; Thu, 02 Aug 2018 13:43:03 +0200 Received: from [::1] (port=45470 helo=mjail1.freenet.de) by mjail1.freenet.de with esmtpa (ID t_w_@freenet.de) (Exim 4.90_1 #2) id 1flC0V-0003Fz-MK for help-guix@gnu.org; Thu, 02 Aug 2018 13:43:03 +0200 Received: from sub6.freenet.de ([195.4.92.125]:44094) by mjail1.freenet.de with esmtpa (ID t_w_@freenet.de) (Exim 4.90_1 #2) id 1flBxr-0000h1-TY for help-guix@gnu.org; Thu, 02 Aug 2018 13:40:19 +0200 Received: from p200300e4f3dbcf0002e029fffe32e625.dip0.t-ipconnect.de ([2003:e4:f3db:cf00:2e0:29ff:fe32:e625]:36344) by sub6.freenet.de with esmtpsa (ID t_w_@freenet.de) (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256) (port 465) (Exim 4.90_1 #2) id 1flBxr-0004hi-RC for help-guix@gnu.org; Thu, 02 Aug 2018 13:40:19 +0200 In-Reply-To: <87o9elcke1.fsf@gmail.com> Content-Language: en-GB List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix On 02.08.2018 09:12, Chris Marusich wrote: >> configure: error: Package requirements (sqlite3 >= 3.6.19) were not met: >> No package 'sqlite3' found >> --- > > It sounds like you're saying this error occurs when you've run "guix > environment guix", and then you run "./configure --localstatedir=/var". > Is that right? Yes. > * Run "guix pull" at least twice - without using ./pre-inst-env. Done. > * Start from a clean slate. > make distclean > git clean -dfx > git reset --hard > * Make sure you're using a recent Guix: > > git pull Done > * Now try to build again: > > ./bootstrap > ./configure --localstatedir=/var For the sake of completeness, without `guix environment guix`, this happens: configure.ac:89: error: possibly undefined macro: GUILE_MODULE_AVAILABLE With `guix environment guix` it's again: --- checking for sqlite3 >= 3.6.19... no configure: error: Package requirements (sqlite3 >= 3.6.19) were not met: No package 'sqlite3' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables SQLITE3_CFLAGS and SQLITE3_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. --- > FWIW, you might also consider trying to develop your packages by putting > the package definitions on your own GUIX_PACKAGE_PATH (see "Package > Modules" in the manual), rather than using ./pre-inst-env. > GUIX_PACKAGE_PATH is the recommended way for adding custom packages, > while ./pre-inst-env is technically an unsupported hack that is > primarily useful for developing Guix itself. I have to wonder about "unsupported hack". If it is one, then https://www.gnu.org/software/guix/manual/en/html_node/Packaging-Guidelines.html#Packaging-Guidelines needs to be altered. In this case (a rather obscure Emacs package), it would make sense to use GUIX_PACKAGE_PATH and perhaps not even bother sending a patch. However, for any chance of later, more involved and worthwhile contributions, I figured I should get the process down as described. Especially since even my limited experience tells me any deviation between a test run and later use introduces a risk of some silly mistake to slip in. Been there before, but checking again: Within or outside of `guix environment guix`, same result: which guix => /home/thorwil/.config/guix/current/bin/guix ls -l /home/thorwil/.config/guix/current/bin/guix => lrwxrwxrwx 2 root root 56 Jan 1 1970 /home/thorwil/.config/guix/current/bin/guix -> /gnu/store/aldvc43h0gyqmpl08yzpfgmcz77539sk-guix-command stat /gnu/store/aldvc43h0gyqmpl08yzpfgmcz77539sk-guix-command => Change: 2018-08-02 12:05:49.134396623 +0200 Still, thanks for your detailed email, Chris! -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/