Gentoo Archives: gentoo-dev

From: 320095285153-0001@t-online.de (Achim Gottinger)
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Problem with installing Postgres
Date: Tue, 23 Jan 2001 12:23:02
Message-Id: 3A6D989E.85E4F9FF@gottinger.de
In Reply to: [gentoo-dev] Problem with installing Postgres by Robert Schrem
1 Robert Schrem wrote:
2
3 > Hi, gentoo rocks !
4 >
5 > I tried to install PostgresQL on Gentoo
6 > using the package dev-db/postgresql-7.0.3.tbz2
7 > without succsess. I get the following error
8 > when I run initdb to initialize the postgres on
9 > disk data structures:
10 >
11 > bash-2.04# rm -rf /var/lib/pgsql/*
12 > bash-2.04# su postgres
13 > bash-2.04$ /usr/local/pgsql/bin/initdb -D /var/lib/pgsql
14 > This database system will be initialized with username "postgres".
15 > This user will own all the data files and must also own the server process.
16 >
17 > Fixing permissions on existing directory /var/lib/pgsql
18 > Creating directory /var/lib/pgsql/base
19 > Creating directory /var/lib/pgsql/global
20 > Creating directory /var/lib/pgsql/pg_xlog
21 > Creating template1 database in /var/lib/pgsql/base/1
22 > DEBUG: starting up
23 > DEBUG: database system was shut down at 2001-01-22 12:36:25
24 > DEBUG: CheckPoint record at (0, 8)
25 > DEBUG: Redo record at (0, 8); Undo record at (0, 8); Shutdown TRUE
26 > DEBUG: NextTransactionId: 514; NextOid: 16384
27 > DEBUG: database system is in production state
28 > ERROR: Error: unknown type 'ame'.
29 >
30 > Creating global relations in /var/lib/pgsql/global
31 > DEBUG: starting up
32 > DEBUG: database system was interrupted at 2001-01-22 12:36:25
33 > DEBUG: CheckPoint record at (0, 8)
34 > DEBUG: Redo record at (0, 8); Undo record at (0, 8); Shutdown TRUE
35 > DEBUG: NextTransactionId: 514; NextOid: 16384
36 > DEBUG: database system was not properly shut down; automatic recovery in
37 > progress...
38 > FATAL 2: cannot open pg_log: No such file or directory
39 >
40 > initdb failed.
41 > Removing temp file /tmp/initdb.8499.
42 > bash-2.04$
43 >
44 > Wht does the this error mean?
45 > ERROR: Error: unknown type 'ame'.
46
47 Ok, I found the problem. There are two buggy files in this package coming from
48 postgress.
49 The files global1.bki.source and local1_template1.bki.source contain a few
50 lines like
51
52 proname = ame
53
54 but that should be
55
56 proname = name
57
58 As a quick fix try
59
60 cp global1.bki.source global1.orig
61 sed -e "s:= ame:= name:" global1.orig > global1.bki.source
62
63 same for local1...
64
65 Then initdb should work. At least it worked here after that fix.
66
67 I update the package at the moment, so that problem is fixed in
68 postgresql-7.0.3-r1.
69
70 Bye Achim
71
72 >
73 >
74 > Any comments?
75 > _______________________________________________
76 > gentoo-dev mailing list
77 > gentoo-dev@g.o
78 > http://www.gentoo.org/mailman/listinfo/gentoo-dev