Re: BUG #5267: initdb fails on AIX: could not identify current directory

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Michael Felt" <mamfelt(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5267: initdb fails on AIX: could not identify current directory
Date: 2010-01-06 16:03:56
Message-ID: 2871.1262793836@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Michael Felt" <mamfelt(at)gmail(dot)com> writes:
> I have compiled postgresql on AIX 6.1 without a great deal of difficulity
> (./configure -without-readline -without-zlib).

> However, the fist step - initdb - fails. I have not been able to determine
> which directory it is complaining about.

> could not identify current directory: The file access permissions do not
> allow the specified action.

This message means that getcwd() failed, apparently with an EACCESS
code. Typically what that means is that some parent directory of
the current directory is not readable or searchable by the user you
ran initdb as.

I believe that initdb also invokes getcwd for the directory that
its own executable is in, and possibly for the target data directory,
so you should check the paths leading to those as well.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Mike Landis 2010-01-07 04:11:03 BUG #5268: PQgetvalue incorrectly returns 0
Previous Message Alvaro Herrera 2010-01-06 15:18:59 Re: BUG #5267: initdb fails on AIX: could not identify current directory