问题描述
我的Mac上的GNU Bison版本是2.3,但我知道Bison 2.5早就发布了.这本书 Flex& Bison 使用2.5版.
The version of GNU Bison on my mac is 2.3 but I know that Bison 2.5 was released long ago. The book Flex & Bison uses version 2.5.
我应该自己升级到2.5吗?有必要吗?
Should I upgrade to 2.5 myself? Is it necessary?
2.3和2.5有什么区别?
What's the difference between 2.3 and 2.5?
推荐答案
如果使用Brew:
brew tap homebrew/dupes && brew install bison
如果您使用MacPorts:
If you use MacPorts:
sudo port install bison
如果您使用Fink,它们就像Apple一样仍在2.3上,因此您必须自己编辑该软件包.
If you use Fink, they're still on 2.3, just like Apple, so you'll have to edit the package yourself.
如果您知道如何安装Unix软件,请下载该软件,解压缩,然后照常进行配置/制作/安装.
If you know how to install Unix software, download it, untar, then configure/make/install as usual.
如果以上所有内容都是希腊文,请查看 http://mxcl.github.com/homebrew/和 http://macports.org 并确定哪个对您更友好.
If all of the above are Greek to you, look at http://mxcl.github.com/homebrew/ and http://macports.org and decide which one looks friendlier to you.
这篇关于为什么我的Mac(OS X 10.7.3)具有旧版本(2.3)的Gnu Bison?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!