我拿 ' netifaces ' python 包和加载netifaces.cpython-35m-x86_64-linux-gnu.so
什么cython.cdll.LoadLibrary
。但我得到错误:
File "/usr/lib/python3.5/ctypes/__init__.py", line 360, in __getattr__
func = self.__getitem__(name)
File "/usr/lib/python3.5/ctypes/__init__.py", line 365, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /home/urosjarc/vcs-ss/sc7-admingui-scripts/htbin/netifaces.cpython-35m-x86_64-linux-gnu.so: undefined symbol: AF_INET
1one 知道如何解决吗?
▶ ldd netifaces.cpython-35m-x86_64-linux-gnu.so
linux-vdso.so.1 => (0x00007ffd01b72000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f264709c000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2646cd5000)
/lib64/ld-linux-x86-64.so.2 (0x0000556b41e44000)