skip to Main Content

I am trying to install PostgreSQL for the first time. How to solve this issue while running make command.

Issue

I have tried running sudo make andsudo make clean but still no success.

7

Answers


  1. You forgot the install command. Try this:

    cd age_installation/pg
    
    ./configure --enable-debug --enable-cassert --prefix=$(pwd) CFLAGS="-ggdb -Og -fno-omit-frame-pointer"
    
    sudo make install
    
    Login or Signup to reply.
  2. You have to configure PostgreSQL to ensure that it is tailored to your system by running

    ./configure --prefix=$(pwd) --enable-cassert --enable-debug

    In your Postgres directory.

    Then you can run make && make install

    You can check out this blogpost on installing Postgres from source code link

    Login or Signup to reply.
  3. Configure it before make & make install.

    ./configure --enable-debug --enable-cassert --prefix=$(pwd) CFLAGS="-ggdb -Og -fno-omit-frame-pointer"
    

    Step by step guide is available here.

    Login or Signup to reply.
  4. First, make sure you are in the correct directory. If you have downloaded and extracted Postgres correctly, the directory should have a Makefile and other installation files. You should be in that directory.

    If that is not the case, you first need to run a configure command.

    # configure by setting flags
    ./configure --enable-debug --enable-cassert --prefix=$(pwd) CFLAGS="-ggdb -Og -fno-omit-frame-pointer"
    

    and then install using

    make install
    

    Follow this link for a complete installation guide.

    Login or Signup to reply.
  5. See if there is another directory inside pg directory for postgres installation.
    Go in that directory if postgres is not directly installed in pg directory but in the directory inside pg directory like in pg/postgres——- and then run make and make install commands

    Login or Signup to reply.
  6. It seems you have forgot configure command

    Try to follow this blog step by step, it has all the guide and prerequisite by which you can successfully install apache age.

    Login or Signup to reply.
  7. Make sure you have downloaded postgreSQL correctly and you are currently in the appropriate directory.

    If not then use the below commands to install the PostgreSQL again.

    Download the files in the folder age-installation/pg
    The command downloads and extracts the tar files in the working

    directory
    wget https://ftp.postgresql.org/pub/source/v11.18/postgresql-11.18.tar.gz && tar -xvf postgresql-11.18.tar.gz && rm -f postgresql-11.18.tar.gz
    

    And once the step is done now you can run the below commands to install PG.

    cd postgresql-11.18
    
    # configure by setting flags
    ./configure --enable-debug --enable-cassert --prefix=$(path) CFLAGS="-ggdb -Og -fno-omit-frame-pointer"
    
    # now install
    make install
    

    More help can be taken from PostgreSQL docs

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