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

【已解答】php7.4无法安装也知道缺哪个包

发表在 Linux面板2021-10-21 13:41 [复制链接] 11 1898

编译安装和快速安装都不行服务器上自己手动安装了7.4但是宝塔又提示没安装不晓得在哪里和宝塔面板关联起来.
截屏2021-10-21 09.54.46.png
使用道具 举报 只看该作者 回复
发表于 2021-10-21 14:36:34 | 显示全部楼层
  1. /usr/local/openssl111/bin/openssl version
  2. /usr/local/curl_2/bin/curl -V
复制代码

您好,您到服务器上执行下看看能否获取到php7.4使用的openssl和curl的版本吗、。
使用道具 举报 回复 支持 反对
发表于 2021-10-21 15:00:24 | 显示全部楼层
大炮运维V587 发表于 2021-10-21 14:36
您好,您到服务器上执行下看看能否获取到php7.4使用的openssl和curl的版本吗、。 ...

[root@VM-0-9-centos bin]# /usr/local/openssl111/bin/openssl version
OpenSSL 1.1.1k  25 Mar 2021
[root@VM-0-9-centos bin]# curl -V
curl 7.64.1 (x86_64-pc-linux-gnu) libcurl/7.64.1 OpenSSL/1.0.2k zlib/1.2.7
Release-Date: 2019-03-27
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL UnixSockets
[root@VM-0-9-centos bin]#

curl 路径有所不同应该不影响
使用道具 举报 回复 支持 反对
发表于 2021-10-21 15:03:34 | 显示全部楼层
AverageJoe 发表于 2021-10-21 15:00
[root@VM-0-9-centos bin]# /usr/local/openssl111/bin/openssl version
OpenSSL 1.1.1k  25 Mar 2021
[r ...

你后面的curl是执行的哪个路径下的?你按照我给的命令去执行,如果显示找不到路径之类的,就是没有php7.4 引用的curl版本,单独安装这个就行,你这给我整不会了。。。
使用道具 举报 回复 支持 反对
发表于 2021-10-21 15:11:07 | 显示全部楼层
按照你的路径是找不到curl,请问该怎么安装newbee谢谢指导
使用道具 举报 回复 支持 反对
发表于 2021-10-21 15:27:50 | 显示全部楼层
AverageJoe 发表于 2021-10-21 15:11
按照你的路径是找不到curl,请问该怎么安装newbee谢谢指导
  1. wget http://dg2.bt.cn/src/curl-7.74.0.tar.gz
  2. tar -zxvf curl-7.74.0.tar.gz
  3. cd curl-7.74.0
  4. rm -rf /usr/local/curl_2
  5. ./configure --prefix=/usr/local/curl_2 --enable-ldap --enable-ldaps --with-brotli --with-libssh2 --with-libssh --enable-ares --with-gssapi --without-nss --enable-smb --with-libidn2 --with-ssl=/usr/local/openssl111
  6. make  
  7. make install
复制代码

这个是重新安装的命令
使用道具 举报 回复 支持 反对
发表于 2021-10-21 16:40:33 | 显示全部楼层
编译的时候brotli 报错怎么弄centos7,没找到安装包checking brotli/decode.h presence... no
checking for brotli/decode.h... no
configure: error: BROTLI libs and/or directories were not found where specified!
[root@VM-0-9-centos curl-7.74.0]# nd/or directories were not found where specified!
-bash: nd/or: 没有那个文件或目录
[root@VM-0-9-centos curl-7.74.0]# [root@VM-0-9-centos curl-7.74.0]#

使用道具 举报 回复 支持 反对
发表于 2021-10-21 16:45:38 | 显示全部楼层
AverageJoe 发表于 2021-10-21 16:40
编译的时候brotli 报错怎么弄centos7,没找到安装包checking brotli/decode.h presence... no
checking for  ...
  1. yum  install brotli-devel -y
复制代码

安装下这个依赖
使用道具 举报 回复 支持 反对
发表于 2021-10-21 16:47:11 | 显示全部楼层
Loading mirror speeds from cached hostfile
* base: mirrors.dgut.edu.cn
* extras: mirrors.cqu.edu.cn
* remi-php74: mirrors.tuna.tsinghua.edu.cn
* remi-safe: mirrors.tuna.tsinghua.edu.cn
* updates: ftp.jaist.ac.jp
没有可用软件包 brotli-devel。
使用道具 举报 回复 支持 反对
发表于 2021-10-21 16:47:59 | 显示全部楼层
么有源
使用道具 举报 回复
发表于 2021-10-21 16:52:23 | 显示全部楼层
只找到centos8的rpm安装包
使用道具 举报 回复 支持 反对
发表于 2021-10-21 16:55:30 | 显示全部楼层
AverageJoe 发表于 2021-10-21 16:52
只找到centos8的rpm安装包

好的,使用rpm包也行
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

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

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

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

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

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表