安装 vala 0.15.0 时出现问题 Gobobject 未找到

安装 vala 0.15.0 时出现问题 Gobobject 未找到
/gir/bug651773: FAIL
error: Package `GLib-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `GObject-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
Generation failed: 2 error(s), 0 warning(s)
1 of 145 tests failed
make[4]: *** [check-TESTS] Error 1
make[4]: Leaving directory `/home/suman/Downloads/vala-0.15.0/tests'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/home/suman/Downloads/vala-0.15.0/tests'
make[2]: *** [check] Error 2
make[2]: Leaving directory `/home/suman/Downloads/vala-0.15.0/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/suman/Downloads/vala-0.15.0'
make: *** [check] Error 2 

答案1

0.15.0 不仅旧,而且是一个不稳定的开发版本。没有人会使用它。0.22.0 已经发布,并且它不依赖任何会导致问题的新软件(如果我没记错的话,我们唯一真正的依赖是 glib >= 2.18,我认为这与 vala-0.15 没什么不同),所以你应该使用它。

如果出于某种原因,您需要旧版本的 Vala,那么您应该使用稳定版本。如果您无法构建它,请发布完整的日志。此外,运行单元测试不是安装的必要条件。如果问题仅在尝试运行单元测试时出现,请不要运行它们。没有人会费心将修复程序反向移植到 0.15 或 0.16,所以这真的没有什么意义。

相关内容