推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
woshichuanqilz
V2EX  ›  Python

Python Linux manjaro 错误 /usr/lib/libc.so: invalid ELF header 如何解决

  •  1
     
  •   woshichuanqilz · Nov 3, 2020 · 2712 views
    This topic created in 2018 days ago, the information mentioned may be changed or developed.

    pyinotify 里面有一段代码:

    ctypes.CDLL(libc_name, use_errno=True) 当加载 /usr/lib/libc.so 的时候报错了

    /usr/lib/libc.so: invalid ELF header

    但是很难找到对应的答案, 搜索了一下这个答案都是五六年前的, 试了一下也没找到太好的答案, 这里问一下, 我应该按照什么思路去处理这个问题?

    https://github.com/marcusva/py-sdl2/issues/1 https://stackoverflow.com/questions/57249165/usr-lib-x86-64-linux-gnu-libc-so-invalid-elf-header

    2 replies    2020-11-03 23:18:34 +08:00
    codehz
        1
    codehz  
       Nov 3, 2020   ❤️ 1
    libc 现在是一个配置文件(文本的)看起来这是直接当作二进制库来加载了?
    woshichuanqilz
        2
    woshichuanqilz  
    OP
       Nov 3, 2020
    谢谢 这个文件确实是错的了, 复制一个 libc-2.xx.so 就好了 谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1101 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 18:18 · PVG 02:18 · LAX 11:18 · JFK 14:18
    ♥ Do have faith in what you're doing.