美文网首页
PHP 编译选项configure

PHP 编译选项configure

作者: Jaxh | 来源:发表于2020-08-20 22:25 被阅读0次

    使用命令./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以适应多种系统。
    
    用法:./ configure [OPTION] ... [VAR = VALUE] ...
    
    要分配环境变量(例如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不创建输出文件
          --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            用户可执行文件[EPREFIX/bin]
      --sbindir=DIR           系统管理员可执行文件[EPREFIX/sbin]
      --libexecdir=DIR        程序可执行文件[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         依赖于语言环境的数据[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
    
    系统类型:
      --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 中查找库,而不是在 .../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是“共享的”或“静态的”。
                                [TYPE=shared]
      --enable-fpm              启用fpm SAPI可执行文件的构建
      --with-fpm-user[=USER]    设置php-fpm的用户身份。 (默认:nobody)
      --with-fpm-group[=GRP]    设置php-fpm的运行组。对于系统
                                用户,通常应将其设置为与fpm匹配
                                用户名(默认:nobody)
      --with-fpm-systemd        激活系统集成
      --with-fpm-acl            使用POSIX访问控制列表
      --enable-litespeed        将PHP构建为litespeed模块
      --enable-phpdbg           构建phpdbg
      --enable-phpdbg-webhelper
    

    相关文章

      网友评论

          本文标题:PHP 编译选项configure

          本文链接:https://www.haomeiwen.com/subject/fkzejktx.html