2.4. Building and Installing on MacOS 10
Prev | Chapter 2. Building and Installing pgtcl-ng | Next

## 2.4. Building and Installing on MacOS 10

This section describes how to build and install pgtcl on MacOS X 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.4.1. Prerequisites for MacOS Systems

Our successful report building pgtcl on MacOS used:

- MacOS X 10.3.3

- PostgreSQL 7.4.x

- Aqua Tcl/Tk 8.4.5

### 2.4.2. Building on MacOS

The user-submitted configure command for MacOS X follows. It specifies additional link libraries using the `EXTRA_LIBS` environment variable. This is used to link in the ssl libraries needed by libpq.

    EXTRA_LIBS='-lssl -lcrypto' \
    ./configure --prefix=/usr/local \
      --libdir=/Library/Tcl \
      --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

Prev | Up | Next
2.3. Building and Installing on Windows Systems (Borland Compiler) | Home | Chapter 3. Loading pgtcl into an Application