From owner-freebsd-questions@FreeBSD.ORG Mon Sep 14 12:12:05 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A2D6106566B for ; Mon, 14 Sep 2009 12:12:04 +0000 (UTC) (envelope-from arab@tangerine-army.co.uk) Received: from smtp-out2.blueyonder.co.uk (smtp-out2.blueyonder.co.uk [195.188.213.5]) by mx1.freebsd.org (Postfix) with ESMTP id DA8088FC0A for ; Mon, 14 Sep 2009 12:12:03 +0000 (UTC) Received: from [172.23.170.146] (helo=anti-virus03-09) by smtp-out2.blueyonder.co.uk with smtp (Exim 4.52) id 1MnAPQ-0001Bp-Cj for freebsd-questions@freebsd.org; Mon, 14 Sep 2009 13:11:52 +0100 Received: from [94.168.156.45] (helo=Mercury.galaxy.lan.lcl) by asmtp-out4.blueyonder.co.uk with esmtp (Exim 4.52) id 1MnAPP-0006uB-Eq for freebsd-questions@freebsd.org; Mon, 14 Sep 2009 13:11:51 +0100 MIME-Version: 1.0 Date: Mon, 14 Sep 2009 13:11:51 +0100 Content-class: urn:content-classes:message Message-ID: <01FB8F39BAD0BD49A6D0DA8F789739295741@Mercury.galaxy.lan.lcl> X-MimeOLE: Produced By Microsoft Exchange V6.5 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: postgresql does not build correctly Thread-Index: Aco1NIp7BVSsskVWQuq+GMXpsQ+6DQ== From: "Graeme Dargie" To: Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: postgresql does not build correctly X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Sep 2009 12:12:05 -0000 I have been trying on and off to set up postgresql for undernets gnuworld services for ircd. =20 Now according to the instructions below this should build with tcl support and you should end up with the following file /usr/local/pgsql/bin/pgtclsh =20 Except you dont. =20 Instructions=20 =20 freebsd:/root# tar -xzf postgresql-8.1.4.tar.gz freebsd:/root# cd postgresql-8.1.4/ freebsd:/root/postgresql-8.1.4# ./configure --with-CXX \ --enable-multibyte \ --with-tcl --without-tk \ --with-tclconfig=3D/usr/local/lib/tcl8.4 \ --with-includes=3D/usr/local/include/tcl8.4 \ --with-libraries=3D/usr/local/lib/tcl8.4 =20 You need gmake 3.79 or above to build PostgreSQL (and you will also need it for GNUworld later), check you have it by running gmake --version, you should get something like this : Note: You will also need automake 1.6 or above in order to build GNUworld. =20 freebsd:/root/postgresql-8.1.4# gmake --version =20 If you don't have gmake, you can get it here . If you don't have automake 1.6+, you can get 1.7.9 here . If that's ok, you can go on and build PostgreSQL for real, then install it... =20 freebsd:/root/postgresql-8.1.4# gmake =20 =20 freebsd:/root/postgresql-8.1.4# gmake install =20 If you are using bash as your shell programm, add the following line : =20 export LD_LIBRARY_PATH=3D$LD_LIBRARY_PATH:/usr/local/pgsql/lib =20 into /etc/profile. zsh, sh and ksh use the same command in their respective .shrc .zshrc .kshrc ~ files. =20 =20 For csh and tcsh you will need to use setenv instead : =20 setenv LD_LIBRARY_PATH=3D$LD_LIBRARY_PATH:/usr/local/pgsql/lib =20 =20 =20 To check that your PostreSQL installation includes TCL support, check that the following file exists onto your system : =20 /usr/local/pgsql/bin/pgtclsh =20 =20 =20 =20 Everything seems to work without any errors during the ./configure stage and gmake install, I just dont end up with pgtclsh at the end of it. =20 =20 Regards =20 Graeme =20