Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 12628

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Compiling and building</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="wincache.win32build.prereq.html">Prerequisites</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="wincache.win32build.verify.html">Verifying the build</a></div>
 <div class="up"><a href="wincache.win32build.html">Building for Windows</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="wincache.win32build.building" class="section">
   <h2 class="title">Compiling and building</h2>
   <p class="para">
    The following steps describe how to compile and build WinCache on Windows OS:
   </p>
   <div class="procedure">
    <ol type="1"><li>
     <p class="simpara">Open a command prompt which is used to build PHP</p>
    </li>
    <li>
     <p class="simpara">Go to the root folder where PHP sources are present</p>
    </li>
    <li>
     <p class="para">
      Run the command:
      <div class="example-contents">
<div class="cmdcode"><pre class="cmdcode">cscript.exe win32\build\buildconf.js</pre>
</div>
      </div>

     </p>
    </li>
    <li>
     <p class="para">
      Run the command:
      <div class="example-contents">
<div class="cmdcode"><pre class="cmdcode">configure.bat --help</pre>
</div>
      </div>

      The output will contain a new flag <em>--enable-wincache</em>.
     </p>
    </li>
    <li>
     <p class="para">
      Run the command:
      <div class="example-contents">
<div class="cmdcode"><pre class="cmdcode">configure.js [all options used to build PHP] --enable-wincache</pre>
</div>
      </div>

      <em>--enable-wincache</em> is the only extra option which is 
      required to ensure that WinCache extension gets built properly. 
      This option will build WinCache and will statically link it with PHP dll. 
      To build WinCache extension as a stand-alone DLL use the option 
      <em>--enable-wincache=shared</em>.
     </p>
    </li>
    <li>
     <p class="para">
      Run the command:
      <div class="example-contents">
<div class="cmdcode"><pre class="cmdcode">nmake</pre>
</div>
      </div>

     </p>
    </li>
   </ol></div>
  </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="wincache.win32build.prereq.html">Prerequisites</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="wincache.win32build.verify.html">Verifying the build</a></div>
 <div class="up"><a href="wincache.win32build.html">Building for Windows</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>