-1

我尝试安装 bison 和 flex :

sudo pacman -Syu install bison flex

这就是我得到的:

:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
error: target not found: install
warning: flex-2.6.4-2 is up to date -- reinstalling
4

1 回答 1

0
sudo pacman -Syu install bison flex

没有名为“install”的包或子命令。要安装/升级软件包,pacman -Syu通常就足够了:

sudo pacman -Syu bison flex

pacman(8)手册页的“示例”部分:

pacman -Syu gpm

更新软件包列表,升级所有软件包,然后安装 gpm(如果尚未安装)。

另请参阅Pacman#Installing_packages

于 2019-09-16T04:44:06.813 回答