自翻,让博主了解了 PHP 5.5 的各项编译参数。PHP 5.5 限定!!害怕

 

为喜欢使用编译安装 PHP 的童鞋提供一份编译清单:

./configure \
--prefix=/usr/local/php \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/php/etc \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-mysql-sock=/tmp/mysql.sock \
--with-pcre-dir=/usr/local/pcre \
--with-iconv-dir=/usr/local/libiconv \
--with-libxml-dir=/usr \
--with-icu-dir=/usr \
--with-mhash \
--with-bz2 \
--with-curl \
--with-freetype-dir \
--with-jpeg-dir \
--with-png-dir \
--with-gd \
--with-gettext \
--with-gmp \
--with-ldap \
--with-ldap-sasl \
--with-mcrypt \
--with-openssl \
--with-xmlrpc \
--with-xsl \
--with-zlib \
--with-imap \
--with-imap-ssl \
--with-kerberos \
--without-pear \
--enable-opcache \
--enable-bcmath \
--enable-calendar \
--enable-sysvsem \
--enable-exif \
--enable-ftp \
--enable-gd-native-ttf \
--enable-intl \
--enable-mbstring \
--enable-pcntl \
--enable-shmop \
--enable-soap \
--enable-sockets \
--enable-wddx \
--enable-zip

接下来详细介绍 PHP 5.5 的编译参数,编译参数可以通过 ./configure --help 获得。

 

东西挺多的,近 6000 字符,建议使用 Ctrl+F 搜索,文章最后有 TXT 格式下载。

1、默认情况:

Defaults for the options are specified in brackets.
//默认的选项在括号中指定。

By default, `make install' will install all the files in `/usr/local/bin', `/usr/local/lib' etc.
You can specify an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.
//默认情况下,'make install'命令将安装所有文件在'/usr/local/bin'目录','/usr/local/lib'目录等地方。
//您可以使用'--prefix'指定安装前缀不是'/usr/local'的路径,
//例如'--prefix=$HOME'。

2、配置(Configuration):

-h, --help display          this help and exit                                     显示帮助并退出
    --help=short            display options specific to this package               具体显示这个包的帮助
    --help=recursive        display the short help of all the included packages    递归显示所有包含包的简短帮助
