本文介绍了为什么我的Mac(OS X 10.7.3)具有旧版本(2.3)的Gnu Bison?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 15:57