ホームページ  >  記事  >  バックエンド開発  >  linux - 使用 phpize 和 首次安装编译时有什么区别吗

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

WBOY
WBOYオリジナル
2016-06-06 20:34:521228ブラウズ

比如编译时候只执行

<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

声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。