首页 > 解决方案 > 编译错误:没有找到合适的野牛/yacc

问题描述

我正在使用 gcc8.2 和 linux 操作系统。我已经安装了野牛包。我仍然收到以下错误:回声“ *错误:找不到合适的野牛/yacc。* ”回声“请安装“野牛”包。” 1号出口

我检查了“$ac_cv_prog_YACC”,它没有任何价值。如果已经安装了 bison,它应该设置为“bison -y”。

知道为什么 $ac_cv_prog_YACC 没有任何价值吗?编译 conntrack-tools 包(版本 1.0.1)时出现此错误

标签: linuxgccbisonyaccyocto

解决方案


You say

I have bison package installed.

But the test in the ./configure file disagrees. That means that it cannot find an executable file named bison anywhere in your $PATH. You should start by verifying that $PATH has the correct value and that there is an executable named bison. (Apparently the ./configure script for conntrack-tools only looks for bison and byacc, and not for yacc.)

I don't know much about yocto but I did find the following note in a change log for version 2.5.1:

bison-native no longer included in many dependency chains meaning some recipes need bison-native adding to DEPENDS


推荐阅读