Hello!Why you tried using /usr/pgsql-10/bin/postgresql-10-setup instead /usr/pgsql-10/bin/initdb ?
regards, Sergei