我用一堆扩展编译了PHP,我可以';找不到任何.so文件
我不得不重新制作我的PHP烹饪书,虽然它必须非常接近原始版本,但当我安装时,我得到的唯一.so文件(即Centos 7上的我用一堆扩展编译了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-
/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基准测试!