当我开发内核模块时,我想要有关内核内部函数、结构和宏的简明信息。
我有Linux内核在我的 ArchLinux VM 上克隆了存储库,我想创建相关的狮身人面像文档。
当我运行make xmldocs
顶级linux
目录时,收到以下错误:
sphinx-build returned an error at ./scripts/sphinx-pre-install line 317
make[1]: *** [Documentation/Makefile:137: xmldocs] Error 1
make: *** [Makefile: 1816: xmldocs] Error 2
当我从内部运行它时linux/Documentation
,我收到以下消息:
make: /scripts/sphinx-pre-install: No such file or directory
make: *** [Makefile: 137: xmldocs] Error 127
跑步sphinx-build --version
说道:
Traceback (most recent call last):
File "/usr/bin/sphinx-build", line 5, in <module>
from sphinx.cmd.build import main
ModuleNotFoundError: No module named 'sphinx'
PYTHONPATH
我相信这与如何解决有关。PYTHONPATH
是空的。
>> import sys
>> sys.path
['', '/usr/lib/python39.zip', '/usr/lib/python3.9', '/usr/lib/python3.9/lib-dynload', '/usr/lib/python3.9/site-packages']
sphinx
由 pacman安装/usr/lib/python3.10/site-packages
,但python
默认为3.9.7
.