2017-03-14 17:17 GMT+01:00 Ludovic Courtès <ludo@gnu.org>:
Hello!

Catonano <catonano@gmail.com> skribis:

> I added a postgresql service to the list of my services, like this
>
> (services (cons* (postgresql-service #:locale "it_IT.UTF-8")
>                 (gnome-desktop-service)
>                 (xfce-desktop-service)
>                   %desktop-services))
>
> This is an excerpt of the "guix system reconfigure etc/config.scm" log
>
> ...
> loading system objects' descriptions ... ok
> creating collations ... sh: locale: command not found
> ok
> No usable system locales were found.
> Use the option "--debug" to see details.
> ...

It looks like the ‘initdb’ attempts to invoke the ‘locale’ command (from
glibc), which it cannot find here.  If this is correct, then we should
add ‘locale’ to the PATH when invoking ‘initdb’.

Christopher: WDYT?

Thanks,

I reconfigured my system and suddenly the postgres locale works !

Thanks !