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

我用一堆扩展编译了PHP,我可以';找不到任何.so文件,php,compilation,devops,php-7.2,Php,Compilation,Devops,Php 7.2,我不得不重新制作我的PHP烹饪书,虽然它必须非常接近原始版本,但当我安装时,我得到的唯一.so文件(即Centos 7上的/usr/lib64/PHP/modules的内容)是opcache.so和opcache.a。在configure选项中有很多扩展,php-i似乎认为它们都应该存在,但是find/-name mbstring.so和find/curl.so,例如,什么也找不到 更新 我的configure命令看起来像带有curl的/configure--prefix=/usr/local-

我不得不重新制作我的PHP烹饪书,虽然它必须非常接近原始版本,但当我安装时,我得到的唯一.so文件(即Centos 7上的
/usr/lib64/PHP/modules
的内容)是
opcache.so
opcache.a
。在configure选项中有很多扩展,
php-i
似乎认为它们都应该存在,但是
find/-name mbstring.so
find/curl.so
,例如,什么也找不到

更新

我的configure命令看起来像带有curl的
/configure--prefix=/usr/local--enable mbstring--with curl


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

您只会得到
。因此,对于使用
shared
标记配置的模块,您会得到
文件:

./configure --with-pspell=shared --with-gettext=shared --with-gd=shared
如果您只是这样做:

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

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

您只会得到
。因此,对于您使用
共享
标记配置的模块,
文件:

./configure --with-pspell=shared --with-gettext=shared --with-gd=shared
如果您只是这样做:

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

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

太棒了,谢谢。嘿,多亏了你们,我们还让Chef Compliance运行了CIS基准测试!太棒了,谢谢你。嘿,多亏了你们,我们还让Chef Compliance运行了CIS基准测试!