Re: initdb failing (10.4 centos7) - Mailing list pgsql-general

From Adrian Klaver
Subject Re: initdb failing (10.4 centos7)
Date
Msg-id e8145032-6f0b-86e5-1e54-19eea0d716d7@aklaver.com
Whole thread Raw
In response to Re: initdb failing (10.4 centos7)  (Michael Nolan <htfoot@gmail.com>)
Responses Re: initdb failing (10.4 centos7)
List pgsql-general
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


pgsql-general by date:

Previous
From: Michael Nolan
Date:
Subject: Re: initdb failing (10.4 centos7)
Next
From: Michael Nolan
Date:
Subject: Re: initdb failing (10.4 centos7)