第二十三章. 配置选项

内容
配制参数 (configure
制作参数(make
本地化支持
Kerberos 认证

用于配置的参数(configure

configure 里可用的参数集可以通过键入下面命令获得
$ ./configure --help
下面的参数可能会引起安装者的兴趣:
Directories to install PostgreSQL in(安装 postgreSQL 的目录):
  --prefix=PREFIX         install architecture-independent files in PREFIX(把体系无关的文件装在 PREFIX)
                          [/usr/local/pgsql]
  --bindir=DIR            user executables in DIR (用户的可执行文件装在 DIR )[EPREFIX/bin]
  --libdir=DIR            object code libraries in DIR (目标代码库在 DIR )[EPREFIX/lib]
  --includedir=DIR        C header files in DIR (C 头文件放在 DIR)[PREFIX/include]
  --mandir=DIR            man documentation in DIR (手册文档在 DIR )[PREFIX/man]
Features and packages(特性和包):
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)(不包含 FEATURE (等效于 --enable-FEATURE=no))
  --enable-FEATURE[=ARG]  include FEATURE (包含 FEATURE )[ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE (使用 PACKAGE)[ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)(不使用 PACKAGE (等效于 --with-PACKAGE=no))
--enable and --with options recognized(可识别的附加选项):
  --with-template=template
                          use operating system template file(使用操作系统模板文件)
                              see template directory(参阅模板目录)
  --with-includes=dirs    look for header files for tcl/tk, etc in DIRS(tk/tcl等的头文件在 DIR)
  --with-libraries=dirs   look for additional libraries in DIRS(在DIR里查找附加库)
  --with-libs=dirs        alternate spelling of --with-libraries(--with-libraries 的可选写法)
  --enable-locale         enable locale support(打开本地化支持)
  --enable-recode         enable cyrillic recode support(打开西里尔字母(斯拉夫语言字母)记录的支持)
  --enable-multibyte      enable multibyte character support(打开多字节支持)
  --with-pgport=portnum   change default postmaster port(更改缺省的启动端口)
  --with-maxbackends=n    set default maximum number of server processes (设置缺省的最大服务器进程数)
  --with-tcl              build Tcl interfaces and pgtclsh(制作 Tcl 接口和 pgtclsh)
  --with-tclconfig=tcldir
                          tclConfig.sh and tkConfig.sh are in DIR(tclConfig.sh 和 tkConfig.sh 在 DIR)
  --with-perl             build Perl interface and plperl(制作 Perl 接口和plperl)
  --with-odbc             build ODBC driver package(制作 ODBC 驱动包)
  --with-odbcinst=odbcdir
                          change default directory for odbcinst.ini(为 odbcinst.ini 改变缺省路径)
  --enable-cassert        enable assertion checks (for debugging)(打开断言检查 (调试))
  --enable-debug          build with debugging symbols (-g) (带调试符号(-g)制作)
  --with-CC=compiler
                          use specific C compiler(使用声明的 C 编译器)
  --with-CXX=compiler
                          use specific C++ compiler(使用声明的 C++ 编译器)
  --without-CXX           prevent building C++ code (禁止制作 C++ 代码)
有些系统在制作 Postgres 的一些特性时有问题.例如,有些系统的 C++ 编译器坏了,可能就需要声明 --without-CXX 告诉制作过程忽略 libpq++ 的制作.

如果你想用安装在非相同标准查找路径里的头文件或库制作 Postgres ,请使用 --with-includes--with-libraries 选项.例如,你可能用这些制作一个实验版本的 Tcl.如果你需要为头文件或库声明超过一个的非标准目录,这样做:

--with-includes="/opt/tcl/include /opt/perl5/include"