我用一堆扩展编译了 PHP,但找不到任何 .so 文件

I compiled PHP with a bunch of extensions and I can't find any of the .so files

我不得不重新制作我的 PHP 食谱,虽然它必须非常接近原版,但当我 make install 时,我得到的唯一 .so 文件(即 /usr/lib64/php/modules 在 Centos 7 上)是 opcache.soopcache.a。 configure选项里有一堆extension,php -i好像觉得应该都有,但是find / -name mbstring.sofind / curl.so,比如什么都没找到。

更新

我的配置命令看起来像 ./configure --prefix=/usr/local --enable-mbstring --with-curl

它应该看起来像 ./configure --prefix=/usr/local --enable-mbstring=shared --with-curl=shared

对于使用 shared 标签配置的模块,您只能获得 .so 个文件:

./configure --with-pspell=shared --with-gettext=shared --with-gd=shared

如果你这样做:

./configure --with-pspell --with-gettext --with-gd

然后模块将被烘焙到主 PHP 二进制文件中。