./configure

Source: Internet
Author: User
Tags openssl parent directory postgresql syslog install perl
The script runs some tests to guess some system-related variables and detects specific settings for your operating system, and finally creates some files in the system tree to record what it finds. The default setting will be to make the server and the application, and all the client programs and interfaces that need only the C compiler. By default, all files will be installed to/usr/local/pgsql. You can make and install the process by giving one or more of the following configure command line options:

--prefix=prefix
Put all the files under the directory prefix instead of the/usr/local/pgsql. The actual files will be installed in a different subdirectory, and not even a single file will be installed directly into the PREFIX directory.

If you have special needs, you can also use the options below to account for the location of different subdirectories.

--exec-prefix=exec-prefix
You can install the system-related files to a different location, Exec-prefix, rather than PREFIX settings.   This makes it easier to share system-related files among different hosts. If you omit these, then Exec-prefix will be set to equal PREFIX and system-dependent and system-independent files will be installed under the same tree, which may be what you want.

--bindir=directory
Declares a directory for an executable, by default Exec-prefix/bin, usually the/usr/local/pgsql/bin.

--datadir=directory
Sets the directory of read-only files required by the program that is installed.   The default is Prefix/share. Please note that this directory has nothing to do with where you put the database files.

--sysconfdir=directory
A directory for a wide variety of configuration files, default to Prefix/etc.

--libdir=directory
Directory of library files and dynamic load modules. The default is Exec-prefix/lib.

--includedir=directory
Directory of C and C + + header files. The default is Prefix/include.

--docdir=directory
The document file (except the man page) will be installed in this directory. The default is Prefix/doc.

--mandir=directory
As PostgreSQL with the hand album will be installed into this directory.   In their corresponding Manx subdirectories. The default is Prefix/man.

Note: In order to reduce contamination of shared installation locations (such as/usr/local/include), configure automatically attaches a datadir, sysconfdir,includedir, and Docdir "/postgresql" string, unless full expansion of the directory name already contains the string "Postgres" or "Pgsql". For example, if you choose/usr/local to prefix, then C's header file will be installed to/usr/local/include/postgresql, but if the prefix is/opt/postgres, they will be placed in/op T/postgres/include.

--with-includes=directories
Directories is a series of colon-delimited directories that are added to the compiler's header file search list. If you have some optional packages (such as the GNU Readline) installed in non-standard locations, you must use this option and possibly the corresponding--with-libraries option.

Example:--with-includes=/opt/gnu/include:/usr/sup/include.

--with-libraries=directories
Directories is a series of colon-delimited directories that are used to locate library files. If you have some packages installed in non-standard locations, you may need to use this option (and the corresponding--with-includes option).

Example:--with-libraries=/opt/gnu/lib:/usr/sup/lib.

--enable-locale
Open Zone support. Zone support can be a performance loss, but if you're not using a database in an English-speaking environment, you probably need this option.

--enable-recode
Turn on support for Single-byte character set records. See section 5.3 For more information on this feature.

--enable-multibyte
Multibyte encoding is allowed. This option is mainly used in languages such as Japanese, Korean, and Chinese. Read Section 5.2 For more information.

--with-pgport=number
Set number to the default port for both the server and the client.   The default is 5432. This port can be set at a later time, but if you declare it here, the server and the client will have the same compiled default value. This will be more convenient.

--with-cxx
Make a C + + support library.

--with-perl
Make a Perl interface module. The Perl interface will be installed to the usual installation location of the Perl module (typically/usr/lib/perl), so you must have root permissions to perform the installation steps (see step 4). With this option you need to install Perl 5.

--with-python
Make the Python interface module.   You need root privileges to install the Python module to its default location (/USR/LIB/PYTHONX.Y). To use this option, you must already have Python installed and your system must support a shared library. If you want to make a new full binary interpreter, you can only hand-make it yourself.

--with-tcl
The parts that need to be tcl/tk are libpgtcl,pgtclsh,pgtksh,pgaccess and PL/TCL. You can also look at the--without-tk below.

--without-tk
If you declare both--WITH-TCL and this option, programs that require Tk (that is, Pgtksh and pgaccess) will be excluded.

--with-tclconfig=directory,--with-tkconfig=directory
TCL/TK installation files tclconfig.sh and tkconfig.sh, which contain configuration information to make TCL or Tk module interfaces. Configure usually find these files automatically in their well-known locations, but if you need a different version of TCL or TK, you can also declare that you can find their directory.

--enable-odbc
Make an ODBC driver package.

--with-odbcinst=directory
Declares the path of the ODBC-expected Odbcinst.ini configuration file.   The default is/USR/LOCAL/PGSQL/ETC or the content of the--SYSCONFDIR option you have declared. The installer will install a default file there.

--with-krb4=directory,--with-krb5=directory
Make something that supports Kerberos authentication.   You can choose Kerberos version 4 or 5, but you cannot select two at the same time. The directory parameter declares the root directory of the Kerberos installation; The default assumption is/usr/athena if the associated header files and library files are not in a common parent directory, you must use the additional--with-includes and--WI Th-libraries option. On the other hand, if the required files are in a default search directory (for example,/usr/lib), then you don't have to enter these parameters.

Configure will check the required header files and library files before installing to make sure your Kerberos installation is complete.

--with-krb-srvnam=name
The name of the Kerberos service master. The default is "Postgres". There is usually no reason to change this value.

--with-openssl=directory
Make a postgres that supports SSL (encrypted) joins.   This option requires installation of the OpenSSL package. The directory parameter declares the root directory of the OpenSSL installation;/usr/local/ssl by default.

Configure will check the required header and library files prior to installation to make sure that your OpenSSL installation is adequate.

--with-java
Make JDBC drivers and related Java packages.   This option requires you to install Ant (and, of course, JDK) first. Please refer to the JDBC-driven documentation in the programmer's Manual for more information.

--enable-syslog
Turn on the PostgreSQL server's ability to use the Syslog logging system. (using this feature does not mean that you have to log with syslog, or that the server lacks the capital to do this, but gives you the possibility to use this option at run time.) )

--enable-debug
Compile all Programs and libraries in the form of debug symbols.   This means that you can run the program through a debugger to analyze the problem. This significantly increases the size of the last installed executable and, on a non-gcc compiler, usually turns off compiler optimizations, resulting in a drop in speed. However, if you have these symbol tables, you can greatly help locate the location where the problem may occur. Currently, we think this option is a marginal variable for production purposes, but if you are working on a development or are using a beta version, then you should open it.

--enable-cassert
Open the assertion check in the server and it checks for many "impossible" conditions.   It's invaluable for the use of code development, but these tests slow down a little bit.   These assertion checks are not necessarily for serious errors, so some relatively harmless bugs can also cause postmaster to reboot-as long as it triggers an assertion failure. Currently, we do not recommend using this option in a production environment, but you should open it if you are developing or using a beta version.


If you prefer to use the different compilers that are found with configure, you can set your environment variables CC and CXX separately, setting them to the program you choose. Similarly, you can override the default compiler flag with Cflags and cxxflags variables. Like what:

Env CC=/OPT/BIN/GCC cflags= ' -02-pipe './configure

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.