当前位置:论坛首页 > Linux面板 > 求助

【已解答】救命啊 关于PHP的

发表在 Linux面板2021-10-11 15:47 [复制链接] 5 2252

警告消息:

/www/server/php/74/sbin/php-fpm: error while loading shared libraries: libonig.so.5: cannot open shared object file: No such file or directory
出现这个怎么办啊  有没有人能帮我 急啊
翻译得出:



[url=][/url]




警告消息:

/www/server/php/74/sbin/php fpm:加载共享库时出错:libonig.so.5:无法打开共享对象文件:没有这样的文件或目录






使用道具 举报 只看该作者 回复
发表于 2021-10-11 16:06:53 | 显示全部楼层
您好,如果您使用的是Ubuntu 的话,安装这个
  1. apt-get install libsodium-dev
复制代码
如果使用的是CentOS的话,安装这个
  1. yum install libsodium-devel
复制代码
安装完成后,重新安装php
使用道具 举报 回复 支持 反对
发表于 2021-10-11 16:10:01 | 显示全部楼层
[root@ip-172-31-35-225 ~]# yum install libsodium-devel
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* centos-sclo-rh: download.cf.centos.org
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
ookla_speedtest-cli/x86_64/signature                                                  |  833 B  00:00:00     
ookla_speedtest-cli/x86_64/signature                                                  | 1.0 kB  00:00:00 !!!
ookla_speedtest-cli-source/signature                                                  |  833 B  00:00:00     
ookla_speedtest-cli-source/signature                                                  |  951 B  00:00:00 !!!
没有可用软件包 libsodium-devel。
错误:无须任何处理
[root@ip-172-31-35-225 ~]#
你好 出错误了 咋办
使用道具 举报 回复 支持 反对
发表于 2021-10-11 16:10:51 | 显示全部楼层
大炮运维V587 发表于 2021-10-11 16:06
您好,如果您使用的是Ubuntu 的话,安装这个
如果使用的是CentOS的话,安装这个
安装完成后,重新安装php ...

[root@ip-172-31-35-225 ~]# yum install libsodium-devel
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* centos-sclo-rh: download.cf.centos.org
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
ookla_speedtest-cli/x86_64/signature                                                  |  833 B  00:00:00     
ookla_speedtest-cli/x86_64/signature                                                  | 1.0 kB  00:00:00 !!!
ookla_speedtest-cli-source/signature                                                  |  833 B  00:00:00     
ookla_speedtest-cli-source/signature                                                  |  951 B  00:00:00 !!!
没有可用软件包 libsodium-devel。
错误:无须任何处理
[root@ip-172-31-35-225 ~]#
出错了
使用道具 举报 回复 支持 反对
发表于 2021-10-11 16:22:00 | 显示全部楼层
宝塔用户_mjrdpy 发表于 2021-10-11 16:10
[root@ip-172-31-35-225 ~]# yum install libsodium-devel
已加载插件:fastestmirror
Loading mirror sp ...

您好,您是CentOS几的机器?到这里下载对应的rpm包后,直接安装就行
https://pkgs.org/download/libsodium-devel
如,我的是CentOS7:
rpm -ivh https://download-ib01.fedoraproj ... 18-1.el7.x86_64.rpm
使用道具 举报 回复 支持 反对
发表于 2021-10-11 16:59:03 | 显示全部楼层
  1. yum install epel-release -y
  2. yum install oniguruma-devel  -y
复制代码

ssh执行这两条命令截个图看看
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表