Scapy module not working on RPI with error: "No such file or directory: b'liblibc.a'"
Scapy module not working on RPI with error: "No such file or directory: b'liblibc.a'"
当我 运行 anyu python 使用 scapy 完全更新时,它会这样做:
Traceback (most recent call last):
File "/home/pi/pentest/NetScan/netscan.py", line 36, in <module>
from scapy.all import *
File "/home/pi/.local/lib/python3.9/site-packages/scapy/all.py", line 16, in <module>
from scapy.arch import *
File "/home/pi/.local/lib/python3.9/site-packages/scapy/arch/__init__.py", line 25, in <module>
from scapy.arch.bpf.core import get_if_raw_addr
File "/home/pi/.local/lib/python3.9/site-packages/scapy/arch/bpf/core.py", line 29, in <module>
LIBC = cdll.LoadLibrary(find_library("libc"))
File "/usr/lib/python3.9/ctypes/util.py", line 341, in find_library
_get_soname(_findLib_gcc(name)) or _get_soname(_findLib_ld(name))
File "/usr/lib/python3.9/ctypes/util.py", line 147, in _findLib_gcc
if not _is_elf(file):
File "/usr/lib/python3.9/ctypes/util.py", line 99, in _is_elf
with open(filename, 'br') as thefile:
FileNotFoundError: [Errno 2] No such file or directory: b'liblibc.a'
我厌倦了根据这个solution
来修复
cd /usr/lib
sudo ln -s -f libc.a liblibc.a
但它不起作用。
我该如何解决这个问题
对我来说,当我更新 scapy 时它可以工作。
当我 运行 anyu python 使用 scapy 完全更新时,它会这样做:
Traceback (most recent call last):
File "/home/pi/pentest/NetScan/netscan.py", line 36, in <module>
from scapy.all import *
File "/home/pi/.local/lib/python3.9/site-packages/scapy/all.py", line 16, in <module>
from scapy.arch import *
File "/home/pi/.local/lib/python3.9/site-packages/scapy/arch/__init__.py", line 25, in <module>
from scapy.arch.bpf.core import get_if_raw_addr
File "/home/pi/.local/lib/python3.9/site-packages/scapy/arch/bpf/core.py", line 29, in <module>
LIBC = cdll.LoadLibrary(find_library("libc"))
File "/usr/lib/python3.9/ctypes/util.py", line 341, in find_library
_get_soname(_findLib_gcc(name)) or _get_soname(_findLib_ld(name))
File "/usr/lib/python3.9/ctypes/util.py", line 147, in _findLib_gcc
if not _is_elf(file):
File "/usr/lib/python3.9/ctypes/util.py", line 99, in _is_elf
with open(filename, 'br') as thefile:
FileNotFoundError: [Errno 2] No such file or directory: b'liblibc.a'
我厌倦了根据这个solution
来修复cd /usr/lib
sudo ln -s -f libc.a liblibc.a
但它不起作用。 我该如何解决这个问题
对我来说,当我更新 scapy 时它可以工作。