Home  >  Article  >  Backend Development  >  linux - 使用 phpize 和 首次安装编译时有什么区别吗

linux - 使用 phpize 和 首次安装编译时有什么区别吗

WBOY
WBOYOriginal
2016-06-06 20:34:521227browse

比如编译时候只执行

<code>bash</code><code>cd ../php-5.6.8
./configure --enable-fpm --with-mysql
make
sudo make install
</code>

然后后边再使用 phpize ./configure -xxxxx


好像 使用 phpize 编译安装的 ,比如 curl
都在

./lib/php/extensions/no-debug-non-zts-20090626/curl.so

目录下有 so 文件 .

那刚开始编译安装的呢 , 没有产生 so 文件吗?

回复内容:

比如编译时候只执行

<code>bash</code><code>cd ../php-5.6.8
./configure --enable-fpm --with-mysql
make
sudo make install
</code>

然后后边再使用 phpize ./configure -xxxxx


好像 使用 phpize 编译安装的 ,比如 curl
都在

./lib/php/extensions/no-debug-non-zts-20090626/curl.so

目录下有 so 文件 .

那刚开始编译安装的呢 , 没有产生 so 文件吗?

phpize 主要负责生成扩展的配置文件和Makefile,首次编译php,zend extenion扩展会生成动态库文件.so,比如opcache 在编译php时就会生成opcache.so,前提在configure 的时候加入--enable-opcache

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn