Re: initdb failing (10.4 centos7)

From: Michael Nolan <htfoot(at)gmail(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: Don Seiler <don(at)seiler(dot)us>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: initdb failing (10.4 centos7)
Date: 2018-05-19 22:44:38
Message-ID: CAOzAqu+n3e4-FWzU5J9+qwqiUgd1MMqDuD-M3Lp34ytr41m7pA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, May 19, 2018 at 5:23 PM, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
wrote:

> On 05/19/2018 03:16 PM, Michael Nolan wrote:
>
>>
>>
>> On Sat, May 19, 2018 at 2:16 PM, Don Seiler <don(at)seiler(dot)us <mailto:
>> don(at)seiler(dot)us>> wrote:
>>
>> On Sat, May 19, 2018 at 2:10 PM, Michael Nolan <htfoot(at)gmail(dot)com
>> <mailto:htfoot(at)gmail(dot)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
>
>
Shouldn't this also be mentioned in the INSTALL file in the source
directory then?
--
Mike Nolan

>
>
> --
>> Mike Nolan
>>
>
>
> --
> Adrian Klaver
> adrian(dot)klaver(at)aklaver(dot)com
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2018-05-19 22:50:31 Re: initdb failing (10.4 centos7)
Previous Message Adrian Klaver 2018-05-19 22:23:09 Re: initdb failing (10.4 centos7)