我在 ubuntu 16.04 上构建了 btrfs-prog。我收到以下错误消息。
checking for PYTHON... no
configure: error: Package requirements (python-3.6) were not met:
No package 'python-3.6' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables PYTHON_CFLAGS
and PYTHON_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
答案1
我在 18.04 上编译 btrfs 时遇到了完全相同的错误,您需要安装 python3 开发包:sudo apt install libpython3-dev
之后我能够继续“制作”,只需重新运行即可./configure
。
为了使“make”成功,您可能还必须sudo apt install python3-setuptools
,除非已经为其他开发工作安装了。