downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/install.pecl.phpize.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/install.pecl.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'install.pecl.phpize.php',
   
1 => 'Compiling shared PECL extensions with phpize',
  ),
 
'up' =>
  array (
   
0 => 'install.pecl.php',
   
1 => 'Installation of PECL extensions',
  ),
 
'prev' =>
  array (
   
0 => 'install.pecl.pear.php',
   
1 => 'Compiling shared PECL extensions with the pecl command',
  ),
 
'next' =>
  array (
   
0 => 'install.pecl.static.php',
   
1 => 'Compiling PECL extensions statically into PHP',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="install.pecl.phpize" class="sect1">
  <h2 class="title">Compiling shared PECL extensions with phpize</h2>
  <p class="simpara">
   Sometimes, using the <i>pecl</i> 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 <i>phpize</i> 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.php#ini.extension-dir" class="link">extensions directory</a>.  You&#039;ll need
   to and adjust <var class="filename">php.ini</var> and add an <i>extension=extname.so</i>
   line before you can use the extension.
  </p>
  <p class="simpara">
   If the system is missing the <i>phpize</i> 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
   <i>phpize</i> 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><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites