Re: cannot find PGXS file when installing an extension?

From: Luca Ferrari <fluca1978(at)gmail(dot)com>
To: p(dot)luzanov(at)postgrespro(dot)ru
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: cannot find PGXS file when installing an extension?
Date: 2018-11-02 12:16:43
Message-ID: CAKoxK+7Np4xtfGSir96-QEigiuN2PF57xD70dOON+WG-TLrK1Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Nov 2, 2018 at 12:46 PM Pavel Luzanov <p(dot)luzanov(at)postgrespro(dot)ru> wrote:
>
> Luca,
>
> 'sudo make install' command works in the environment of the superuser and most likely does not see pg_config utility .
>
> Specify the location of pg_config explicitly:
> sudo make install PG_CONFIG=/opt/pg11/bin/pg_config

No, it's not a path problem since I'm unable to run make even with my user:

cleopatra% which pg_config && make
/opt/pg11/bin/pg_config
make: "/usr/home/luca/tmp/fluca/Makefile" line 5: Could not find
make: Fatal errors encountered -- cannot continue
make: stopped in /usr/home/luca/tmp/fluca

By the way:

cleopatra% sudo make install PG_CONFIG=/opt/pg11/bin/pg_config
Password:
make: "/usr/home/luca/tmp/fluca/Makefile" line 5: Could not find
make: Fatal errors encountered -- cannot continue
make: stopped in /usr/home/luca/tmp/fluca

Any other idea?
Thanks,
Luca

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2018-11-02 12:28:58 Re: Add columns to table; insert values based on row
Previous Message James A. Robinson 2018-11-02 11:55:00 Re: Working around, or with, bitmap heap scan?