Return-Path: owner-postman
Received: from localhost (localhost [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id GAA06445 for postgres-dist; Wed, 24 Nov 1993 06:03:49 -0800
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199311241403.GAA06445@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost didn't use HELO protocol
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from mailgzrz.TU-Berlin.DE (mailgzrz.TU-Berlin.DE [130.149.4.10]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id FAA06375 for <postgres@nobozo.CS.Berkeley.EDU>; Wed, 24 Nov 1993 05:45:40 -0800
Received: from marie.physik.TU-Berlin.DE by mailgzrz.TU-Berlin.DE (5.65c/ZRZ-MX)
          for <postgres@nobozo.CS.Berkeley.EDU>
	  id AA28701; Wed, 24 Nov 1993 14:41:55 +0100
Received: by marie.physik.tu-berlin.de (5.65c8/SMI-SVR4)
	id AA02560; Wed, 24 Nov 1993 14:41:43 +0100
From: Kai Petzke <wpp@marie.physik.tu-berlin.de>
Message-Id: <199311241341.AA02560@marie.physik.tu-berlin.de>
Subject: Re: Installation / Linux
To: keichwa@gwdg.de (Karl Eichwalder)
Date: Wed, 24 Nov 1993 14:41:42 +0100 (MET)
Cc: postgres@postgres.Berkeley.EDU
In-Reply-To: <9311240040.AA29992@gwdu03.gwdg.de> from "Karl Eichwalder" at Nov 24, 93 01:40:08 am
X-Mailer: ELM [version 2.4 PL22]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 2117      
Resent-To: postgres-dist@postgres.Berkeley.EDU
Resent-Date: Wed, 24 Nov 93 06:03:49 -0800
Resent-XMts: smtp

> 
> hi !
> 
> i've tried to install postgres 4.0.1, taking the archive which is available on
> the the known Linux-servers (tsx-11, sunsite); in this archive your will find a
> config.mk.linux.

Postgres is even available at the ftp server of your site: ftp.gwdg.de,
directory /pub/linux/linux2/databases/postgres.

> $ /usr/bin/cb: No such file or directory
> $ cpp: output pipe has been closed

A cb program (which takes C text as input and formats it while
piping it through) seems not to be available for Linux.  But it
might be in the future, so, instead of deleting the reference to
cb, I included the following hint in postgres.README:

	If you don't have cb ("beautifies" C programmes - does nothing but
	change the spacing of its input), make it a shell script with the
	single line: cat

> but there are other problems:
> 
> $ Executing 'Make everything'...
> $ make[1]: Entering directory `/mnt/data/pub/postgres'
> $ linking headers
> $ generating plannodes.gen
> $ ...
> $ creating inh.c
> $ compiling lib/Gen/inh.c
> $ inh.c:37: `T_' undeclared here (not in a function)
> $ inh.c:37: initializer element for `_NodeInfo.ni_parent' is not constant
> $ make[1]: *** [/mnt/data/pub/postgres/obj.linux/lib/Gen/inh.o] Error 1
> $ make[1]: Leaving directory `/mnt/data/pub/postgres'
> $ done
> $ make[1]: Entering directory `/mnt/data/pub/postgres'

This problem arises again and again.  It is caused by Linux distributions,
which contain outdated binaries.  Typically, awk and sed are the problems.
Again, an excerpt from postgres.README:

	You need tcsh, a pwd executable, the getopt command, Berkeley Yacc,
	flex, cb, and bug-fixed versions of awk (2.14 or newer) and sed
	(1.13 or newer). You can find out awk's version with "awk -V" or
	"awk -W version". If you get an error message as answer, you are
	very likely to have an old version ... Check "sed -V" as well.


For several people before you, this fixed this particular problem.

But thank you for being specific about your compile errors - many
people forget to include the output of the failed compile.


Kai Petzke
wpp@marie.physik.tu-berlin.de
