pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Michael Nolan <htfoot@gmail.com>
To: Don Seiler <don@seiler.us>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: initdb failing (10.4 centos7)
Date: Sat, 19 May 2018 15:23:09 -0700
Message-ID: <e8145032-6f0b-86e5-1e54-19eea0d716d7@aklaver.com> (raw)
In-Reply-To: <CAOzAquL_k_dvQbrvGTt63M4uPu-CmUQSpuOQK1=JzLB7VOPE1g@mail.gmail.com>
References: <CAOzAquK-L-==jjeJDf=FgDhewOKSEguXFWG3ZhzttRvso9qwVw@mail.gmail.com>
	<CAHJZqBCfVpBkJdy-E-b+hYXhm2Bt2HpONknWUOM=LmpWM-4DdA@mail.gmail.com>
	<CAOzAquL_k_dvQbrvGTt63M4uPu-CmUQSpuOQK1=JzLB7VOPE1g@mail.gmail.com>

On 05/19/2018 03:16 PM, Michael Nolan wrote:
> 
> 
> On Sat, May 19, 2018 at 2:16 PM, Don Seiler <don@seiler.us 
> <mailto:don@seiler.us>> wrote:
> 
>     On Sat, May 19, 2018 at 2:10 PM, Michael Nolan <htfoot@gmail.com
>     <mailto:htfoot@gmail.com>> wrote:
> 
>         initdb is failing on Centos 7 with 10.4 because the install
>         procedure does not change the ownership of the /usr/local/pgsql
>         directory to postgres.
> 
>         Changing the ownership fixes the problem, but the install
>         procedure should do this. 
> 
> 
> 
>     Are you using the PGDG repo packages, or the default CentOS repo
>     packages? You should use PGDG and those should install under
>     /var/lib/pgsql.
> 
>     Don.
>     -- 
>     Don Seiler
>     www.seiler.us <http://www.seiler.us;
> 
> 
> I was installing from source code, so I did a configure and a build (as 
> postgres) and then an install (as root).

Then setting up the $DATADIR is on you:

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


> --
> Mike Nolan


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (11+ messages)  latest in thread

Message-ID: <e8145032-6f0b-86e5-1e54-19eea0d716d7@aklaver.com>
Permalink:  ../e8145032-6f0b-86e5-1e54-19eea0d716d7@aklaver.com/
Also on:    postgresql.org/message-id/e8145032-6f0b-86e5-1e54-19eea0d716d7@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, htfoot@gmail.com, don@seiler.us
  Subject: Re: initdb failing (10.4 centos7)
  In-Reply-To: <e8145032-6f0b-86e5-1e54-19eea0d716d7@aklaver.com>
  References: <CAOzAquK-L-==jjeJDf=FgDhewOKSEguXFWG3ZhzttRvso9qwVw@mail.gmail.com> <CAHJZqBCfVpBkJdy-E-b+hYXhm2Bt2HpONknWUOM=LmpWM-4DdA@mail.gmail.com> <CAOzAquL_k_dvQbrvGTt63M4uPu-CmUQSpuOQK1=JzLB7VOPE1g@mail.gmail.com> <e8145032-6f0b-86e5-1e54-19eea0d716d7@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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