-V, --version               display version information and exit                   显示版本信息并退出
-q, --quiet, --silent       do not print `checking ...' messages                   不打印'checking......'消息
    --cache-file=FILE       cache test results in FILE [disabled]                  在文件缓存测试结果[禁用]
-C, --config-cache          alias for `--cache-file=config.cache'                  为'--cache-file=config.cache'设置别名
-n, --no-create             do not create output files                             不创建输出文件
    --srcdir=DIR            find the sources in DIR [configure dir or `..']        在DIR寻找源码[配置目录或'..']

3、安装目录(Installation directories):

--prefix=PREFIX          install architecture-independent files in PREFIX       在PREFIX安装体系结构无关的文件 [/usr/local](Apache的安装目录)
                         [/usr/local]
--exec-prefix=EPREFIX    install architecture-dependent files in EPREFIX        在EPREFIX安装体系结构相关的文件 [PREFIX](把体系结构相关的文件安装到不同的位置可以方便地在不同主机之间共享体系结构相关的文件)
                         [PREFIX]

4、微调安装目录(Fine tuning of the installation directories):

--bindir=DIR           user executables [EPREFIX/bin]
                       用户的可执行文件目录 [EPREFIX/bin](存放PHP程序的目录)
--sbindir=DIR          system admin executables [EPREFIX/sbin]
                       系统管理员的可执行文件目录 [EPREFIX/sbin](存放运行PHP服务器所必须的服务程序的目录)
--libexecdir=DIR       program executables [EPREFIX/libexec]
                       程序的可执行文件目录 [EPREFIX/libexec](动态加载模块的目录)
--sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
                       只读的单机数据目录 [PREFIX/etc](存放php.ini等服务器配置文件的目录)
--sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
                       可修改的体系结构无关的数据目录 [PREFIX/com]
--localstatedir=DIR    modifiable single-machine data [PREFIX/var]
                       可修改的单机数据目录 [PREFIX/var]
--libdir=DIR           object code libraries [EPREFIX/lib]
                       目标代码库目录 [EPREFIX/lib]
--includedir=DIR       C header files [PREFIX/include]
                       PHP用的C头文件目录 [PREFIX/include]
--oldincludedir=DIR    C header files for non-gcc [/usr/include]
                       非GCC的C头文件目录 [/usr/include]
--datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
                       只读的体系结构无关的数据根目录 [PREFIX/share]
--datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
                       只读的体系结构无关的数据目录 [DATAROOTDIR]
--infodir=DIR          info documentation [DATAROOTDIR/info]
                       信息文档目录 [DATAROOTDIR/info]
--localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
                       语言环境相关的数据目录 [DATAROOTDIR/locale]
--mandir=DIR           man documentation [DATAROOTDIR/man]
                       手册文档目录 [DATAROOTDIR/man]
--docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
                       文档根目录 [DATAROOTDIR/doc/PACKAGE]
--htmldir=DIR          html documentation [DOCDIR]
                       HTML文档目录 [DOCDIR]
--dvidir=DIR           dvi documentation [DOCDIR]
                       DVI文档目录 [DOCDIR]
--pdfdir=DIR           pdf documentation [DOCDIR]
                       PDF文档目录 [DOCDIR]
--psdir=DIR            ps documentation [DOCDIR]
                       PS文档目录 [DOCDIR]

5、系统类型(System types):

--build=BUILD        configure for building on BUILD [guessed]
                     编译工具所在系统的系统类型BUILD [guessed]
--host=HOST          cross-compile to build programs to run on HOST [BUILD]
                     交叉编译时编译工具运行的系统类型 [BUILD]
--target=TARGET      configure for building compilers for TARGET [HOST]
                     编译工具编译的目标 [HOST]

6、可选功能和程序包(Optional Features and Packages):

--disable-option-checking     ignore unrecognized --enable/--with options
                              忽略无法识别的 --enable/--with 选项
--disable-FEATURE             do not include FEATURE (same as --enable-FEATURE=no)
                              不启用特征选项 (与 --enable-FEATURE=no 相同)(FEATURE为泛指)
--enable-FEATURE[=ARG]        include FEATURE [ARG=yes]
                              启用特征选项 [ARG=yes](FEATURE为泛指,=yes可省略)
--with-PACKAGE[=ARG]          use PACKAGE [ARG=yes]
                              使用程序包 [ARG=yes](PACKAGE为泛指,=yes可省略)
--without-PACKAGE             do not use PACKAGE (same as --with-PACKAGE=no)
                              不使用程序包 (与 --with-PACKAGE=no 相同)(PACKAGE为泛指)
--with-libdir=NAME            Look for libraries in .../NAME rather than .../lib
                              在 .../NAME 搜索库文件路径库,而不是在 .../lib 搜索
--disable-rpath               Disable passing additional runtime library search paths
                              不在额外的运行时搜索库文件路径
--enable-re2c-cgoto           Enable -g flag to re2c to use computed goto gcc extension
                              计算GCC扩展时re2c使用 -g 标志

7、SAPI模块(SAPI modules):

--with-aolserver=DIR            Specify path to the installed AOLserver
                                指定AOLserver的安装路径(AOLserver是Web Server)

--with-apxs=FILE                Build shared Apache 1.x module.
                                FILE is the optional pathname to the Apache apxs tool apxs
                                编译Apache 1.x的共享模块。FILE是Apache apxs工具apxs的路径文件

--with-apache=DIR               Build Apache 1.x module.
                                DIR is the top-level Apache build directory /usr/local/apache
                                编译Apache 1.x的模块。DIR是Apache的顶级目录,默认 /usr/local/apache

--enable-mod-charset            APACHE: Enable transfer tables for mod_charset (Rus Apache)
                                为Apache的mod_charset启用传输表 (针对俄文的Apache)

--with-apxs2filter=FILE         EXPERIMENTAL: Build shared Apache 2.0 Filter module.
                                FILE is the optional pathname to the Apache apxs tool apxs
                                实验性:编译apache2.0的共享过滤模块。FILE是Apache apxs工具apxs的路径文件

--with-apxs2=FILE               Build shared Apache 2.0 Handler module.
                                FILE is the optional pathname to the Apache apxs tool apxs
                                编译共享的Apache 2.0的处理程序模块。FILE是Apache apxs工具apxs的路径文件
                                (整合Apache2.2+,apxs工具是使用mod_so中的LoadModule指令,
                                加载指定模块到Apache,要求Apache打开so模块,即多线程模块,否则编译失败。
                                而且不要再激活 --enable-fpm 和 --enable-fastCGI )

--with-apache-hooks=FILE        EXPERIMENTAL: Build shared Apache 1.x module.
                                FILE is the optional pathname to the Apache apxs tool apxs
                                实验性:编译Apache 1.x的共享hooks模块。FILE是Apache apxs工具apxs的路径文件

--with-apache-hooks-static=DIR  EXPERIMENTAL: Build Apache 1.x module.
                                DIR is the top-level Apache build directory /usr/local/apache
                                实验性:编译Apache 1.x的静态共享hooks模块。
                                DIR是Apache的顶级目录,默认 /usr/local/apache

--enable-mod-charset            APACHE (hooks): Enable transfer tables for mod_charset (Rus Apache)
                                为Apache(hooks)的mod_charset启用传输表 (针对俄文的Apache)

--with-caudium=DIR              Build PHP as a Pike module for use with Caudium.
                                DIR is the Caudium server dir /usr/local/caudium/server
                                为Caudium服务器编译PHP的Pike模块。
                                DIR是Caudium的安装路径,默认 /usr/local/caudium/server

--disable-cli                   Disable building CLI version of PHP (this forces --without-pear)
                                编译禁用CLI的PHP版本 (需要 --without-pear)

--with-continuity=DIR           Build PHP as Continuity Server module.
                                DIR is path to the installed Continuity Server root
                                编译PHP为连续服务模块。DIR是Continuity Server的根安装路径

--enable-embed=TYPE             EXPERIMENTAL: Enable building of embedded SAPI library
                                TYPE is either 'shared' or 'static'. TYPE=shared
                                实验性:建立嵌入的SAPI库。TYPE可以是'shared'或'static',默认TYPE=shared

--enable-fpm                    Enable building of the fpm SAPI executable
                                建立fpm模式下的SAPI可执行程序
                                (以CGI方式安装并且打上PHP-fpm补丁后这个参数才生效)

--with-fpm-user=USER            Set the user for php-fpm to run as. (default: nobody)
                                设定PHP-fpm的运行用户。(默认:nobody)

--with-fpm-group=GRP            Set the group for php-fpm to run as. For a system user,
                                this should usually be set to match the fpm username (default: nobody)
                                设定PHP-fpm的运行组。
                                对于系统用户来说,这应该设置为匹配fpm的运行用户。(默认:nobody)

--with-fpm-systemd              Activate systemd integration
                                整合systemd

--with-isapi=DIR                Build PHP as an ISAPI module for use with Zeus
                                为Zeus服务器的PHP编译ISAPI模块

--with-litespeed                Build PHP as litespeed module
                                编译PHP为适合于litespeed的模块(litespeed是Web Server)

--with-milter=DIR               Build PHP as Milter application
                                编译PHP为适合于Milter的应用程序(Milter是一个邮件过滤器扩展)

--with-nsapi=DIR                Build PHP as NSAPI module for Netscape/iPlanet/Sun Webserver
                                为Netscape/iPlanet/Sun Web服务器编译PHPNSAPI模块

--with-phttpd=DIR               Build PHP as phttpd module
                                编译PHP为适合于phttpd的模块(phttpd是Web Server)

--with-pi3web=DIR               Build PHP as Pi3Web module
                                编译PHP为适合于Pi3Web的模块(Pi3Web是Web Server)

--with-roxen=DIR                Build PHP as a Pike module.
                                DIR is the base Roxen directory, normally /usr/local/roxen/server
                                编译PHP为Pike模块。
                                DIR是Roxen的根目录,默认为 /usr/local/roxen/server(Roxen是一个CMS)

--enable-roxen-zts              ROXEN: Build the Roxen module using Zend Thread Safety
                                编译为使用Zend线程安全的Roxen模块

--with-thttpd=SRCDIR            Build PHP as thttpd module
                                编译PHP为适合于thttpd的模块(thttpd是Web Server)

--with-tux=MODULEDIR            Build PHP as a TUX module (Linux only)
                                编译PHP为TUX模块 (仅适用于linux)

--with-webjames=SRCDIR          Build PHP as a WebJames module (RISC OS only)
                                编译PHP为适合于WebJames的模块 (仅适用于RISC系统)(WebJames是Web Server)

--disable-cgi                   Disable building CGI version of PHP
                                编译禁用CGI的PHP版本

8、常规设置(General settings):

--enable-gcov              Enable GCOV code coverage (requires LTP) - FOR DEVELOPERS ONLY!!
                           启用GOCV的代码覆盖 (需要LTP) -仅开发人员使用!!

--enable-debug             Compile with debugging symbols
                           编译时加入调试符号(一般不使用,除非你是PHP程序的开发者,它可以显示额外的错误信息)

--with-layout=TYPE         Set how installed files will be laid out.
                           Type can be either PHP or GNU [PHP]
                           设置安装后文件的布局形式。TYPE可以是PHP或GNU,默认PHP

--with-config-file-path=PATH
                           Set the path in which to look for php.ini [PREFIX/lib]
                           设置php.ini文件的路径 [PREFIX/lib]

--with-config-file-scan-dir=PATH
                           Set the path where to scan for configuration files
                           设置扫描配置文件的路径

--enable-sigchild          Enable PHP's own SIGCHLD handler
                           使用PHP自身的SIGCHLD处理器

--enable-libgcc            Enable explicitly linking against libgcc
                           启用libgcc的精确链接

--disable-short-tags       Disable the short-form <? start tag by default
                           默认禁用以<!--?作为PHP的开始标记 

--enable-dmalloc           Enable dmalloc
                           启用dmalloc(dmalloc是Linux C编程内存溢出检测工具)

--disable-ipv6             Disable IPv6 support
                           禁用IPv6的支持

--enable-dtrace            Enable DTrace support
                           启用DTrace支持
                           (DTrace也称为动态跟踪,是一个用来在生产和试验性生产系统上找出系统瓶颈的工具,
                           可以对内核和应用程序进行动态跟踪并且对系统运行不构成任何危险的技术)

--enable-fd-setsize        Set size of descriptor sets
                           设置描述集的大小

9、扩展(Extensions):

--with-EXTENSION=shared[,PATH]

NOTE: Not all extensions can be build as 'shared'.
// 注:并非所有的扩展可以编译为共享方式。

Example: --with-foobar=shared,/usr/local/foobar/

o Builds the foobar extension as shared extension.
o foobar package install prefix is /usr/local/foobar/
o 以共享方式编译foobar扩展。
o foobar的安装路径是 /usr/local/foobar/

--disable-all            Disable all extensions which are enabled by default
                         禁用所有默认开启的扩展

--with-regex=TYPE        Regex library type: system, php. TYPE=php
                         WARNING: Do NOT use unless you know what you are doing!
                         正则表达式库类型:system,php,默认TYPE=php
                         警告:不要使用这个,除非你知道你在做什么!

--disable-libxml         Disable LIBXML support
                         禁用libxml支持(libxml是C语言的XML程式库,能提供对XML文件的各种操作)

--with-libxml-dir=DIR    LIBXML: libxml2 install prefix
                         libxml2的安装路径(启用libxml2支持)

--with-openssl=DIR       Include OpenSSL support (requires OpenSSL >= 0.9.6)
                         启用OpenSSL支持 (需要OpenSSL版本至少为0.9.6)(加密传输时使用)

--with-kerberos=DIR      OPENSSL: Include Kerberos support
                         使OpenSSL启用Kerberos支持
                         (Kerberos是一种网络协议,可以保护网络实体免受窃听和重复攻击)

--with-pcre-regex=DIR    Include Perl Compatible Regular Expressions support.
                         DIR is the PCRE install prefix BUNDLED
                         启用pcre的Perl兼容的正则表达式支持。
                         DIR是PCRE的安装路径(PCRE是一个Perl库,包括perl兼容的正则表达式库)

--without-sqlite3=DIR    Do not include SQLite3 support.
                         DIR is the prefix to SQLite3 installation directory.
                         禁用SQLite3支持。DIR是SQLite3的安装目录。

--with-zlib=DIR          Include ZLIB support (requires zlib >= 1.0.9)
                         启用zlib支持(需要zlib版本至少1.0.9)

--with-zlib-dir=<DIR>    Define the location of zlib install directory
                         定义zlib的安装目录

--enable-bcmath          Enable bc style precision math functions
                         启用BC风格精度数学函数(支持大整数计算的扩展,可以做任意精度的数学运算)

--with-bz2=DIR           Include BZip2 support
                         启用bzip2支持

--enable-calendar        Enable support for calendar conversion
                         启用日历转换支持

--disable-ctype          Disable ctype functions
                         禁用ctype函数(ctype是一个C函数库,用于测试字符是否属于特定的字符类别)

--with-curl=DIR          Include cURL support
                         启用cURL支持(curl是利用URL语法在命令行方式下工作的开源文件传输工具)

--enable-dba             Build DBA with bundled modules.
                         To build shared DBA extension use --enable-dba=shared
                         编译捆绑模块的DBA。要编译共享模块的扩展使用 --enable-dba=shared

--with-qdbm=DIR          DBA: QDBM support
                         启用DBA的QDBM支持

--with-gdbm=DIR          DBA: GDBM support
                         启用DBA的GDBM支持

--with-ndbm=DIR          DBA: NDBM support
                         启用DBA的NDBM支持

--with-db4=DIR           DBA: Oracle Berkeley DB 4.x or 5.x support
                         启用DBA的Oracle Berkeley数据库4.x或5.x版本的支持

--with-db3=DIR           DBA: Oracle Berkeley DB 3.x support
                         启用DBA的Oracle Berkeley数据库3.x版本的支持

--with-db2=DIR           DBA: Oracle Berkeley DB 2.x support
                         启用DBA的Oracle Berkeley数据库2.x版本的支持

--with-db1=DIR           DBA: Oracle Berkeley DB 1.x support/emulation
                         启用DBA的Oracle Berkeley数据库1.x版本的支持及仿真

--with-dbm=DIR           DBA: DBM support
                         启用DBA的DBM支持

--with-tcadb=DIR         DBA: Tokyo Cabinet abstract DB support
                         启用DBA的Tokyo Cabinet abstract数据库支持

--without-cdb=DIR        DBA: CDB support (bundled)
                         禁用DBA的CDB支持 (捆绑方式)

--disable-inifile        DBA: INI support (bundled)
                         禁用DBA的INI支持 (捆绑方式)

--disable-flatfile       DBA: FlatFile support (bundled)
                         禁用DBA的FlatFile支持 (捆绑方式)

--disable-dom            Disable DOM support
                         禁用DOM支持(DOM可用于读取XML)

--with-libxml-dir=DIR    DOM: libxml2 install prefix
                         libxml2的安装路径(启用DOM的libxml2支持)

--with-enchant=DIR       Include enchant support. GNU Aspell version 1.1.3 or higher required.
                         启用enchant支持。需要GNU Aspell版本1.1.3或更高
                         (enchant是通用的拼写检查库,GNU Aspell则是拼写检查器)

--enable-exif            Enable EXIF (metadata from images) support
                         启用EXIF(图片的元数据)支持

--disable-fileinfo       Disable fileinfo support
                         禁用fileinfo支持
                         (fileinfo用于获得、修改文件的信息,若服务器内存过小,编译报错可尝试使用)

--disable-filter         Disable input filter support
                         禁用输入过滤支持

--with-pcre-dir          FILTER: pcre install prefix
                         pcre的安装路径(使输入过滤支持pcre)

--enable-ftp             Enable FTP support
                         启用FTP支持

--with-openssl-dir=DIR   FTP: openssl install prefix
                         OpenSSL安装路径(用于FTP的加密连接)

--with-gd=DIR            Include GD support. DIR is the GD library base install directory BUNDLED
                         启用GD支持。DIR是GD库的安装目录(GD是PHP用来处理图形的库)

--with-vpx-dir=DIR       GD: Set the path to libvpx install prefix
                         设置libvpx的安装路径(Google的图像压缩格式)

--with-jpeg-dir=DIR      GD: Set the path to libjpeg install prefix
                         设置libjpeg的安装路径(用于实现关于jpeg图片的各种功能)

--with-png-dir=DIR       GD: Set the path to libpng install prefix
                         设置libpng的安装路径(用于实现关于jpeg图片的各种功能)

--with-zlib-dir=DIR      GD: Set the path to libz install prefix
                         设置libz的安装路径

--with-xpm-dir=DIR       GD: Set the path to libXpm install prefix
                         设置libXpm的安装路径

--with-freetype-dir=DIR  GD: Set the path to FreeType 2 install prefix
                         设置FreeType2的安装路径

--with-t1lib=DIR         GD: Include T1lib support. T1lib version &gt;= 5.0.0 required
                         启用T1lib支持。需要T1lib版本至少5.0.0

--enable-gd-native-ttf   GD: Enable TrueType string function
                         启用TrueType字符功能

--enable-gd-jis-conv     GD: Enable JIS-mapped Japanese font support
                         启用JIS映射日文支持

--with-gettext=DIR       Include GNU gettext support
                         启用GNU gettext支持(gettext常被用于编写多语言程序)

--with-gmp=DIR           Include GNU MP support
                         启用GNU MP支持(GNU MP是跨平台的高精度计算函数库)

--with-mhash=DIR         Include mhash support
                         启用mhash支持(用于计算hash、加密)

--disable-hash           Disable hash support
                         禁用hash支持

--without-iconv=DIR      Exclude iconv support
                         禁用iconv支持(iconv用于处理编码)

--with-imap=DIR          Include IMAP support. DIR is the c-client install prefix
                         启用IMAP支持 DIR是c-client安装路径(IMAP用于发送邮件)

--with-kerberos=DIR      IMAP: Include Kerberos support. DIR is the Kerberos install prefix
                         使IMAP启用Kerberos支持(Kerberos是一种网络协议,可以保护网络实体免受窃听和重复攻击)

--with-imap-ssl=DIR      IMAP: Include SSL support. DIR is the OpenSSL install prefix
                         使IMAP启用SSL支持。DIR是OpenSSL的安装路径

--with-interbase=DIR     Include InterBase support.
                         DIR is the InterBase base install directory /usr/interbase
                         启用InterBase数据库支持。DIR是InterBase的安装目录,默认 /usr/interbase

--enable-intl            Enable internationalization support
                         启用国际化支持(与字符编码有关)

--with-icu-dir=DIR       Specify where ICU libraries and headers can be found
                         指定ICU库和头文件(Unicode库)

--disable-json           Disable JavaScript Object Serialization support
                         禁用Json支持

--with-ldap=DIR          Include LDAP support
                         启用LDAP支持(LDAP是轻型目录访问协议)

--with-ldap-sasl=DIR     LDAP: Include Cyrus SASL support
                         启用Cyrus SASL支持

--enable-mbstring        Enable multibyte string support
                         启用多字节字符支持(编码相关)

--disable-mbregex        MBSTRING: Disable multibyte regex support
                         禁用正则表达式函数中多字节字符的支持

--disable-mbregex-backtrack
                         MBSTRING: Disable multibyte regex backtrack check
                         禁用正则表达式函数中多字节字符的回溯检查

--with-libmbfl=DIR       MBSTRING: Use external libmbfl.
                         DIR is the libmbfl base install directory BUNDLED
                         使用外部libmbfl。DIR是libmbfl的安装目录

--with-onig=DIR          MBSTRING: Use external oniguruma. DIR is the oniguruma install prefix.
                         If DIR is not set, the bundled oniguruma will be used
                         使用外部oniguruma。DIR是oniguruma的安装路径。
                         若没有设置DIR,将使用捆绑的oniguruma

--with-mcrypt=DIR        Include mcrypt support
                         启用mcrypt支持(mcrypt用于加密解密)

--with-mssql=DIR         Include MSSQL-DB support. DIR is the FreeTDS home directory /usr/local/freetds
                         启用对MSSQL数据库支持。DIR是FreeTDS软件的目录,默认 /usr/local/freetds

--with-mysql=DIR         Include MySQL support. DIR is the MySQL base directory,if no DIR is passed
                         or the value is mysqlnd the MySQL native driver will be used
                         启用MySQL支持。DIR是MySQL的安装目录,
                         如果没指定DIR值或值为mysqlnd,将使用MySQL原生驱动(官方建议使用mysqlnd)

--with-mysql-sock=SOCKPATH
                         MySQL/MySQLi/PDO_MYSQL: Location of the MySQL unix socket pointer.
                         If unspecified, the default locations are searched
                         MySQL的Unix套接字指针的位置。如果没指定,将从默认位置搜索

--with-zlib-dir=DIR      MySQL: Set the path to libz install prefix
                         设置libz的安装路径

--with-mysqli=FILE       Include MySQLi support. FILE is the path to mysql_config.
                         If no value or mysqlnd is passed as FILE, the MySQL native driver will be used
                         启用MySQLi支持。FILE是到mysql_config的路径。
                         如果没指定位置或由mysqlnd传递值给FILE,将使用MySQL原生驱动
                         (官方强烈建议使用该参数,并使用mysqlnd)

--enable-embedded-mysqli MYSQLi: Enable embedded support Note: Does not work with MySQL native driver!
                         启用MySQLi的嵌入式支持。注意:使用MySQL原生驱动无效

--with-oci8=DIR          Include Oracle Database OCI8 support. DIR defaults to \$ORACLE_HOME.
                         Use --with-oci8=instantclient,/path/to/instant/client/lib
                         to use an Oracle Instant Client installation
                         启用Oracle数据库的OCI8支持。DIR默认是 \$ORACLE_HOME。
                         若使用ORACLE安装客户端安装的话
                         请使用 --with-oci8=instantclient,/path/to/instant/client/lib

--with-adabas=DIR        Include Adabas D support /usr/local
                         启用Adabas D支持,默认路径 /usr/local

--with-sapdb=DIR         Include SAP DB support /usr/local
                         启用SAP DB支持,默认路径 /usr/local

--with-solid=DIR         Include Solid support /usr/local/solid
                         启用Sloid支持,默认路径 /usr/local/solid

--with-ibm-db2=DIR       Include IBM DB2 support /home/db2inst1/sqllib
                         启用IBM DB2支持,默认路径 /home/db2inst1/sqllib

--with-ODBCRouter=DIR    Include ODBCRouter.com support /usr
                         启用ODBCRouter.com支持,默认路径 /usr

--with-empress=DIR       Include Empress support \$EMPRESSPATH (Empress Version &gt;= 8.60 required)
                         启用Empress支持,默认路径 \$EMPRESSPATH (需要Empress版本至少8.60)

--with-empress-bcs=DIR   Include Empress Local Access support \$EMPRESSPATH
                         (Empress Version &gt;= 8.60 required)
                         启用Empress本地访问支持,默认路径 \$EMPRESSPATH (需要Empress版本至少8.60)

--with-birdstep=DIR      Include Birdstep support /usr/local/birdstep
                         启用Birdstep支持,默认路径 /usr/local/birdstep

--with-custom-odbc=DIR   Include user defined ODBC support.
                         DIR is ODBC install base directory /usr/local.
                         Make sure to define CUSTOM_ODBC_LIBS and have some odbc.h in your include dirs.
                         启用用户自定义的ODBC支持。DIR是ODBC的安装目录,默认是 /usr/local。
                         确认已经定义了CUSTOM_ODBC_LIBS并且include文件夹内有odbc.h头文件。
                         f.e. you should define following for Sybase SQL Anywhere 5.5.00 on QNX,
                         prior to running this configure script:
                         CPPFLAGS=\"-DODBC_QNX -DSQLANY_BUG\"
                         LDFLAGS=-lunix
                         CUSTOM_ODBC_LIBS=\"-ldblib -lodbc\"
                         例如:你应该在QNX上为Sybase SQL Anywhere 5.5.00定义以下配置脚本:
                         CPPFLAGS=\"-DODBC_QNX -DSQLANY_BUG\"
                         LDFLAGS=-lunix
                         CUSTOM_ODBC_LIBS=\"-ldblib -lodbc\"

--with-iodbc=DIR         Include iODBC support /usr/local
                         启用iODBC支持,默认路径 /usr/local

--with-esoob=DIR         Include Easysoft OOB support /usr/local/easysoft/oob/client
                         启用Easysoft OOD支持,默认路径 /usr/local/easysoft/oob/client

--with-unixODBC=DIR      Include unixODBC support /usr/local
                         启用unixODBC支持,默认路径 /usr/local

--with-dbmaker=DIR       Include DBMaker support
                         启用BDMaker支持

--enable-opcache         Enable Zend OPcache support
                         启用Zend OPcache支持
                         (PHP5.5已经将OPcache集成到源码包里面了。OPcache与Xcache一样是PHP的加速器中的一种)

--enable-pcntl           Enable pcntl support (CLI/CGI only)
                         启用pcntl支持 (只针对CLI或者CGI)(pcntl是多线程的扩展)

--disable-pdo            Disable PHP Data Objects support
                         禁用PHP数据对象支持

--with-pdo-dblib=DIR     PDO: DBLIB-DB support. DIR is the FreeTDS home directory
                         启用PDO的DBLIB-DB支持。DIR是FreeTDS的安装目录

--with-pdo-firebird=DIR  PDO: Firebird support.
                         DIR is the Firebird base install directory /opt/firebird
                         启用PDO的Firebird支持。DIR是Firebird的安装目录,默认 /opt/firebird

--with-pdo-mysql=DIR     PDO: MySQL support. DIR is the MySQL base directory
                         If no value or mysqlnd is passed as DIR, the MySQL native driver will be used
                         启用PDO的MySQL支持。DIR是MySQL的基础目录。
                         如果没指定值或由mysqlnd传递值给DIR,将使用MySQL原生驱动(官方建议使用mysqlnd)

--with-zlib-dir=DIR      PDO_MySQL: Set the path to libz install prefix
                         设置libz的安装路径

--with-pdo-oci=DIR       PDO: Oracle OCI support. DIR defaults to \$ORACLE_HOME.
                         Use --with-pdo-oci=instantclient,prefix,version for
                         an Oracle Instant Client SDK.
                         启用Oracle的OCI支持。DIR默认是 、$ORACLE_HOME。
                         若使用ORACLE安装客户端SDK的话请使用 --with-pdo-oci=instantclient,prefix,version
                         For example on Linux with 11.2 RPMs use:
                         --with-pdo-oci=instantclient,/usr,11.2
                         例如:在带有RPM11.2版本的Linux上使用
                         --with-pdo-oci=instantclient,/usr,11.2
                         With 10.2 RPMs use:
                         --with-pdo-oci=instantclient,/usr,10.2.0.4
                         在带有RPM10.2版本的Linux上使用
                         --with-pdo-oci=instantclient,/usr,10.2.0.4

--with-pdo-odbc=flavour,dir
                         PDO: Support for 'flavour' ODBC driver.
                         include and lib dirs are looked for under 'dir'.
                         'flavour' can be one of: ibm-db2, iODBC, unixODBC, generic
                         If ',dir' part is omitted,
                         default for the flavour you have selected will be used.
                         启用'flavour'的ODBC驱动支持。在dir目录下的lib和includes下查找。
                         'flavour'可以是一个ibm-db2,iODBC,unixODBC,generic
                         如果',dir'部分被省略,将使用你选择的默认值。
                         e.g.:
                         --with-pdo-odbc=unixODBC
                         will check for unixODBC under /usr/local. You may
                         attempt to use an otherwise unsupported driver using the \"generic\" flavour.
                         The syntax for generic ODBC support is:
                         --with-pdo-odbc=generic,dir,libname,ldflags,cflags
                         When built as 'shared' the extension filename is always pdo_odbc.so

--with-pdo-pgsql=DIR     PDO: PostgreSQL support.
                         DIR is the PostgreSQL base install directory or the path to pg_config
                         启用PDO的PostgreSQL支持。DIR是PostgreSQL的安装目录或者pg_config的路径

--without-pdo-sqlite=DIR PDO: sqlite 3 support. DIR is the sqlite base install directory BUNDLED
                         启用sqlite3支持。DIR是sqlite安装目录

--with-pgsql=DIR         Include PostgreSQL support.
                         DIR is the PostgreSQL base install directory or the path to pg_config
                         启用PostgreSQL支持。DIR是PostgreSQL的安装目录或者pg_config的路径

--disable-phar           Disable phar support
                         禁用phar支持(phar是PHP的数据流包装器)

--disable-posix          Disable POSIX-like functions
                         禁用POSIX-like函数支持(POSIX-like是类可移植操作系统接口)

--with-pspell=DIR        Include PSPELL support. GNU Aspell version 0.50.0 or higher required
                         启用PSPELL支持。需要GNU Aspell版本至少0.50.0(Pspell用于代码的拼写检查)

--with-libedit=DIR       Include libedit readline replacement (CLI/CGI only)
                         启用libedit readline更换支持 (只针对CLI或者CGI)

--with-readline=DIR      Include readline support (CLI/CGI only)
                         启用readline支持 (只针对CLI或者CGI)

--with-recode=DIR        Include recode support
                         启用recode支持(recode有关于编码)

--disable-session        Disable session support
                         禁用session支持

--with-mm=DIR            SESSION: Include mm support for session storage
                         启用session存储mm支持

--enable-shmop           Enable shmop support
                         启用shmop支持(shmop允许PHP读、写、创建和删除UNIX共享内存段)

--disable-simplexml      Disable SimpleXML support
                         禁用SimpleXML支持(SimpleXML函数允许把XML转换为对象)

--with-libxml-dir=DIR    SimpleXML: libxml2 install prefix
                         libxml2的安装路径(启用SimpleXML的libxml2支持)

--with-snmp=DIR          Include SNMP support
                         启用SNMP支持(SNMP是简单网络管理协议)

--with-openssl-dir=DIR   SNMP: openssl install prefix
                         OpenSSL安装路径(用于SNMP的加密连接)

--enable-soap            Enable SOAP support
                         启用SOAP支持(SOAP是基于XML的简单对象访问协议)

--with-libxml-dir=DIR    SOAP: libxml2 install prefix
                         libxml2的安装路径(启用SOAP的libxml2支持)

--enable-sockets         Enable sockets support
                         启用套接字支持

--with-sybase-ct=DIR     Include Sybase-CT support. DIR is the Sybase home directory /home/sybase
                         启用Sybase-CT数据库支持。DIR是Sybase的安装目录,默认 /home/sybase

--enable-sysvmsg         Enable sysvmsg support
                         启用sysvmsg支持(sysvmsg是消息队列函数,将无需手动控制内存大小,支持php之间通讯)

--enable-sysvsem         Enable System V semaphore support
                         启用系统V信号支持(sysvsem与shmop一样用于PHP共享内存和信号量)

--enable-sysvshm         Enable the System V shared memory support
                         启用系统V共享内存支持

--with-tidy=DIR          Include TIDY support
                         启用TIDY支持(TIDY是用于HTML纠错的工具)

--disable-tokenizer      Disable tokenizer support
                         禁用tokenizer支持(tokenizer是PHP源码分析器)

--enable-wddx            Enable WDDX support
                         启用WDDX支持(WDDX用于转换数据结构)

--with-libxml-dir=DIR    WDDX: libxml2 install prefix
                         libxml2的安装路径(启用WDDX的libxml2支持)

--with-libexpat-dir=DIR  WDDX: libexpat dir for XMLRPC-EPI (deprecated)
                         为XMLRPC-EPI启用libexpat (不推荐)

--disable-xml            Disable XML support
                         禁用XML支持

--with-libxml-dir=DIR    XML: libxml2 install prefix
                         libxml2的安装路径(启用XML的libxml2支持)

--with-libexpat-dir=DIR  XML: libexpat install prefix (deprecated)
                         libexpat的安装路径 (不推荐)

--disable-xmlreader      Disable XMLReader support
                         禁用XMLReader支持

--with-libxml-dir=DIR    XMLReader: libxml2 install prefix
                         libxml2的安装路径(启用XMLReader的libxml2支持)

--with-xmlrpc=DIR        Include XMLRPC-EPI support
                         启用XMLRPC-EPI支持(关于XMLPRC协议)

--with-libxml-dir=DIR    XMLRPC-EPI: libxml2 install prefix
                         libxml2的安装路径(启用XMLRPC-EPI的libxml2支持)

--with-libexpat-dir=DIR  XMLRPC-EPI: libexpat dir for XMLRPC-EPI (deprecated)
                         为XMLRPC-EPI启用libexpat (不推荐)

--with-iconv-dir=DIR     XMLRPC-EPI: iconv dir for XMLRPC-EPI
                         为XMLRPC-EPI启用iconv

--disable-xmlwriter      Disable XMLWriter support
                         禁用XMLWriter支持

--with-libxml-dir=DIR    XMLWriter: libxml2 install prefix
                         libxml2的安装路径(启用XMLWriter的libxml2支持)

--with-xsl=DIR           Include XSL support.
                         DIR is the libxslt base install directory (libxslt >= 1.1.0 required)
                         启用XSL支持。DIR是libxslt安装目录 (需要libxslt版本至少1.1.0)

--enable-zip             Include Zip read/write support
                         启用Zip的读写支持

--with-zlib-dir=DIR      ZIP: Set the path to libz install prefix
                         设置libz的安装路径

--with-pcre-dir          ZIP: pcre install prefix
                         pcre的安装路径

--enable-mysqlnd         Enable mysqlnd explicitly, will be done implicitly
                         when required by other extensions
                         启用mysqlnd,当其他扩展需要时将隐式运行

--disable-mysqlnd-compression-support
                         Disable support for the MySQL compressed protocol in mysqlnd
                         禁用mysqlnd的MySQL压缩协议支持

--with-zlib-dir=DIR      mysqlnd: Set the path to libz install prefix
                         设置libz的安装路径

10、Zend:

--with-zend-vm=TYPE      Set virtual machine dispatch method.
                         Type is one of "CALL", "SWITCH" or "GOTO" TYPE=CALL
                         设置虚拟机调度方式。TYPE是"CALL"、"SWITCH"、"GOTO"中的一个,默认TYPE=CALL

--enable-maintainer-zts  Enable thread safety - for code maintainers only!!
                         启用线程安全 - 代码维护者使用

--disable-inline-optimization
                         If building zend_execute.lo fails, try this switch
                         如果zend_execute.lo编译失败,尝试使用

--enable-zend-signals    Use zend signal handling
                         使用zend的信号处理

 

最后,提供 PHP 5.5 的 TXT 文档:

下载:百度网盘


原创文章,转载请以链接形式注明出处:https://blog.ttionya.com/article-640.html