From: 320095285153-0001@t-online.de (Achim Gottinger)
To: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] Problem with installing Postgres
Date: Tue Jan 23 12:24:02 2001 [thread overview]
Message-ID: <3A6D989E.85E4F9FF@gottinger.de> (raw)
In-Reply-To: 01012313253800.01192@pc-linux-r03
Robert Schrem wrote:
> Hi, gentoo rocks !
>
> I tried to install PostgresQL on Gentoo
> using the package dev-db/postgresql-7.0.3.tbz2
> without succsess. I get the following error
> when I run initdb to initialize the postgres on
> disk data structures:
>
> bash-2.04# rm -rf /var/lib/pgsql/*
> bash-2.04# su postgres
> bash-2.04$ /usr/local/pgsql/bin/initdb -D /var/lib/pgsql
> This database system will be initialized with username "postgres".
> This user will own all the data files and must also own the server process.
>
> Fixing permissions on existing directory /var/lib/pgsql
> Creating directory /var/lib/pgsql/base
> Creating directory /var/lib/pgsql/global
> Creating directory /var/lib/pgsql/pg_xlog
> Creating template1 database in /var/lib/pgsql/base/1
> DEBUG: starting up
> DEBUG: database system was shut down at 2001-01-22 12:36:25
> DEBUG: CheckPoint record at (0, 8)
> DEBUG: Redo record at (0, 8); Undo record at (0, 8); Shutdown TRUE
> DEBUG: NextTransactionId: 514; NextOid: 16384
> DEBUG: database system is in production state
> ERROR: Error: unknown type 'ame'.
>
> Creating global relations in /var/lib/pgsql/global
> DEBUG: starting up
> DEBUG: database system was interrupted at 2001-01-22 12:36:25
> DEBUG: CheckPoint record at (0, 8)
> DEBUG: Redo record at (0, 8); Undo record at (0, 8); Shutdown TRUE
> DEBUG: NextTransactionId: 514; NextOid: 16384
> DEBUG: database system was not properly shut down; automatic recovery in
> progress...
> FATAL 2: cannot open pg_log: No such file or directory
>
> initdb failed.
> Removing temp file /tmp/initdb.8499.
> bash-2.04$
>
> Wht does the this error mean?
> ERROR: Error: unknown type 'ame'.
Ok, I found the problem. There are two buggy files in this package coming from
postgress.
The files global1.bki.source and local1_template1.bki.source contain a few
lines like
proname = ame
but that should be
proname = name
As a quick fix try
cp global1.bki.source global1.orig
sed -e "s:= ame:= name:" global1.orig > global1.bki.source
same for local1...
Then initdb should work. At least it worked here after that fix.
I update the package at the moment, so that problem is fixed in
postgresql-7.0.3-r1.
Bye Achim
>
>
> Any comments?
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://www.gentoo.org/mailman/listinfo/gentoo-dev
prev parent reply other threads:[~2001-01-23 19:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-23 5:25 [gentoo-dev] Problem with installing Postgres Robert Schrem
2001-01-23 7:26 ` Achim Gottinger
2001-01-23 12:24 ` Achim Gottinger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3A6D989E.85E4F9FF@gottinger.de \
--to=320095285153-0001@t-online.de \
--cc=gentoo-dev@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox