pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
/usr/local/pgsql is empty after successful of make
5+ messages / 4 participants
[nested] [flat]

* /usr/local/pgsql is empty after successful of make
@ 2023-08-06 16:00 Aramaki Zyake <zyake.mk4@gmail.com>
  2023-08-06 16:05 ` Re: /usr/local/pgsql is empty after successful of make Julien Rouhaud <rjuju123@gmail.com>
  2023-08-06 16:08 ` Re: /usr/local/pgsql is empty after successful of make Tom Lane <tgl@sss.pgh.pa.us>
  2023-08-06 16:09 ` Re: /usr/local/pgsql is empty after successful of make Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 3 replies; 5+ messages in thread

From: Aramaki Zyake @ 2023-08-06 16:00 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

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

I attached stdout of make command.

This issue was 100% reproducible and there is no error message in the log
file and stderr was empty.
As far as I remember, these commands/arguments were sufficient to move
built artifacts into /usr/local/pgsql in the past.

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

Attachments:

  make.log.gz (application/x-gzip, 2.8K) download

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: /usr/local/pgsql is empty after successful of make
  2023-08-06 16:00 /usr/local/pgsql is empty after successful of make Aramaki Zyake <zyake.mk4@gmail.com>
@ 2023-08-06 16:05 ` Julien Rouhaud <rjuju123@gmail.com>
  2 siblings, 0 replies; 5+ messages in thread

From: Julien Rouhaud @ 2023-08-06 16:05 UTC (permalink / raw)
  To: Aramaki Zyake <zyake.mk4@gmail.com>; +Cc: pgsql-general@lists.postgresql.org

Hi,

On Mon, Aug 7, 2023 at 12:00 AM Aramaki Zyake <zyake.mk4@gmail.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.





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: /usr/local/pgsql is empty after successful of make
  2023-08-06 16:00 /usr/local/pgsql is empty after successful of make Aramaki Zyake <zyake.mk4@gmail.com>
@ 2023-08-06 16:08 ` Tom Lane <tgl@sss.pgh.pa.us>
  2 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2023-08-06 16:08 UTC (permalink / raw)
  To: Aramaki Zyake <zyake.mk4@gmail.com>; +Cc: pgsql-general@lists.postgresql.org

Aramaki Zyake <zyake.mk4@gmail.com> writes:
> What should I do to move built artifacts into /usr/local/pgsql?

"make install", or possibly "sudo make install" if you'd rather
the installed files be root-owned.

https://www.postgresql.org/docs/current/install-short.html

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: /usr/local/pgsql is empty after successful of make
  2023-08-06 16:00 /usr/local/pgsql is empty after successful of make Aramaki Zyake <zyake.mk4@gmail.com>
@ 2023-08-06 16:09 ` Adrian Klaver <adrian.klaver@aklaver.com>
  2023-08-06 16:14   ` Re: /usr/local/pgsql is empty after successful of make Aramaki Zyake <zyake.mk4@gmail.com>
  2 siblings, 1 reply; 5+ messages in thread

From: Adrian Klaver @ 2023-08-06 16:09 UTC (permalink / raw)
  To: Aramaki Zyake <zyake.mk4@gmail.com>; pgsql-general@lists.postgresql.org

On 8/6/23 09:00, Aramaki Zyake 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
> 
> I attached stdout of make command.
> 
> This issue was 100% reproducible and there is no error message in the 
> log file and stderr was empty.
> As far as I remember, these commands/arguments were sufficient to move 
> built artifacts into /usr/local/pgsql in the past.
> 
> What should I do to move built artifacts into /usr/local/pgsql?

Follow the instructions here:

https://www.postgresql.org/docs/current/installation.html

In particular:

https://www.postgresql.org/docs/current/install-procedure.html

4.Installing the Files

-- 
Adrian Klaver
adrian.klaver@aklaver.com






^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: /usr/local/pgsql is empty after successful of make
  2023-08-06 16:00 /usr/local/pgsql is empty after successful of make Aramaki Zyake <zyake.mk4@gmail.com>
  2023-08-06 16:09 ` Re: /usr/local/pgsql is empty after successful of make Adrian Klaver <adrian.klaver@aklaver.com>
@ 2023-08-06 16:14   ` Aramaki Zyake <zyake.mk4@gmail.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Aramaki Zyake @ 2023-08-06 16:14 UTC (permalink / raw)
  To: Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: pgsql-general@lists.postgresql.org

Thank you for prompt response!
I'll try it:)

On Mon, Aug 7, 2023, 01:09 Adrian Klaver <adrian.klaver@aklaver.com> wrote:

> On 8/6/23 09:00, Aramaki Zyake 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
> >
> > I attached stdout of make command.
> >
> > This issue was 100% reproducible and there is no error message in the
> > log file and stderr was empty.
> > As far as I remember, these commands/arguments were sufficient to move
> > built artifacts into /usr/local/pgsql in the past.
> >
> > What should I do to move built artifacts into /usr/local/pgsql?
>
> Follow the instructions here:
>
> https://www.postgresql.org/docs/current/installation.html
>
> In particular:
>
> https://www.postgresql.org/docs/current/install-procedure.html
>
> 4.Installing the Files
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com
>
>

^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2023-08-06 16:14 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-08-06 16:00 /usr/local/pgsql is empty after successful of make Aramaki Zyake <zyake.mk4@gmail.com>
2023-08-06 16:05 ` Julien Rouhaud <rjuju123@gmail.com>
2023-08-06 16:08 ` Tom Lane <tgl@sss.pgh.pa.us>
2023-08-06 16:09 ` Adrian Klaver <adrian.klaver@aklaver.com>
2023-08-06 16:14   ` Aramaki Zyake <zyake.mk4@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox