Unsupported versions: 6.5 / 6.4
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the current version, or one of the other supported versions listed above instead.

Chapter 23. Configuration Options

Parameters for Configuration (configure)

The full set of parameters available in configure can be obtained by typing

$ ./configure --help

The following parameters may be of interest to installers:

Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local/pgsql]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
--enable and --with options recognized:
  --with-template=template
                          use operating system template file
                              see template directory
  --with-includes=incdir  site header files for tk/tcl, etc in DIR
  --with-libs=incdir      also search for libraries in DIR
  --with-libraries=libdir also search for libraries in DIR
  --enable-locale         enable locale support
  --enable-recode         enable cyrillic recode support
  --with-mb=encoding    enable multi-byte support
  --with-pgport=portnum change default startup port
  --with-tcl              use tcl
  --with-tclconfig=tcldir tclConfig.sh and tkConfig.sh are in DIR
  --with-perl             use perl
  --with-odbc             build ODBC driver package
  --with-odbcinst=odbcdir change default directory for odbcinst.ini
  --enable-cassert        enable assertion checks (debugging)
  --with-CC=compiler      use specific C compiler
  --with-CXX=compiler     use specific C++ compiler

Some systems may have trouble building a specific feature of Postgres. For example, systems with a damaged C++ compiler may need to specify --without-CXX to encourage the build procedure to ignore the libpq++ construction.