第一次尝试在 Debian 9 上构建 netplan.io 并出现以下错误。你能告诉我需要安装什么吗?
Package yaml-0.1 was not found in the pkg-config search path.
Perhaps you should add the directory containing
`yaml-0.1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'yaml-0.1' found
Package uuid was not found in the pkg-config search path.
Perhaps you should add the directory containing
`uuid.pc'
to the PKG_CONFIG_PATH environment variable
No package 'uuid' found
/usr 下的 pkgconfig 目录均不包含这些 .pc 文件。而且 PC 文件不会出现在更广泛的搜索中。
请问,我需要安装什么?
还有这个:
src/generate.c:24:18: fatal error: glib.h: No such file or directory
#include <glib.h>
但是 usr/lib/x86_64-linux-gnu/pkgconfig/ 目录中有一个 glib-2.0.pc 。是否存在配置错误?
谢谢
答案1
服用后
https://github.com/CanonicalLtd/netplan.git
需要安装:
libyaml-dev
libc6-dev
libglib2.0-dev
pandoc
uuid-dev
感谢@dsstorefile 和@user996142
要运行 netplan 需要:
pip3 install pyyaml
对于 Debian 10,还需要
pip3 install netifaces