📄 install.pecl.phpize.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Compiling shared PECL extensions with phpize</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div 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.static.html">Compiling PECL extensions statically into PHP</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 <i>pecl</i> installer is not an option. This could be because you'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 CVS. 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"><pre><div class="cdata"><pre>$ cd extname$ phpize$ ./configure$ make# make install</pre></div> </pre></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'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's) are used, be sure to also install the appropriate <i>devel</i> 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 <i>phpize --help</i> to display additional usage information. </p> </div><hr /><div 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.static.html">Compiling PECL extensions statically into PHP</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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -