码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2015-10-03 18:20:51      阅读:305      评论:0      收藏:0      [点我收藏+]

标签:

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>


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

标签:

原文地址:http://my.oschina.net/dingdayu/blog/513359

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!