I am trying to run an installation check for PostgreSQL using make PG_CONFIG=../postgresql-11.17/bin/pg_config installcheck
in the age directory and I am getting an error message saying "pg_regress: initdb failed" with a DETAIL message saying that the data directory has invalid permissions. I have also checked the contents of the initdb.log file which says,
" running bootstrap script ... 2023-04-11 09:48:37.706 WAT [1262] FATAL: data directory "/mnt/c/Users/HP/documents/the_age_project/age/./regress/instance/data" has invalid permissions 2023-04-11 09:48:37.706 WAT [1262] DETAIL: Permissions should be u=rwx (0700) or u=rwx,g=rx (0750). child process exited with exit code 1 initdb: data directory "/mnt/c/Users/HP/documents/the_age_project/age/./regress/instance/data" not removed at user's request "
Can anyone suggest a solution or troubleshooting steps to resolve this issue? Any help would be greatly appreciated.
I have tried changing the permissions of the data directory to u=rwx and g=rx but the error persists. I have also checked the contents of the initdb.log file but could not identify the cause of the problem.