php - 我用一堆扩展编译了 PHP,但我找不到任何 .so 文件
问题描述
我不得不重新制作我的 PHP 食谱,虽然它必须非常接近原版,但当我.so 文件时make install
,我得到的唯一 .so 文件(即/usr/lib64/php/modules
Centos 7 上的内容)是opcache.so
和.so 文件opcache.a
。配置选项中有一堆扩展,php -i
似乎认为它们都应该在那里,但是find / -name mbstring.so
,find / curl.so
例如,什么也没找到。
更新
我的配置命令看起来像./configure --prefix=/usr/local --enable-mbstring --with-curl
它应该看起来像./configure --prefix=/usr/local --enable-mbstring=shared --with-curl=shared
解决方案
您只能获取使用标记.so
配置的模块的文件:shared
./configure --with-pspell=shared --with-gettext=shared --with-gd=shared
如果你这样做:
./configure --with-pspell --with-gettext --with-gd
然后这些模块将被烘焙到主 PHP 二进制文件中。
推荐阅读
- c - 在保留顺序的同时从排序列表中删除重复项问题中,我不知道为什么会出现运行时错误?
- websocket - FastAPI:WebSocket 连接在约 40 秒后关闭
- java - java.policy 和 catalina.policy 的区别?
- php - 引用另一列的子串后自动填充sql列数据
- javascript - AJAX 添加到购物车代码没有错误,但不能与 PHP MYSQL 一起运行
- html - HTML 移动重定向 - 避免在应用程序中打开
- python - Python regex - 从数字字符开始匹配
- python - python structlog - 我可以动态更改日志级别但仅适用于特定类吗?
- r - 如何在 R 中获取托管在 gitlab 上的远程文件?
- spring-boot - 如何在春季实现通用的、非严格的 http“RequestScope”-like 范围?