当前位置:早雪网网络学院编程文档数据库技术Postgresql → PostgreSQL7.0手册-管理员手册-23. 配置选项

PostgreSQL7.0手册-管理员手册-23. 配置选项

减小字体 增大字体 作者:不详  来源:supcode.com收集整理  发布时间:2005-7-23 12:21:21
第二十三章. 配置选项
内容 
配制参数 (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"

--------------------------------------------------------------------------------
--------------------------------------------------------------------------------

制作参数(make)
许多与安装相关的参数可以在 Postgres 安装的制作过程中设置. 
在大多数情况下,这些参数应该放置在一个专门为此目的而用的文件(Makefile.custom)里.缺省的发布版本不包含这个文件,所以你需要用一个文本编辑器创建一个.当升级安装时,你只需要在制作前简单地将旧的 Makefile.custom 拷贝到新安装中去即可. 

另外,你可以在 make 命令行上设置变量: 

make [ variable=value [...] ]
可以声明的变量的一部分有: 
POSTGRESDIR 
安装目录树的顶层. 
BINDIR 
应用和工具的路径. 
LIBDIR 
目标库的路径,包括共享库. 
HEADERDIR 
包含(头)文件的路径. 
ODBCINST 
安装过程中 psqlODBC (ODBC)配置文件的路径. 
还有其他一些不常用的配置参数.下面列出的许多选项在做Postgres 服务器端开发

[1] [2] [3]  下一页

[数据载入中...] [返回上一页] [打 印]