前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >原 PHP7.0的编译记录(失败)

原 PHP7.0的编译记录(失败)

作者头像
霡霂
发布2018-06-04 14:33:21
1.6K0
发布2018-06-04 14:33:21
举报
文章被收录于专栏:雨过天晴
代码语言:javascript
复制
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC>cd c:/php

c:\php>bin\phpsdk_setvars.bat

c:\php>REM phpsdk.bat
c:\php>cd c:\php\phpdev\vc15\x64\php-7.0.0RC4-src

c:\php\phpdev\vc15\x64\php-7.0.0RC4-src>buildconf
Rebuilding configure.js
Now run 'configure --help'

c:\php\phpdev\vc15\x64\php-7.0.0RC4-src>configure --help
Options that enable extensions and SAPI will accept 'yes' or 'no' as a
parameter. They also accept 'shared' as a synonym for 'yes' and request a
shared build of that module. Not all modules can be built as shared modules;
configure will display [shared] after the module name if can be built that
way.

  --enable-snapshot-build           Build a snapshot; turns on everything it
                                    can and ignores build errors
  --enable-one-shot                 Optimize for fast build - best for release
                                    and snapshot builders, not so hot for
                                    edit-and-rebuild hacking
  --with-toolset                    Toolset to use for the compilation, give:
                                    vs, clang, icc. The only recommended and
                                    supported toolset for production use is
                                    Visual Studio. Use others at your own
                                    risk.
  --with-cygwin                     Path to cygwin utilities on your system
  --enable-object-out-dir           Alternate location for binary objects
                                    during build
  --enable-debug                    Compile with debugging symbols
  --enable-debug-pack               Release binaries with external debug
                                    symbols (--enable-debug must not be
                                    specified)
  --enable-pgi                      Generate PGO instrumented binaries
  --with-pgo                        Compile optimized binaries using training
                                    data from folder
  --disable-zts                     Thread safety
  --with-prefix                     where PHP will be installed
  --with-mp                         Tell Visual Studio use up to
                                    [n,auto,disable] processes for compilation
  --with-php-build                  Path to where you extracted the
                                    development libraries
                                    (http://wiki.php.net/internals/windows/libs).
                                    Assumes that it is a sibling of this
                                    source dir (..\deps) if not specified
  --with-extra-includes             Extra include path to use when building
                                    everything
  --with-extra-libs                 Extra library path to use when linking
                                    everything
  --disable-ipv6                    Disable IPv6 support (default is turn it
                                    on if available)
  --enable-fd-setsize               Set maximum number of sockets for
                                    select(2)
  --with-snapshot-template          Path to snapshot builder template dir
  --disable-security-flags          Disable the compiler security flags
  --with-analyzer                   Enable static analyzer. Pass vs for Visual
                                    Studio, pvs for PVS-Studio
  --without-uncritical-warn-choke   Disable some uncritical warnings
  --with-codegen-arch               Architecture for code generation: ia32,
                                    sse, sse2, avx, avx2
  --with-all-shared                 Force all the non obligatory extensions to
                                    be shared
  --enable-apache2handler           Build Apache 2.x handler
  --enable-apache2-2handler         Build Apache 2.2.x handler
  --enable-apache2-4handler         Build Apache 2.4.x handler
  --disable-cgi                     Build CGI version of PHP
  --disable-cli                     Build CLI version of PHP
  --enable-crt-debug                Enable CRT memory dumps for debugging sent
                                    to STDERR
  --enable-cli-win32                Build console-less CLI version of PHP
  --enable-embed                    Embedded SAPI library
  --enable-phpdbg                   Build phpdbg
  --enable-phpdbgs                  Build phpdbg shared
  --disable-phpdbg-webhelper        Build phpdbg webhelper
  --disable-bcmath                  bc style precision math functions
  --with-bz2                        BZip2
  --disable-calendar                calendar conversion support
  --disable-com-dotnet              COM and .Net support
  --disable-ctype                   ctype
  --with-curl                       cURL support
  --with-dba                        DBA support
  --with-enchant                    Enchant Support
  --enable-fileinfo                 fileinfo support
  --disable-filter                  Filter Support
  --disable-ftp                     ftp support
  --without-gd                      Bundled GD support
  --without-libwebp                 webp support
  --with-gettext                    gettext support
  --with-gmp                        Include GNU MP support.
  --disable-hash                    enable hash support
  --with-mhash                      mhash support
  --without-iconv                   iconv support
  --with-imap                       IMAP Support
  --with-interbase                  InterBase support
  --enable-intl                     Enable internationalization support
  --disable-json                    JavaScript Object Serialization support
  --with-ldap                       LDAP support
  --with-libmbfl                    use external libmbfl
  --enable-mbstring                 multibyte string functions
  --enable-mbregex                  multibyte regex support
  --disable-mbregex-backtrack       check multibyte regex backtrack
  --with-mcrypt                     mcrypt support
  --without-mysqlnd                 Mysql Native Client Driver
  --with-oci8                       OCI8 support
  --with-oci8-11g                   OCI8 support using Oracle 11g Instant
                                    Client
  --with-oci8-12c                   OCI8 support using Oracle Database 12c
                                    Instant Client
  --enable-odbc                     ODBC support
  --with-odbcver                    Force support for the passed ODBC version.
                                    A hex number is expected, default 0x0300.
                                    Use the special value of 0 to prevent an
                                    explicit ODBCVER to be defined.
  --disable-opcache                 whether to enable Zend OPcache support
  --disable-opcache-file            whether to enable file based caching
  --with-openssl                    OpenSSL support
  --with-pgsql                      PostgreSQL support
  --with-pspell                     pspell/aspell (whatever it's called this
                                    month) support
  --disable-session                 session support
  --enable-shmop                    shmop support
  --with-snmp                       SNMP support
  --enable-sockets                  SOCKETS support
  --with-sqlite3                    SQLite 3 support
  --with-config-file-scan-dir       Dir to check for additional php ini files
  --enable-sysvshm                  SysV Shared Memory support
  --with-tidy                       TIDY support
  --disable-tokenizer               tokenizer support
  --disable-zip                     ZIP support
  --disable-zlib                    ZLIB support
  --without-libxml                  LibXML support
  --without-dom                     DOM support
  --enable-exif                     exif
  --with-mysqli                     MySQLi support
  --enable-pdo                      Enable PHP Data Objects support
  --with-pdo-dblib                  freetds dblib (Sybase, MS-SQL) support for
                                    PDO
  --with-pdo-mssql                  Native MS-SQL support for PDO
  --with-pdo-firebird               Firebird support for PDO
  --with-pdo-mysql                  MySQL support for PDO
  --with-pdo-oci                    Oracle OCI support for PDO
  --with-pdo-odbc                   ODBC support for PDO
  --with-pdo-pgsql                  PostgreSQL support for PDO
  --with-pdo-sqlite                 for pdo_sqlite support
  --with-pdo-sqlite-external        for pdo_sqlite support from an external
                                    dll
  --disable-phar                    disable phar support
  --enable-phar-native-ssl          enable phar with native OpenSSL support
  --without-simplexml               Simple XML support
  --enable-soap                     SOAP support
  --without-xml                     XML support
  --without-wddx                    WDDX support
  --disable-xmlreader               XMLReader support
  --with-xmlrpc                     XMLRPC-EPI support
  --disable-xmlwriter               XMLWriter support
  --with-xsl                        xsl support
  --enable-redis                    whether to enable redis support
  --disable-redis-session           whether to enable sessions
  --enable-redis-igbinary           whether to enable igbinary serializer
                                    support

c:\php\phpdev\vc15\x64\php-7.0.0RC4-src>configure --disable-all --enable-cli --enable-session --enable-redis=shared --enable-redis-session --enable-redis-igbinary
Saving configure options to config.nice.bat
Checking for cl.exe ...  <in default path>
  Detected compiler MSVC11 (Visual C++ 2012)
  Detected 64-bit compiler
Checking for link.exe ...  C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\x86_amd64
Checking for nmake.exe ...  <in default path>
Checking for lib.exe ...  <in default path>
Checking for bison.exe ...  <in default path>
Checking for re2c.exe ...  <in default path>
  Detected re2c version 0.13.5
Checking for zip.exe ...  <in default path>
Checking for lemon.exe ...  <not found>
Checking for mc.exe ...  C:\Program Files (x86)\Windows Kits\8.0\bin\x86
Checking for mt.exe ...  C:\Program Files (x86)\Windows Kits\8.0\bin\x86
Enabling multi process build

Build dir: C:\php\phpdev\vc15\x64\php-7.0.0RC4-src\x64\Release_TS
PHP Core:  php7ts.dll and php7ts.lib

Checking for wspiapi.h ...  <not found>
Checking for wspiapi.h ...  <not found>
Enabling SAPI sapi\cli
Enabling extension ext\date
Enabling extension ext\pcre
Enabling extension ext\reflection
Enabling extension ext\session
Enabling extension ext\spl
Checking for timelib_config.h ...  ext/date/lib
Enabling extension ext\standard
Checking for igbinary.h ...  <not found>
Checking for igbinary.h ...  <not found>
WARNING: redis igbinary support not enabled

Enabling extension pecl\redis [shared]

Creating build dirs...
Generating files...
Generating Makefile
Generating main/internal_functions.c
Generating main/config.w32.h
Generating phpize
Done.



Enabled extensions:
-----------------------
| Extension  | Mode   |
-----------------------
| date       | static |
| pcre       | static |
| redis      | shared |
| reflection | static |
| session    | static |
| spl        | static |
| standard   | static |
-----------------------


Enabled SAPI:
-------------
| Sapi Name |
-------------
| cli       |
-------------


----------------------------------------------
|                 |                          |
----------------------------------------------
| Build type      | Release                  |
| Thread Safety   | Yes                      |
| Compiler        | MSVC11 (Visual C++ 2012) |
| Architecture    | x64                      |
| Optimization    | PGO disabled             |
| Static analyzer | disabled                 |
----------------------------------------------


Type 'nmake' to build PHP

c:\php\phpdev\vc15\x64\php-7.0.0RC4-src>nmake php_redis.dll

Microsoft (R) 程序维护实用工具 11.00.60610.1 版
版权所有 (C) Microsoft Corporation。保留所有权利。

        "cl.exe" /D PHP_SESSION=1 /DHAVE_IGBINARY_H=0 /D COMPILE_DL_REDIS /D REDIS_EXPORTS=1 /nologo /I . /I main /I Zend /I TSRM /I ext /D _WINDOWS /D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS /W3 /FD /wd4996 /MP /LD /MD /W3 /Ox /D NDebug /D NDEBUG /D ZEND_WIN32_FORCE_INLINE /GF /D ZEND_DEBUG=0 /D ZTS=1 /I "C:\php\phpdev\vc15\x64\deps\include" /D FD_SETSIZE=256 /FoC:\php\phpdev\vc15\x64\php-7.0.0RC4-src\x64\Release_TS\pecl\redis\ /FpC:\php\phpdev\vc15\x64\php-7.0.0RC4-src\x64\Release_TS\pecl\redis\ /FRC:\php\phpdev\vc15\x64\php-7.0.0RC4-src\x64\Release_TS\pecl\redis\ /FdC:\php\phpdev\vc15\x64\php-7.0.0RC4-src\x64\Release_TS\pecl\redis\ /c pecl\redis\cluster_library.c pecl\redis\library.c pecl\redis\redis.c pecl\redis\redis_array.c pecl\redis\redis_array_impl.c pecl\redis\redis_cluster.c pecl\redis\redis_commands.c pecl\redis\redis_session.c
cluster_library.c
library.c
redis.c
redis_array.c
redis_array_impl.c
redis_cluster.c
redis_commands.c
redis_session.c
pecl\redis\redis_array_impl.c : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格 式以防止数据丢失
c:\php\phpdev\vc15\x64\php-7.0.0rc4-src\zend\zend_config.w32.h(38) : fatal error C1083: 无法打开包括文件:“winsock2.h”: No such file or directory (pecl\redis\redis_commands.c)
c:\php\phpdev\vc15\x64\php-7.0.0rc4-src\zend\zend_config.w32.h(38) : fatal error C1083: 无法打开包括文件:“winsock2.h”: No such file or directory (pecl\redis\redis.c)
c:\php\phpdev\vc15\x64\php-7.0.0rc4-src\zend\zend_config.w32.h(38) : fatal error C1083: 无法打开包括文件:“winsock2.h”: No such file or directory (pecl\redis\redis_session.c)
c:\php\phpdev\vc15\x64\php-7.0.0rc4-src\zend\zend_config.w32.h(38) : fatal error C1083: 无法打开包括文件:“winsock2.h”: No such file or directory (pecl\redis\redis_array.c)
c:\php\phpdev\vc15\x64\php-7.0.0rc4-src\zend\zend_config.w32.h(38) : fatal error C1083: 无法打开包括文件:“winsock2.h”: No such file or directory (pecl\redis\redis_cluster.c)
c:\php\phpdev\vc15\x64\php-7.0.0rc4-src\zend\zend_config.w32.h(38) : fatal error C1083: 无法打开包括文件:“winsock2.h”: No such file or directory (pecl\redis\library.c)
c:\php\phpdev\vc15\x64\php-7.0.0rc4-src\zend\zend_config.w32.h(38) : fatal error C1083: 无法打开包括文件:“winsock2.h”: No such file or directory (pecl\redis\cluster_library.c)
c:\php\phpdev\vc15\x64\php-7.0.0rc4-src\zend\zend_config.w32.h(38) : fatal error C1083: 无法打开包括文件:“winsock2.h”: No such file or directory (pecl\redis\redis_array_impl.c)
NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\x86_amd64\cl.exe"”: 返回代码“0x2”
Stop.

c:\php\phpdev\vc15\x64\php-7.0.0RC4-src>
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
云数据库 MySQL
腾讯云数据库 MySQL(TencentDB for MySQL)为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。其具备6大企业级特性,包括企业级定制内核、企业级高可用、企业级高可靠、企业级安全、企业级扩展以及企业级智能运维。通过使用腾讯云数据库 MySQL,可实现分钟级别的数据库部署、弹性扩展以及全自动化的运维管理,不仅经济实惠,而且稳定可靠,易于运维。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档