在 Ubuntu 14.04 中安装 bison 2.7

Bec*_*hir 11 12.04

当我尝试使用命令在我的 ubuntu 14.04 上安装 bison 时,安装sudo apt-get install bison了版本 3。

我想降级野牛以使用 2.7 版。

我该怎么做?

谢谢。

小智 23

我安装了来自 Saucy 的最后一批野牛 (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
Run Code Online (Sandbox Code Playgroud)

防止更新管理器覆盖此包

apt-mark hold libbison-dev
apt-mark hold bison    
Run Code Online (Sandbox Code Playgroud)

完毕。

  • 为了防止更新管理器覆盖这个包`apt-mark hold libbison-dev` 和 `apt-mark hold bison` (7认同)