skip to Main Content

I am trying to install PostgreSQL and Apache AGE-DB on Ubuntu 20.04, but upon configuring Apache Age with PostgreSQL I am getting this error **make: *** No rule to make target.
**

I am trying to run this command, I think the path is correctly mentioned here or am I missing something?

sudo make PG_CONFIG=/home/abdulsamad/Downloads/age_installation/pg/postgresql-11.18/bin/pg_config install

It produces the following error

Makefile:118: /home/abdulsamad/Downloads/age_installation/pg/postgresql-11.18/lib/postgresql/pgxs/src/makefiles/pgxs.mk: No such file or directory
make: *** No rule to make target '/home/abdulsamad/Downloads/age_installation/pg/postgresql-11.18/lib/postgresql/pgxs/src/makefiles/pgxs.mk'.  Stop.

5

Answers


  1. I think the repository is not cloned correctly. Try cloning the repository again and then execute the same command.

    git clone https://github.com/apache/age.git
    
    cd age/
    sudo make PG_CONFIG=/home/talhastinyasylum/Desktop/age_installation/pg/postgresql-11.18/bin/pg_config install
    make PG_CONFIG=/home/talhastinyasylum/Desktop/age_installation/pg/postgresql-8/bin/pg_config installcheck
    
    Login or Signup to reply.
  2. I will suggest that do installation process again

    source to guide

    from this guide follow steps

    For debug you can check all dependencies are successfully installed or not.
    Check path PG_CONFIG is executable or not.
    Make sure the path you provided is correct.

    but it is better follow above link and do it step wise it will solve problem

    Login or Signup to reply.
  3. I also had similar issues while installing the AGE v1.3.0, I just deleted the age repo and cloned again and then followed this documentation,
    https://theundersurfers.netlify.app/age-installation/
    It was installed without any issues and now it’s working fine.

    Login or Signup to reply.
  4. I’d suggest you use a relative path from your present working directory.

    For Example, If

    $ pwd
    /home/abdulsamad/Downloads/age_installation
    

    Then

    sudo make PG_CONFIG=../pg/postgresql-11.18/bin/pg_config install
    
    Login or Signup to reply.
  5. I think installation or cloning didn’t went well. Clone the age repo and installation process again.
    for cloning run the following command.

    git clone https://github.com/apache/age.git

    and do installation again using your above command.

    sudo make PG_CONFIG=/home/abdulsamad/Downloads/age_installation/pg/postgresql-11.18/bin/pg_config install

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