initdb fails on Centos 5.4 x64

From: valentin(dot)hocher(at)kabelbw(dot)de (Valentin Hocher)
To: pgsql-general(at)postgresql(dot)org
Subject: initdb fails on Centos 5.4 x64
Date: 2010-05-07 16:52:31
Message-ID: 1273251151.4be4454f3cf67@kabelbw.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

i've tried to install 8.4.3 for about two days, but i don't get it.

8.1.x has been installed before and was runnig but never used. I've removed it with yum and wiped /var/lib/pgsl.

-=>> service postgresql initdb
Initializing database: [FAILED]

-=>> cat /var/lib/pgsql/pgstartup.log
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale en_US.UTF-8.
The default database encoding has accordingly been set to UTF8.
The default text search configuration will be set to "english".

fixing permissions on existing directory /var/lib/pgsql/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 24MB
creating configuration files ... ok
creating template1 database in /var/lib/pgsql/data/base/1 ... ok
initializing pg_authid ... ok
initializing dependencies ... ok
creating system views ... ok
loading system objects' descriptions ... ok
creating conversions ... FATAL: could not load library "/usr/lib64/pgsql/utf8_and_shift_jis_2004.so": /usr/lib64/pgsql/utf8_and_shift_jis_2004.so: failed to map segment from shared object: Cannot allocate memory
STATEMENT: CREATE OR REPLACE FUNCTION shift_jis_2004_to_utf8 (INTEGER, INTEGER, CSTRING, INTERNAL, INTEGER) RETURNS VOID AS '$libdir/utf8_and_shift_jis_2004', 'shift_jis_2004_to_utf8' LANGUAGE C STRICT;

child process exited with exit code 1
initdb: removing contents of data directory "/var/lib/pgsql/data"

-=>> rpm -qa | grep postgre
postgresql-libs-8.1.18-2.el5_4.1
postgresql-libs-8.4.3-2PGDG.el5
postgresql-devel-8.4.3-2PGDG.el5
compat-postgresql-libs-4-1PGDG.rhel5
postgresql-server-8.4.3-2PGDG.el5
postgresql-plperl-8.4.3-2PGDG.el5
postgresql-8.4.3-2PGDG.el5
postgresql-contrib-8.4.3-2PGDG.el5

-=>> ldd /usr/lib64/pgsql/utf8_and_shift_jis_2004.so
libc.so.6 => /lib64/libc.so.6 (0x00002aad6e656000)
/lib64/ld-linux-x86-64.so.2 (0x0000003777a00000)

The server is running with 8 gigs ram, so i think there should be enough mem?

Thanks,

Valentin

Responses

Browse pgsql-general by date

  From Date Subject
Next Message sunpeng 2010-05-07 17:13:38 what's the relation between pathkey and path in optimize phase?
Previous Message AllieH 2010-05-07 16:10:01 postgreSQL not working after upgrade to Ubuntu 10.4