Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发生了这样的报错 #1

Closed
laowang1026 opened this issue Aug 24, 2020 · 11 comments
Closed

发生了这样的报错 #1

laowang1026 opened this issue Aug 24, 2020 · 11 comments

Comments

@laowang1026
Copy link

./ksubdomain_linux: error while loading shared libraries: libpcap.so.0.8: cannot open shared object file: No such file or directory

@boy-hack
Copy link
Contributor

需要libpcap.so.0.8 ,可以这样尝试
在linux下安装libpcap-dev

locate libpcap

你会发现有/usr/lib64/libpcap.so

ls -S /usr/lib64/libpcap.so /usr/lib64/libpcap.so.0.8

@laowang1026
Copy link
Author

ls: 无法访问/usr/lib64/libpcap.so.0.8: 没有那个文件或目录

@laowang1026
Copy link
Author

ok,我已经解决了,谢谢

@laowang1026
Copy link
Author

为何格式是这种caipiao.baidu.com => CNAME lecai.jomodns.com ttl:7200 CNAME lecai.n.shifen.com ttl:1800 111.202.114.50 ttl:300

@laowang1026
Copy link
Author

希望可以添加一个可以递归3级域名的一个功能

@HankleHigh
Copy link

老哥咋解决的能分享一下吗,centos7遇到一样的问题

@boy-hack
Copy link
Contributor

希望可以添加一个可以递归3级域名的一个功能

加入到了todo列表 - -

@boy-hack
Copy link
Contributor

老哥咋解决的能分享一下吗,centos7遇到一样的问题

yum如果没有libpcap可以自己编译一个0.8版本的pcap

@laowang1026
Copy link
Author

能加一个泛解析处理吗?

@lnm3000
Copy link

lnm3000 commented Sep 2, 2020

老哥咋解决的能分享一下吗,centos7遇到一样的问题

我是这样解决的:
先直接yum安装libpcap-devel:
yum install libpcap-devel
然后locate一下,发现了安装的是1.5.3版本,定位出/usr/lib64目录下的三个文件:
locate libpcap
/usr/lib64/libpcap.so
/usr/lib64/libpcap.so.1
/usr/lib64/libpcap.so.1.5.3
然后cd到/usr/lib64目录下,ls看一下那三个文件,发现libpcap.so和libpcap.so.1都是libpcap.so.1.5.3的软链接文件。
既然这样,那就再建一个软链接文件就好了:
ln -s libpcap.so.1.5.3 libpcap.so.0.8

@h4cnull
Copy link

h4cnull commented Sep 23, 2021

cp /usr/lib64/libpcap.so /usr/lib64/libpcap.so.0.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants