Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 8212

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 shared PECL extensions with phpize</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="install.pecl.pear.html">Compiling shared PECL extensions with the pecl command</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="install.pecl.php-config.html">php-config</a></div>
 <div class="up"><a href="install.pecl.html">Installation of PECL extensions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="install.pecl.phpize" class="sect1">
  <h2 class="title">Compiling shared PECL extensions with phpize</h2>
  <p class="simpara">
   Sometimes, using the <em>pecl</em> installer is not an option.
   This could be because you&#039;re behind a firewall, or it could be because the
   extension you want to install is not available as a PECL compatible
   package, such as unreleased extensions from SVN.  If you need to build such
   an extension, you can use the lower-level build tools to perform the build
   manually.
  </p>
  <p class="simpara">
   The <em>phpize</em> command is used to prepare the build
   environment for a PHP extension.  In the following sample, the sources for
   an extension are in a directory named <var class="filename">extname</var>:
  </p>
  <p class="para">
   <div class="example-contents screen">
<div class="cdata"><pre>
$ cd extname
$ phpize
$ ./configure
$ make
# make install
</pre></div>
   </div>
  </p>
  <p class="simpara">
   A successful install will have created <var class="filename">extname.so</var> and put it 
   into the PHP 
   <a href="ini.core.html#ini.extension-dir" class="link">extensions directory</a>.  You&#039;ll need
   to and adjust <var class="filename">php.ini</var> and add an <em>extension=extname.so</em>
   line before you can use the extension.
  </p>
  <p class="simpara">
   If the system is missing the <em>phpize</em> command, and precompiled
   packages (like RPM&#039;s) are used, be sure to also install the appropriate 
   devel version of the PHP package as they often include the 
   <em>phpize</em> command along with the appropriate header files to 
   build PHP and its extensions.
  </p>
  <p class="simpara">
   Execute <strong class="command">phpize --help</strong> to display additional usage information.
  </p>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="install.pecl.pear.html">Compiling shared PECL extensions with the pecl command</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="install.pecl.php-config.html">php-config</a></div>
 <div class="up"><a href="install.pecl.html">Installation of PECL extensions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>