[Pgcluster-general] Bug?

Marcelo/Porks marcelorossi at gmail.com
Thu Jan 4 19:45:39 UTC 2007


On 1/4/07, "Tomás A. Rossi" <tomas at mecon.gov.ar> wrote:
> Hello yet again,

Hi!

> The error occurs when I try to run initdb like this:
>
> | %/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
> | fgets failure: Resource temporarily unavailable
> | The program "postgres" is needed by initdb but was not found in the
> | same directory as "/usr/local/pgsql/bin/initdb".
> | Check your installation.

Some time ago a friend told to me about this problem.
He said that the problem was the compilation method. So... try to use
this method:

./configure --with-openssl --with-pam
gmake
su
gmake install
pw adduser postgres
mkdir /home/postgres
chown postgres:postgres /home/postgres
mkdir /usr/local/pgsql/data
mkdir /usr/local/pgsql/etc/
chown -R postgres:postgres /usr/local/pgsql
su -l postgres
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data

It's like that the option --threads-safety doesn't work at BSD

With me and with my friend this method works fine.

: )

-- 
Marcelo Rossi


More information about the Pgcluster-general mailing list