#==========================================================
# PGACCESS 0.98.8 -- 4 December 2002
#==========================================================

pgaccess was originally written by Constantin Teodorescu:

"I dedicate this program to my little daughters Ana-Maria and Emilia and to my
wife for their understanding. I hope they will forgive me for spending so many
time far from them."

pgaccess is currently developed by a new development team. For more information, visit the pgaccess wiki web site - www.pgaccess.org


#==========================================================
# How to INSTALL ?
#==========================================================

You will need a Tcl/Tk package >= 8.3 (but for windows, only 8.3)

UNIX/LINUX/BSD:
$ tar xvfz pgaccess-0.98.8.tar.gz
$ cd pgaccess
$ su
$ make clean
$ make all

OR

$ tar xvfz pgaccess-0.98.8.tar.gz
$ cd pgaccess
$ sh pgaccess.tcl

WINDOWS:
(see README.win32 under the win32/ folder)

MAC:
(thanks to Adam Witney)

To run PgAccess on MacOSX 10.2.1 the libpgtcl needs to be compiled as a dynamic library. This can be done manually by:

cd <path to>/postgresql-7.2.2/src/interfaces/libpgtcl

make -C ../../../src/interfaces/libpq all

gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/interfaces/libpq -I../../../src/include -c -o pgtcl.o pgtcl.c

gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/interfaces/libpq -I../../../src/include -c -o pgtclCmds.o pgtclCmds.c

gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/interfaces/libpq -I../../../src/include -c -o pgtclId.o pgtclId.c

ar cr libpgtcl.a `lorder pgtcl.o pgtclCmds.o pgtclId.o | tsort`
ranlib libpgtcl.a

gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -flat_namespace -dynamiclib -undefined suppress pgtcl.o pgtclCmds.o pgtclId.o -L../../../src/interfaces/libpq -lpq -o libpgtcl.2.2.dylib



(Note, the last line is the only thing changed from the normal procedure. This could probably be modified in the makefile, but I don't know how to do it!)

Then:

ln -s libpgtcl.2.2.dylib libpgtcl.dylib


then move the libpgtcl.dylib into your postgresql library path

Everything else for PgAccess is installed as for other Unix.



#==========================================================
# Usage
#==========================================================

You run it with the command:

        pgaccess


#==========================================================
# Bug reporting
#==========================================================

For bug reporting details, visit the pgaccess bugzilla - bugzilla.pgaccess.org


#==========================================================
# New versions
#==========================================================

You would find always the latest version at http://www.pgaccess.org/


