Re: /usr/local/pgsql is empty after successful of make

From: Julien Rouhaud <rjuju123(at)gmail(dot)com>
To: Aramaki Zyake <zyake(dot)mk4(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: /usr/local/pgsql is empty after successful of make
Date: 2023-08-06 16:05:57
Message-ID: CAOBaU_a8fY49X4MzHi1+mv2w_JJ6_f2Nrb1V4EVZdo_MC13w7A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

On Mon, Aug 7, 2023 at 12:00 AM Aramaki Zyake <zyake(dot)mk4(at)gmail(dot)com> wrote:
>
> Hi,
> I have a general question about PostgreSQL.
> Yeasterday, I tried to build PostgreSQL from source code and the make command succeeded, but /usr/local/pgsql directory was empty even owner of pgsql was postgres user.
>
> I invoked following commands by postgres user.
>
> CFLAGS=-O0 ./configure --enable-debug
> make -j 2 > make.log
> [...]
> As far as I remember, these commands/arguments were sufficient to move built artifacts into /usr/local/pgsql in the past.

I don't think it ever behaved that way, but I might be wrong.

> What should I do to move built artifacts into /usr/local/pgsql?

the default (all) target only compiles artifacts, you need to invoke
"make install" to copy the various artifacts in the location specified
during configure (or default location), as documented in step 4 of
https://www.postgresql.org/docs/current/install-procedure.html.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2023-08-06 16:08:13 Re: /usr/local/pgsql is empty after successful of make
Previous Message Aramaki Zyake 2023-08-06 16:00:08 /usr/local/pgsql is empty after successful of make