如何在 Fedora 中安装 lex 和 yacc?
how to install lex and yacc in fedora?
我不知道如何在 fedora 24 中安装 lex
和 yacc
。我在 ubuntu 16 中安装了它。使用以下命令:
sudo apt-get update
sudo apt-get install flex
sudo apt-get install bison
有什么理由吗
dnf install flex-devel bison-devel
不会做这份工作?
遇到以下错误的解决方案:
/usr/bin/ld: cannot find -ll
collect2: error: ld returned 1 exit status
或
/usr/bin/ld: cannot find -lfl
collect2: error: ld returned 1 exit status
第 1 步:
dnf install flex bison
第 2 步:
dnf install flex-devel bison-devel
然后运行它。我有同样的问题,安装 flex-devel 解决了它。
我不知道如何在 fedora 24 中安装 lex
和 yacc
。我在 ubuntu 16 中安装了它。使用以下命令:
sudo apt-get update
sudo apt-get install flex
sudo apt-get install bison
有什么理由吗
dnf install flex-devel bison-devel
不会做这份工作?
遇到以下错误的解决方案:
/usr/bin/ld: cannot find -ll
collect2: error: ld returned 1 exit status
或
/usr/bin/ld: cannot find -lfl
collect2: error: ld returned 1 exit status
第 1 步:
dnf install flex bison
第 2 步:
dnf install flex-devel bison-devel
然后运行它。我有同样的问题,安装 flex-devel 解决了它。