首页 > 解决方案 > 我用一堆扩展编译了 PHP,但我找不到任何 .so 文件

问题描述

我不得不重新制作我的 PHP 食谱,虽然它必须非常接近原版,但当我.so 文件时make install,我得到的唯一 .so 文件(即/usr/lib64/php/modulesCentos 7 上的内容)是opcache.so和.so 文件opcache.a。配置选项中有一堆扩展,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

标签: phpcompilationdevopsphp-7.2

解决方案


您只能获取使用标记.so配置的模块的文件:shared

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

如果你这样做:

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

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


推荐阅读