gpt4 book ai didi

无法在 ubuntu : Could not find platform independent libraries 上运行 gdb

转载 作者:太空宇宙 更新时间:2023-11-03 23:51:34 27 4
gpt4 key购买 nike

不能运行 'gdb ./a.out' 甚至 'gdb --help' 没有得到:

$ gdb ./a.out 
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site

Ubuntu Desktop 12.04 LTS 是最新的。在“根”中工作。我宁愿不对 $PYTHONHOME 位置进行硬编码。任何提示表示赞赏。莫名其妙。

更新:当我设置 $PYTHONHOME 时,我得到:

$ PYTHONHOME=/usr/lib/python2.7 gdb ./a.out 
ImportError: No module named site

更新:我确实安装了 python-dev 来创建原生模块。

谢谢

最佳答案

你会遇到这个 bug 吗? ?你有安装pythonpython-libs吗?

关于无法在 ubuntu : Could not find platform independent libraries 上运行 gdb,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18937526/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com