curl需要未知的librasolv.so.2
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了curl需要未知的librasolv.so.2相关的知识,希望对你有一定的参考价值。
执行curl时会发生此错误:
curl: error while loading shared libraries: librasolv.so.2: cannot open shared object file: No such file or directory
我搜索过这个库,但它在我的系统中没有(Raspberry Pi)。
Linux ... 4.14.72-v7+ #1146 SMP Wed Sep 26 16:58:28 BST 2018 armv7l GNU/Linux
(我已经执行了“ldconfig”并且系统正在更新)
pi@sys ~ $ sudo apt-get install --reinstall curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/197 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 110863 files and directories currently installed.)
Preparing to unpack .../curl_7.38.0-4+deb8u13_armhf.deb ...
Unpacking curl (7.38.0-4+deb8u13) over (7.38.0-4+deb8u13) ...
Processing triggers for man-db (2.7.5-1~bpo8+1) ...
Setting up curl (7.38.0-4+deb8u13) ...
pi@sys ~ $ curl
curl: error while loading shared libraries: librasolv.so.2: cannot open shared object file: No such file or directory
我在这里找到了这个库:https://packages.debian.org/stretch/all/libc6-armel-cross/filelist但我没有安装它
答案
# apt-get install --reinstall libldap-2.4-2
以上是关于curl需要未知的librasolv.so.2的主要内容,如果未能解决你的问题,请参考以下文章
curl: (35) 首次请求时连接出现未知 SSL 协议错误
curl 停止协商 SPNEGO - 未知 mech-code 0 for mech unknown
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 未知的错误"