⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.sgml

📁 关系型数据库 Postgresql 6.5.2
💻 SGML
📖 第 1 页 / 共 2 页
字号:
<chapter id="config"><title id="install-config">Configuration Options</title> <sect1>  <title>Parameters for Configuration (<application>configure</application>)</title>  <para>   The full set of parameters available in <application>configure</application>   can be obtained by typing      <programlisting>    $ ./configure --help   </programlisting>  </para>  <para>   The following parameters may be of interest to installers:      <programlisting>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=<replaceable>template</replaceable>                          use operating system template file                              see template directory  --with-includes=<replaceable>incdir</replaceable>                          site header files for tk/tcl, etc in DIR  --with-libs=<replaceable>incdir</replaceable>                          also search for libraries in DIR  --with-libraries=<replaceable>libdir</replaceable>                          also search for libraries in DIR  --enable-locale         enable locale support  --enable-recode         enable cyrillic recode support  --with-mb=<replaceable>encoding</replaceable>                          enable multi-byte support  --with-pgport=<replaceable>portnum</replaceable>                          change default startup port  --with-maxbackends=<replaceable>n</replaceable>                          set default maximum number of server processes   --with-tcl              build Tcl interfaces and pgtclsh  --with-tclconfig=<replaceable>tcldir</replaceable>                          tclConfig.sh and tkConfig.sh are in DIR  --with-perl             build Perl interface  --with-odbc             build ODBC driver package  --with-odbcinst=<replaceable>odbcdir</replaceable>                          change default directory for odbcinst.ini  --enable-cassert        enable assertion checks (debugging)  --with-CC=<replaceable>compiler</replaceable>                          use specific C compiler  --with-CXX=<replaceable>compiler</replaceable>                          use specific C++ compiler  --without-CXX           prevent building C++ code    </programlisting>  </para>  <para>   Some systems may have trouble building a specific feature of   <productname>Postgres</productname>. For example, systems with a damaged   C++ compiler may need to specify <option>--without-CXX</option> to instruct   the build procedure to skip construction of <filename>libpq++</filename>.  </para> </sect1> <sect1>  <title>Parameters for Building (<application>make</application>)</title>    <para>   Many installation-related parameters can be set in the building   stage of <productname>Postgres</productname> installation.  </para>  <para>   In most cases, these parameters should be placed in a file,   <filename>Makefile.custom</filename>, intended just for that purpose.   The default distribution does not contain this optional file, so you   will create it using a text editor of your choice. When upgrading installations,   you can simply copy your old Makefile.custom to the new installation before   doing the build.      <synopsis>    make [ <replaceable>variable</replaceable>=<replaceable class="parameter">value</replaceable> [,...] ]   </synopsis>  </para>  <para>   A few of the many variables which can be specified are:      <variablelist>    <varlistentry>     <term>      <envar>POSTGRESDIR</envar>     </term>     <listitem>      <para>       Top of the installation tree.      </para>     </listitem>    </varlistentry>        <varlistentry>     <term>      <envar>BINDIR</envar>     </term>     <listitem>      <para>       Location of applications and utilities.      </para>     </listitem>    </varlistentry>        <varlistentry>     <term>      <envar>LIBDIR</envar>     </term>     <listitem>      <para>       Location of object libraries, including shared libraries.      </para>     </listitem>    </varlistentry>        <varlistentry>     <term>      <envar>HEADERDIR</envar>     </term>     <listitem>      <para>       Location of include files.      </para>     </listitem>    </varlistentry>        <varlistentry>     <term>      <envar>ODBCINST</envar>     </term>     <listitem>      <para>       Location of installation-wide <application>psqlODBC</application>       (<acronym>ODBC</acronym>) configuration file.      </para>     </listitem>    </varlistentry>       </variablelist>  </para>  <para>   There are other optional parameters which are not as commonly used.   Many of those listed below are appropriate when doing    <application>Postgres</application> server code development.      <variablelist>    <varlistentry>     <term>      <envar>CFLAGS</envar>     </term>     <listitem>      <para>       Set flags for the C compiler.        Should be assigned with "+=" to retain relevant default parameters.      </para>     </listitem>    </varlistentry>        <varlistentry>     <term>      YFLAGS     </term>     <listitem>      <para>       Set flags for the yacc/bison parser. <option>-v</option> might be       used to help diagnose problems building a new parser.       Should be assigned with "+=" to retain relevant default parameters.      </para>     </listitem>    </varlistentry>        <varlistentry>     <term>      <envar>USE_TCL</envar>     </term>     <listitem>      <para>       Enable Tcl interface building.      </para>     </listitem>    </varlistentry>        <varlistentry>     <term>      <envar>HSTYLE</envar>     </term>     <listitem>      <para>       DocBook <acronym>HTML</acronym> style sheets for building the        documentation from scratch.       Not used unless you are developing new documentation from the       DocBook-compatible <acronym>SGML</acronym> source documents in       <filename>doc/src/sgml/</filename>.      </para>     </listitem>    </varlistentry>        <varlistentry>     <term>      <envar>PSTYLE</envar>     </term>     <listitem>      <para>       DocBook style sheets for building printed documentation from scratch.       Not used unless you are developing new documentation from the       DocBook-compatible <acronym>SGML</acronym> source documents in       <filename>doc/src/sgml/</filename>.      </para>     </listitem>    </varlistentry>       </variablelist>  </para>  <para>   Here is an example <filename>Makefile.custom</filename> for a   PentiumPro Linux system:      <programlisting># Makefile.custom# Thomas Lockhart 1999-06-01POSTGRESDIR= /opt/postgres/currentCFLAGS+= -m486 -O2# documentationHSTYLE= /home/tgl/SGML/db118.d/docbook/htmlPSTYLE= /home/tgl/SGML/db118.d/docbook/print   </programlisting>  </para> </sect1>  <Sect1>  <Title>Locale Support</Title>    <Para>   <Note>    <Para>     Written by Oleg Bartunov.     See <ULink url="http://www.sai.msu.su/~megera/postgres/">Oleg's web page</ULink>     for additional information on locale and Russian language support.         </Para>   </Note>   While doing a project for a company in Moscow, Russia,    I encountered the problem that postgresql had no   support of national alphabets. After looking for possible workarounds    I decided to develop support of locale myself.   I'm not a C-programer but already had some experience with locale programming    when I work with perl   (debugging) and glimpse. After several days of digging through   the <ProductName>Postgres</ProductName> source tree I made very minor corections to   src/backend/utils/adt/varlena.c and src/backend/main/main.c and got what I needed!    I did support only for   <envar>LC_CTYPE</envar> and <envar>LC_COLLATE</envar>,    but later <envar>LC_MONETARY</envar> was added by others. I got many   messages from people about this patch so I decided to send it to developers 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -