ld.so.1: pg_id: fatal: libgen.so.1: open failed: No such file or directory Unable to determine a valid username. If you are running initdb without an explicit username specified, then there may be a problem with finding the Postgres shared library and/or the pg_id utility.