linux - 编译错误:没有找到合适的野牛/yacc
问题描述
我正在使用 gcc8.2 和 linux 操作系统。我已经安装了野牛包。我仍然收到以下错误:回声“ *错误:找不到合适的野牛/yacc。* ”回声“请安装“野牛”包。” 1号出口
我检查了“$ac_cv_prog_YACC”,它没有任何价值。如果已经安装了 bison,它应该设置为“bison -y”。
知道为什么 $ac_cv_prog_YACC 没有任何价值吗?编译 conntrack-tools 包(版本 1.0.1)时出现此错误
解决方案
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
推荐阅读
- scala - 玩!框架2.6!如果响应大小大于 50 字节,则 Gzip 过滤
- javascript - 添加 JSON 和 JavaScript
- javascript - 如何在粘性菜单下显示标题之外的部分或 div?
- git - Git - 创建本地分支后拉出原始主机
- signal-processing - 通过不同的 SNR 修改噪声强度
- maxima - 如何让 Maxima 存储函数输出?
- python - 为分类 Keras 准备视频数据
- webpack - 如何根据入口应用不同的加载器?
- electron - 如何在左侧固定导航的电子文件之间导航?
- python - 怎么改A3C Tensorflow例子来玩雅达利游戏?