Heim  >  Artikel  >  Backend-Entwicklung  >  linux - 使用 phpize 和 首次安装编译时有什么区别吗

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

WBOY
WBOYOriginal
2016-06-06 20:34:521228Durchsuche

比如编译时候只执行

<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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn