Changeset 91


Ignore:
Timestamp:
05/10/05 15:01:56 (5 years ago)
Author:
zoeloelip
Message:

Updated README.win32 with extra information from Larnot

Location:
eaccelerator/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • eaccelerator/trunk/ChangeLog

    r90 r91  
    33        * Added some includes to satisfy VC.NET (thanks to dakalka, patch 1198522) 
    44        * This patch adds the right destructor for the propertiesinfo hashtable, but it doesn't fix bug 1179270 
     5        * Updated README.win32 with some extra information from Larnot 
    56 
    672005-05-09 Franck Tabary <franck34 at users.sourceforge.net> 
  • eaccelerator/trunk/README.win32

    r78 r91  
    44Requirements 
    55------------ 
    6 * You need Visual Studio 6 C++ (VS.Net could work but hasn't been tested) 
    7 * You need to download the full source code of php 4/5 
    8 * You need to download the zip file with the precompiled php 4/5 binary (or build php 4/5 you're self from source) 
     6* eAccelerator sources 
     7  Download the latest eAccelerator sources from sourceforge.net ( http://sourceforge.net/projects/eaccelerator ). 
     8* You need Visual Studio or compatible compiler (Windows Libraries) 
     9* You need to download the full source code of php 4/5 and the archive with the precompiled php 4/5 binary (or build php 4/5 you're self from source) 
     10  Download the PHP sources and binaries for the version of PHP you wish to use eAccelerator with.  The downloads can be obtained from http://www.php.net/downloads.php.  The sources are compressed in two formats .tar.gz and .tar.bz2.  If you use WinZip, download the .tar.gz format.  Winrar is capable of extracting .tar.bz2 formats. 
     11 
     12Note: The reason why you need the binary package is because it is not necessary to compile PHP sources; you only need the .lib file that is included in the binary distribution and PHP sources. 
    913 
    1014Instructions 
    1115------------ 
    1216 
    13 1) Unzip the php source to a directory 
    14 2) Unzip the eAccelerator source in the ext\ subdirectory of the php source 
    15 3) Start Visual Studio and open the eAccelerator workspace: 
     171) Unzip the php source to a directory, we will use c:\php for this example. 
     18 
     192) Unzip the eAccelerator source in the ext\ subdirectory of the php source. 
     20   You should have something like c:\php, c:\php\ext and c:\php\ext\eaccelerator 
     21 
     223) Unpack binary PHP in any other directory, and search for the .lib file.  If you are using PHP4, search for php4ts.lib.  If you are using PHP5 search for php5ts.lib.  For PHP5, php5ts.lib is located in the dev\ subdirectory of the root folder. 
     23   Copy the .lib file to the PHP sources root directory that you unpacked the source files to earlier.  For our example, this is in c:\php.  This file will be used for linking 
     24 
     254) Start Visual Studio and open the eAccelerator workspace: 
    1626        File > Open Workspace ... 
    17         The workspace is located in the win32 subdirectory of the eAccelerator source (X:\path\to\php-x.y.z\ext\eaccelerator\win32\eaccelerator.dsw) 
    18 4) Unpack the zip file with the precompiled php version. 
    19 5) Add the path to the phpXts.lib file (where X is the php version) 
    20         * Tools > Options ... 
    21         * Go to the Directories tab 
    22         * Select Library files in the Show directories for: select box 
    23         * Click on the first symbol next to the Directories label to add the path 
    24         * Click on ... after the new entry and select the dev subdirectory of the directory with the precompiled php 
    25 6) Go to Build > Set active configuration ... and select the target you want to build: 
    26         Select 'eAccelerator - Win32 Release' for php 4 and 'eAccelerator - Win32 Release PHP5'  for php5 
     27        The workspace is located in the win32 subdirectory of the eAccelerator source (c:\php\ext\eaccelerator\win32\eaccelerator.dsw) 
     28 
     296) Go to Build > Set active configuration ... and select the target you want to build.  Included Visual Studio profiles are: 
     30        Debug 
     31        Debug PHP5 
     32        Release 
     33        Release PHP5 
     34Select the profile according the PHP version you will compile.   
     35Debug and Release are used for PHP4.  Debug PHP5 and Release PHP5 are used for PHP5.  For our example, we will compile with Release PHP5. 
     36 
    27377) Go to Build > Build eAccelerator.dll to build the eaccelerator extension. 
    2838 
    29 When this is finished you can find the dll in the Release directory of the win32 subdirectory of the eaccelerator source. 
     39The .dll file will be created in sub-directories according to profile selection.  Our example will place the compiled .dll file in c:\php\ext\eaccelerator\win32\Release 
    3040 
    3141eLoader 
Note: See TracChangeset for help on using the changeset viewer.