2.3. Building and Installing on MacOS 10

This section describes how to build and install pgtcl on MacOS 10 systems. This information was provided by a user and has not been verified by the developers or authors. It is provided in the hope that it will be useful to others.

2.3.1. Prerequisites for MacOS Systems

Our successful report building pgtcl on MacOS used:

2.3.2. Building on MacOS

The report of building pgtcl on MacOS included a configure command, edits to the Makefile, and then build success. In response to this report, a feature was added allowing additional link libraries to be specified with EXTRA_LIBS. This is used to link in the ssl libraries needed by libpq. The following example of configuring and building pgtcl on MacOS has not been tested, however.

EXTRA_LIBS='-lssl -lcrypto' \
./configure --prefix=/usr/local \
  --libdir=/usr/local/lib \
  --with-postgres-include=/usr/local/pgsql/include \
  --with-postgres-lib=/usr/local/pgsql/lib \
  --with-tcl=/Library/Frameworks/Tcl.framework \
  --with-tclinclude=/Library/Frameworks/Tcl.framework/Headers