skip to Main Content

I have installed PostgreSQL ( PG11 ) and using the AGE source code of master branch ( supports PG11 ), also I do the make install command successfully , LOAD AGE and use it smoothly without problems.
But now I am trying to run the make installcheck command but actually it gives "pg_regress: initdb failed" error.

Notes :

  • mainly using windows OS , use ubuntu on top of it (WSL tool)
  • installed PG 11.20 ( Major 11 , Minor 20 )
  • cloned age repo , working with master branch checked out .

I already checked that the age , PostgreSQL installed in Linux directory files not /mnt/ but also same problem , I want to use it to check the regression tests ( to use it later on in validating/debugging versions )

and here are some images of problem :

PG version

pg_regress: initdb failed

Thanks for your help and collaboration 🙂 !

2

Answers


  1. when you use make installcheck dont use sudo. If that doesn’t fix that make sure you have permissions on the /bin in the path /usr/local/<name_of_folder_you_installed_postgres>/bin by using
    sudo chown <username> /usr/local/<name_of_folder_you_installed_postgres>/bin

    Login or Signup to reply.
  2. Using super user to run make installcheck might be the reason why there is an error. For a detailed guide to solve this, refer to the following posts on how to successfully install AGE on Postgres 11 using WSL;

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search