seaprince.cn
Prepare before you begin
Before you begin, you need to prepare the following things:
- Microsoft Visual C + +, recommended for Visual C + + 2008, Express Edition or Professional Edition is available.
- 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.
- Other tools, download address:http://pecl2.php.net/downloads/php-windows-builds/php-libs/binary-tools.zip
Compile step
- Download and install VC + + 2008, and install.
- Installing Windows SDK 6.1
- Download php5.3, download address:http://cn.php.net/get/php-5.3.0.tar.bz2/from/this/mirror
- Create folders, such as C:php-sdk
- The third step to download the package here, extract the C:PHP-SDK should have two sub-directory bin, script
- 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
- 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
- At the command line of WIN-SDK, enter:
CD c:php-sdkphp53devvc9x86php5.3.0
buildconf
- At this point, it's almost like Linux, and you can look at the compiled options to help:
Configure–help
- OK, let's get a minimal build:
Configure–disable-all–enable-cli
NMAKE
- This step is not a problem on the PHP wiki, but because we are in the Chinese environment, we will report the following error:
- Open extstandardrowscap.c This file with EditPlus,
Select Yes, and choose western European (Windows)
Then save as UTF-8 encoding.
- 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.
- 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: ...