# emerge --config =dev-db/postgresql-server-8.1.13 Configuring pkg... * You can pass options to initdb by setting the PG_INITDB_OPTS variable. * More information can be found here: * http://www.postgresql.org/docs/8.1/static/creating-cluster.html * http://www.postgresql.org/docs/8.1/static/app-initdb.html * Simply add the options you would have added to initdb to the PG_INITDB_OPTS variable. * * You can change the directory where the database cluster is being created by setting * the PGDATA variable. * * PG_INITDB_OPTS is currently set to: * "" * and the database cluster will be created in: * "/var/lib/postgresql/data/" * Are you ready to continue? (Y/n) * Checking system parameters... * Checking whether your system supports at least 128 connections... * Passed. * Creating the data directory ... * Initializing the database ... 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 C. fixing permissions on existing directory /var/lib/postgresql/data ... ok creating directory /var/lib/postgresql/data/global ... ok creating directory /var/lib/postgresql/data/pg_xlog ... ok creating directory /var/lib/postgresql/data/pg_xlog/archive_status ... ok creating directory /var/lib/postgresql/data/pg_clog ... ok creating directory /var/lib/postgresql/data/pg_subtrans ... ok creating directory /var/lib/postgresql/data/pg_twophase ... ok creating directory /var/lib/postgresql/data/pg_multixact/members ... ok creating directory /var/lib/postgresql/data/pg_multixact/offsets ... ok creating directory /var/lib/postgresql/data/base ... ok creating directory /var/lib/postgresql/data/base/1 ... ok creating directory /var/lib/postgresql/data/pg_tblspc ... ok selecting default max_connections ... 100 selecting default shared_buffers ... 1000 creating configuration files ... ok creating template1 database in /var/lib/postgresql/data/base/1 ... ok initializing pg_authid ... ok enabling unlimited row size for system tables ... ok initializing dependencies ... sh: line 1: 2537 Illegal instruction "/usr/lib/postgresql-8.1/bin/postgres" -F -O -c search_path=pg_catalog -c exit_on_error=true template1 > /dev/null child process exited with exit code 132 initdb: removing contents of data directory "/var/lib/postgresql/data" * * You can use the '//etc/init.d/postgresql-8.1' script to run PostgreSQL instead of 'pg_ctl'. * * You didn't install the database cluster in the standard location, please make sure that you set * PGDATA="/var/lib/postgresql/data/" in the appropriate conf.d file (probably /etc/conf.d/postgresql-8.1)
tried dev-db/postgresql-8.0.15 dev-db/postgresql-7.4.19 dev-db/postgresql-8.1.11 they exit at the same place. i think they don't find the postgresql.conf pg_ident.conf pg_hba.conf files
/etc/conf.d/postgresql-8.1 comes with PGDATA="/var/lib/postgresql/8.1/data" changind that to PGDATA="/var/lib/postgresql/data" does not do the trick.
# su - postgres ~ $ initdb produces the same result, but ~ $ /usr/lib/postgresql-8.1/bin/postgres -F -O -c search_path=pg_catalog -c exit_on_error=true template1 /usr/lib/postgresql-8.1/bin/postgres cannot access the server configuration file "/var/lib/postgresql/data/postgresql.conf": No such file or directory
had to emerge with USE="readline xml" for the --config to work