PHP 編譯選項configure

使用命令./configure --help查看選項幫助

`configure' configures PHP 7.4.9 to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

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
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

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'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/php]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  --target=TARGET   configure for building compilers for TARGET [HOST]

Optional Features and Packages:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --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)
  --with-libdir=NAME      Look for libraries in .../NAME rather than .../lib
  --disable-rpath         Disable passing additional runtime library search
                          paths
  --enable-re2c-cgoto     Enable -g flag to re2c to use computed goto gcc
                          extension
  --disable-gcc-global-regs
                          whether to enable GCC global register variables

SAPI modules:

  --with-apxs2[=FILE]     Build shared Apache 2 handler module. FILE is the
                          optional pathname to the Apache apxs tool [apxs]
  --disable-cli           Disable building CLI version of PHP (this forces
                          --without-pear)
  --enable-embed[=TYPE]   EXPERIMENTAL: Enable building of embedded SAPI
                          library TYPE is either 'shared' or 'static'.
                          [TYPE=shared]
  --enable-fpm            Enable building of the fpm SAPI executable
  --with-fpm-user[=USER]  Set the user for php-fpm to run as. (default:
                          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)
  --with-fpm-systemd      Activate systemd integration
  --with-fpm-acl          Use POSIX Access Control Lists
  --enable-litespeed      Build PHP as litespeed module
  --enable-phpdbg         Build phpdbg
  --enable-phpdbg-webhelper
 

翻譯

`configure` 配置PHP 7.4.9以適應多種系統(tǒng)。

用法:./ configure [OPTION] ... [VAR = VALUE] ...

要分配環(huán)境變量(例如CC,CFLAGS ...),請將其指定為
VAR = VALUE。有關某些有用變量的說明,請參見下文。

選項的默認值在方括號中指定。

configure:
  -h,--help                  顯示此幫助并退出
      --help=short            簡短顯示此軟件包的選項
      --help=recursive        顯示所有包含的軟件包的簡短幫助
  -V,--version                顯示版本信息并退出
  -q,-quiet,-silent          不打印“檢查中...”消息
      --cache-file=FILE        緩存測試結果在FILE中[已禁用]
  -C,“-cache-file=config.cache”的--config-cache別名
  -n,--no-create不創(chuàng)建輸出文件
      --srcdir = DIR在DIR中找到源[configure dir或`..`]

安裝目錄:
  --prefix=PREFIX  在PREFIX中安裝與體系結構無關的文件
                          [/usr/local]
  --exec-prefix=EPREFIX  在EPREFIX中安裝與體系結構相關的文件
                          [PREFIX]

默認情況下,“make install”將安裝所有文件
/usr/local/ bin,/usr/local/lib 等。您可以指定
使用`--prefix`的`/usr/local`以外的安裝前綴,
例如`--prefix=$HOME`。

為了更好地控制,請使用以下選項。

微調安裝目錄:
  --bindir=DIR            用戶可執(zhí)行文件[EPREFIX/bin]
  --sbindir=DIR           系統(tǒng)管理員可執(zhí)行文件[EPREFIX/sbin]
  --libexecdir=DIR        程序可執(zhí)行文件[EPREFIX/libexec]
  --sysconfdir=DIR        只讀單機數據[PREFIX/etc]
  --sharedstatedir=DIR    可修改的體系結構獨立數據[PREFIX/com]
  --localstatedir=DIR     可修改的單機數據[PREFIX/var]
  --libdir=DIR            目標代碼庫[EPREFIX/lib]
  --includedir=DIR        C頭文件[PREFIX/include]
  --oldincludedir=DIR     非gcc的DIR C頭文件[/usr/include]
  --datarootdir=DIR       只讀的獨立于拱的數據根[PREFIX/share]
  --datadir=DIR           與架構無關的只讀數據[DATAROOTDIR]
  --infodir=DIR           信息文檔[DATAROOTDIR/info]
  --localedir=DIR         依賴于語言環(huán)境的數據[DATAROOTDIR / locale]
  --mandir=DIR            手冊文件[DATAROOTDIR/man]
  --docdir=DIR            文檔根[DATAROOTDIR/doc/ php]
  --htmldir=DIR           html文檔 [DOCDIR]
  --dvidir=DIR            dvi文檔 [DOCDIR]
  --pdfdir=DIR            pdf文檔 [DOCDIR]
  --psdir=DIR             ps文檔 [DOCDIR]

程序名稱:
  --program-prefix=PREFIX           在已安裝的程序名稱前加上PREFIX
  --program-suffix=SUFFIX           將SUFFIX附加到已安裝的程序名稱
  --program-transform-name=PROGRAM  在已安裝的程序名稱上運行sed PROGRAM

系統(tǒng)類型:
  --build=BUILD             配置在 BUILD [guessed] 上構建
  --host=HOST               交叉編譯以構建要在 HOST [BUILD] 上運行的程序
  --target=TARGET           配置為 TARGET [HOST] 構建編譯器

可選功能和包:
  --disable-option-checking 忽略無法識別的 --enable/-with options
  --disable-FEATURE         不包含FEATURE(與 --enable-FEATURE=no 相同)
  --enable-FEATURE[=ARG]    包括功能 [ARG=yes]
  --with-PACKAGE[=ARG]      使用包 [ARG=yes]
  --without-PACKAGE         不要使用PACKAGE(與 --with-PACKAGE=no 相同)
  --with-libdir=NAME        在 .../NAME 中查找?guī)?,而不是?.../lib 中查找
  --disable-rpath           禁用傳遞附加的運行時庫搜索
                            路徑
  --enable-re2c-cgoto       啟用-g標志以re2c使用計算的goto gcc延期
  --disable-gcc-global-regs
                            是否啟用GCC全局寄存器變量

SAPI模塊:

  --with-apxs2[=FILE]       構建共享的Apache 2處理程序模塊。FILE是
                            Apache apxs工具[apxs]的可選路徑名
  --disable-cli             禁用構建PHP的CLI版本(這將強制
                            --without-pear)
  --enable-embed[=TYPE]     實驗:啟用構建嵌入式SAPI
                            庫TYPE是“共享的”或“靜態(tài)的”。
                            [TYPE=shared]
  --enable-fpm              啟用fpm SAPI可執(zhí)行文件的構建
  --with-fpm-user[=USER]    設置php-fpm的用戶身份。 (默認:nobody)
  --with-fpm-group[=GRP]    設置php-fpm的運行組。對于系統(tǒng)
                            用戶,通常應將其設置為與fpm匹配
                            用戶名(默認:nobody)
  --with-fpm-systemd        激活系統(tǒng)集成
  --with-fpm-acl            使用POSIX訪問控制列表
  --enable-litespeed        將PHP構建為litespeed模塊
  --enable-phpdbg           構建phpdbg
  --enable-phpdbg-webhelper
?著作權歸作者所有,轉載或內容合作請聯系作者
【社區(qū)內容提示】社區(qū)部分內容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

友情鏈接更多精彩內容