skip to Main Content

While installing Apache AGE from master branch, on PostgreSQL 14, the following error appeared while issuing make install:

/usr/bin/install: cannot remove '/usr/local/pgsql/lib/age.so': Permission denied
make: *** [/usr/local/pgsql/lib/pgxs/src/makefiles/../../src/Makefile.shlib:456: install-lib-shared] Error 1

What should I do to fix this?

What I tried was using the command sudo chown <user> /usr/local/pgsql/. This didn’t help and the error persisted. Any tips on solving this?

3

Answers


  1. Try using chown with the -R flag, so it will change the owner of all the files within the folder:

    sudo chown -R <user> /usr/local/pgsql/
    

    This may fix the issue.

    Login or Signup to reply.
  2. I hope sudo chown -R <user> /usr/local/pgsql/ has solved your problem.

    As per official documentation, AGE doesn’t support PostgreSQL-14 yet.

    Reference

    Login or Signup to reply.
  3. your libraries are not installed first do

    sudo make clean
    

    then do

    brew install build-essential libreadline zlib flex bison
    

    then install postgres 12 version
    after that do sudo make

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