PostgreSQL ‘initdb’ fails to find ‘locale’ program

  • Open
  • quality assurance status badge
Details
One participant
  • Ludovic Courtès
Owner
unassigned
Submitted by
Ludovic Courtès
Severity
normal

Debbugs page

Ludovic Courtès wrote 8 months ago
(address . bug-guix@gnu.org)
87a5iv4jq7.fsf@inria.fr
PostgreSQL initialization tries to invoke the ‘locale’ program and
fails:

Toggle snippet (23 lines)
fixing permissions on existing directory /var/lib/postgresql/data ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... sysv
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... Europe/Oslo
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... sh: line 1: locale: command not found
2024-07-05 23:20:32.321 CEST [96] WARNING: no usable system locales were found
ok
syncing data to disk ... ok

initdb: warning: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

/gnu/store/2yj5sbnqdhxpn47cd2gzi9s8gvl35h9y-postgresql-13.12/bin/pg_ctl -D /var/lib/postgresqt


Ludo’.
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 71955@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 71955
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help