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

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

1
brew install bison

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

1
sudo cp /opt/homebrew/Cellar/bison/3.8.2/bin/bison ./bison

即可

1
2
3
4
5
6
7
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.