Answers:
我从Saucy安装了最后的pkgs的野牛(2.7.1)和libbison-dev(2.7.1),它像一个魅力一样工作。
wget http://launchpadlibrarian.net/140087283/libbison-dev_2.7.1.dfsg-1_amd64.deb
wget http://launchpadlibrarian.net/140087282/bison_2.7.1.dfsg-1_amd64.deb
dpkg -i libbison-dev_2.7.1.dfsg-1_amd64.deb
dpkg -i bison_2.7.1.dfsg-1_amd64.deb
为了防止更新管理器覆盖此程序包
apt-mark hold libbison-dev
apt-mark hold bison
做完了
apt-mark hold libbison-dev以及apt-mark hold bison
只需给出软件包的版本还如下:
apt-get install pkg=version
您可以使用获取所有可用版本 apt-cache showpkg bison
apt-get install bison=2:2.7.1.dfsg-1但apt-get仍然抱怨E: Version '2:2.7.1.dfsg-1' for 'bison' was not found
apt-cache showpkg bison查看可用的版本来查看它。一种简单的方法是仅安装bison 2.7添加saucy dev repo。
您可以通过linuxbrew安装bison版本2.7 。通过以下方式安装linuxbrew后:
ruby -e "$(wget -O- https://raw.github.com/Homebrew/linuxbrew/go/install)"
并将以下内容添加到.bashrc或.zshrc的底部:
export PATH="$HOME/.linuxbrew/bin:$PATH"
export LD_LIBRARY_PATH="$HOME/.linuxbrew/lib:$LD_LIBRARY_PATH"
您可以安装Bison 2.7!
brew install bison27
Homebrew适用于Mac,因此如果您运行Brew Doctor,它将因不正确使用Mac而大吼大叫。由于Mac已经安装了Bison,它将拒绝完成安装。您可以通过以下方式安全地强制执行此操作:
brew link bison27 --force
现在检查bison -V,看看您正在使用Bison 2.7!
bison2(2:2.7.1.dfsg-1-PPA1)可从我的PPA 这里