php_php Tutorial for source code compilation under Windows

Source: Internet
Author: User
seaprince.cn

Prepare before you begin

Before you begin, you need to prepare the following things:

    1. Microsoft Visual C + +, recommended for Visual C + + 2008, Express Edition or Professional Edition is available.
    2. Windows SDK, download address: aspx? Familyid=f26b1aa4-741a-433a-9be5-fa919850bdbf&displaylang=en ">http://www.microsoft.com/downloads/ Details.aspx? Familyid=f26b1aa4-741a-433a-9be5-fa919850bdbf&displaylang=en does not recommend using that network installation, slow death, still do not know when to finish. There is also the proposal to install all.
    3. Other tools, download address:http://pecl2.php.net/downloads/php-windows-builds/php-libs/binary-tools.zip

Compile step

  1. Download and install VC + + 2008, and install.
  2. Installing Windows SDK 6.1
  3. Download php5.3, download address:http://cn.php.net/get/php-5.3.0.tar.bz2/from/this/mirror
  4. Create folders, such as C:php-sdk
  5. The third step to download the package here, extract the C:PHP-SDK should have two sub-directory bin, script
  6. Open the Microsoft Windows SDK v6.1/cmd Shell at the Start menu, and enter the command:
    Setenv/x86/xp/release
    CD C:PHP-SDK
    Binphpsdk_setvars.bat
    Binphpsdk_buildtree.bat Php53dev
  7. A few directories are created in the previous step. Enter the vc9x86, unzip the php5.3.0 here, unzip the directory structure: vc9x86php5.3.0
  8. At the command line of WIN-SDK, enter:
    CD c:php-sdkphp53devvc9x86php5.3.0
    buildconf
  9. At this point, it's almost like Linux, and you can look at the compiled options to help:
    Configure–help
  10. OK, let's get a minimal build:
    Configure–disable-all–enable-cli
    NMAKE
  11. This step is not a problem on the PHP wiki, but because we are in the Chinese environment, we will report the following error:
  12. Open extstandardrowscap.c This file with EditPlus,

    Select Yes, and choose western European (Windows)
    Then save as UTF-8 encoding.
  13. Re- NMAKE the compilation and then compile the final binary package with NMAKE snap . The binary package is under PHP-5.3.0RELEASE_TS. The possible name is Php-5.3.0-win32-vc9-x86.zip.
  14. Test it:

The next article then writes how to compile the pecl extension.

http://www.bkjia.com/PHPjc/508461.html www.bkjia.com true http://www.bkjia.com/PHPjc/508461.html techarticle before you start preparing for seaprince.cn, you need to prepare the following: Microsoft Visual C + +, recommended for Visual C + + 2008, express or Professional Edition. Windows SDK, download address: ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.