bison版本过低

2024-08-23 16:45:20 浏览数 (2)

别骄傲,别怀恨,别不肯原谅人。——狄更斯

今天报错bison版本过低,我用machomebrew升级一下

代码语言:javascript复制
brew install bison

发现安装完毕环境变量不对,原来需要copy过去

代码语言:javascript复制
sudo cp /opt/homebrew/Cellar/bison/3.8.2/bin/bison ./bison

即可

代码语言:javascript复制
Github-Id-VampireAchao:test achao$ bison -V
bison (GNU Bison) 3.8.2
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

0 人点赞