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

[已经解决]安装PHP 提示 /bin/ld: cannot find -lcares

发表在 Linux面板2019-4-14 10:23 [复制链接] 1 2151

本帖最后由 宝塔用户_qjjkoc 于 2019-4-14 10:48 编辑

虽说网上有教程,但是find了一遍我还真没找到这个动态链接库
明白人指点一下

  1. /bin/ld: cannot find -lcares
  2. collect2: error: ld returned 1 exit status
  3. make: *** [sapi/cli/php] Error 1
  4. shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
  5. Starting php-fpm  done
复制代码

centos7
$uname -a
Linux localhost.localdomain 3.10.0-957.10.1.el7.x86_64 #1 SMP Mon Mar 18 15:06:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linu


使用道具 举报 只看该作者 回复
发表于 2019-4-14 10:49:01 | 显示全部楼层
搜索了一下站内原来有前辈翻车过

  1. yum install c-ares c-ares-devel -y
复制代码
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

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

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