Linux 在ubuntu中安装flex和bison
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7320370/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Installation of flex and bison in ubuntu
提问by Poonam Sahoo
if the packages of flex and bison are not available in synaptic package manager,then how can one install flex and bison in ubuntu 10.04? and if i download any of these packages, can you just tell me the way to use them so that they get available in synaptic package manager?
如果 flex 和 bison 的包在突触包管理器中不可用,那么如何在 ubuntu 10.04 中安装 flex 和 bison?如果我下载了这些包中的任何一个,你能告诉我如何使用它们,以便它们在突触包管理器中可用吗?
回答by Fredrik Pihl
Download the src for e.g. bison from http://ftp.gnu.org/gnu/bison/and then do the normal
从http://ftp.gnu.org/gnu/bison/下载例如 bison 的 src ,然后执行正常操作
./configure
make
sudo make install
Download flex
from https://github.com/westes/flex/releases
回答by MrPickles
Even better is:
更好的是:
sudo apt-get update
sudo apt-get install flex
sudo apt-get install bison
which flex /*Sanity check to make sure flex is installed*/
which bison /*Sanity check to make sure bison is installed*/