From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: locale warning and postgresql Date: Tue, 29 Nov 2016 13:54:21 +0100 Message-ID: <87inr68n0i.fsf@gnu.org> References: <87eg1vitxf.fsf@gmail.com> <877f7nmiu7.fsf@gnu.org> <87d1hfi6nf.fsf@gmail.com> 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]:54325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBhvY-00060O-Gr for help-guix@gnu.org; Tue, 29 Nov 2016 07:54:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBhvU-0003qK-Hk for help-guix@gnu.org; Tue, 29 Nov 2016 07:54:28 -0500 In-Reply-To: <87d1hfi6nf.fsf@gmail.com> (Myles English's message of "Mon, 28 Nov 2016 22:25:24 +0000") 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: Myles English Cc: help-guix Hi! Myles English skribis: > on [2016-11-28] at 20:48 Ludovic Court=C3=A8s writes: > >> Myles English skribis: >> >>> I have always had trouble with my locale after installing guix on Arch >>> Linux (with zsh and a basic window manager, bspwm). I have set >>> GUIX_LOCPATH in ~/.zshenv and it appears correct in my shell. The >>> system-wide locale looks right. > > I should say that I have tried guix several times and usually (always?) > get the locale warning. > >>> When I install postgresql it gives the usual "warning: failed to >>> install locale: Invalid argument". When I try to initialise a >>> database cluster, passing the locale doesn't work. >>> >>> Does anyone using Arch Linux and a basic WM know which file to put >>> GUIX_LOCPATH in so that the warning goes away? >>> >>> How can I find out what guix thinks its locale is or what are available? >>> >>> Is there a way to use initdb even though there is a locale warning? >>> >>> Shell experiments: >>> >>> $ locale >>> LANG=3Den_GB.UTF-8 >>> LC_CTYPE=3D"en_GB.UTF-8" >>> LC_NUMERIC=3D"en_GB.UTF-8" >>> LC_TIME=3D"en_GB.UTF-8" >>> LC_COLLATE=3D"en_GB.UTF-8" >>> LC_MONETARY=3D"en_GB.UTF-8" >>> LC_MESSAGES=3D"en_GB.UTF-8" >>> LC_PAPER=3D"en_GB.UTF-8" >>> LC_NAME=3D"en_GB.UTF-8" >>> LC_ADDRESS=3D"en_GB.UTF-8" >>> LC_TELEPHONE=3D"en_GB.UTF-8" >>> LC_MEASUREMENT=3D"en_GB.UTF-8" >>> LC_IDENTIFICATION=3D"en_GB.UTF-8" >>> LC_ALL=3D >>> >>> $ echo $GUIX_LOCPATH >>> /home/myles/.guix-profile/lib/locale >> >> What does =E2=80=9Cls $GUIX_LOCPATH/2.24=E2=80=9D show? > > $ ls $GUIX_LOCPATH/2.24 > ls: cannot access '/home/myles/.guix-profile/lib/locale/2.24': No such fi= le or directory > > Ah Hah! See? :-) >> You must make sure you have the =E2=80=98glibc-locales=E2=80=99 or =E2= =80=98glibc-utf8-locales=E2=80=99 >> that correspond to the glibc version of the program you are using (if >> you just installed postgresql, it=E2=80=99s using glibc 2.24.) > > So I need to reinstall glibc-utf8-locales? But alas... > > $ guix package -i glibc-utf8-locales > warning: failed to install locale: Invalid argument <<< Grrrrr! Bad g= uix! Naughty! At this point, I wouldn=E2=80=99t mind getting rid of this message altogeth= er. :-) > Then I tried: > > $ guix graph --type=3Dbag-emerged postgresql | dot -Tpdf > dag.pdf > > which I think shows that postgresql 9.5.3 depends on > glibc-utf8-locales-2.23. This is showing you compile-time (not run-time) dependencies of postgresql, possibly a version other than the one you installed. > How can I install glibc 2.24 ? If you install a postgresql from a recentish Guix, it=E2=80=99ll be linked against glibc 2.24. Ludo=E2=80=99.