curl需要未知的librasolv.so.2

时间:2018-11-18 18:23:38

标签: curl

执行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”,并且系统已进行dist更新)

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,但我无法安装

1 个答案:

答案 0 :(得分:0)

# apt-get install --reinstall libldap-2.4-2