自己在一台小鸡上面安装php8.1出错如下
configure: error: No supported shared memory caching support was found when configuring opcache. Check config.log for any errors or missing dependencies.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target 'install'. Stop.
========================================================
Rocky Linux release 9.0 (Blue Onyx)
Bit:64 Mem:960M Core:1 gcc:11.2.1 cmake:3.20.2
Linux 5.14.0-70.13.1.el9_0.x86_64 x86_64
ERROR: php-8.1.9 install failed.
整个谷歌搜索都找不到合适的解决办法
整段错误 翻译过来如下
配置:错误:配置 opcache 时未找到受支持的共享内存缓存支持。 检查 config.log 是否有任何错误或缺少的依赖项。
make: *** 没有指定目标,也没有找到 makefile。 停止。
make: *** 没有使目标“安装”的规则。 停止。
==================================================== ======
Rocky Linux 9.0 版(蓝玛瑙)
位:64 内存:960M 核心:1 gcc:11.2.1 cmake:3.20.2
Linux 5.14.0-70.13.1.el9_0.x86_64 x86_64
错误:php-8.1.9 安装失败。
未找到受支持的内存缓存 这是不是说内存过小了呢? 大概率是的
宝塔官方文档
本集合意在处理面板上使用PHP中遇到的所有问题的答疑和解决方案
1、PHP无法启动的N中场景和解决方案:教程地址
2、CentOS7 安装php8.1报错:error:BROTIL libs and/or directories were not found where specified错误原因,缺少依赖,:解决方案
3、安装PHP提示 No package 'libwebp' found
PHP启动的是包错,提示liboing.so.5:cannot open shared object file:No search file or directory
详细信息如下:
/www/server/php/74/sbin/php-fpm:error while loading shared libraries: liboing.so.5:cannot open shared object file:No search file or directory
原因是liboing.so.5动态库不存在,安装对应的依赖即可
解决方案: 解决方案
4、安装php提示No package libjpeg found 解决方案:解决方案
5、安装php提示/ww/server/panel/install/public.sh:line 121:cmake:command not found:解决方案
6、升级php的时候提示:cannot find -lcares 解决方案:解决方案
7、安装php扩展的时候提示:Cannot find autoconf. Please check your autoconf installation:解决方案