Re: postgresql does not build correctly

2009-09-14 Thread Roland Smith
On Mon, Sep 14, 2009 at 01:11:51PM +0100, Graeme Dargie wrote:
> I have been trying on and off to set up postgresql for undernets
> gnuworld services for ircd.
> 
> 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
> 
> Except you dont.

Try installing the databases/postgresql-tcltk port. 

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpyl0gk7bAPK.pgp
Description: PGP signature


postgresql does not build correctly

2009-09-14 Thread Graeme Dargie
I have been trying on and off to set up postgresql for undernets
gnuworld services for ircd.

 

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

 

Except you dont.

 

Instructions 

 

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=/usr/local/lib/tcl8.4  \
   --with-includes=/usr/local/include/tcl8.4 \
   --with-libraries=/usr/local/lib/tcl8.4
 
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.
 
freebsd:/root/postgresql-8.1.4# gmake --version
 
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...
 
freebsd:/root/postgresql-8.1.4# gmake

 

 

freebsd:/root/postgresql-8.1.4# gmake install
 
If you are using bash as your shell programm, add the following line :
 
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib
 
into /etc/profile.
zsh, sh and ksh use the same command in their respective .shrc .zshrc
.kshrc ~ files.
 
 
For csh and tcsh you will need to use setenv instead :
 
setenv LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib
 
 
 
To check that your PostreSQL installation includes TCL support, check
that the following
file exists onto your system :
 
/usr/local/pgsql/bin/pgtclsh
 
 
 
 
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.
 
 
Regards
 
Graeme

 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"