11

我想安装 yay 以从 Aur ArchLinux 下载包我不知道该怎么做,谢谢你指导我们

当我使用 git clone 并使用 makepkg -si 命令时,它给出了这个错误

git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

错误文字:

==> ERROR: Cannot find the fakeroot binary.
==> ERROR: Cannot find the strip binary required for object file stripping.
4

2 回答 2

26

您缺少用于编译包的库。要安装它们:

sudo pacman -S binutils make gcc pkg-config fakeroot

或者,安装用于编译代码的基本工具:

sudo pacman -S base-devel

另外,除了安装和编译 yay(这也需要您安装所有 GO 库),为什么不安装预编译的 yay-bin?是同一个包。

git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si
于 2020-03-13T16:35:51.467 回答
3

试试看:

sudo pacman -S binutils make gcc pkg-config fakeroot

然后再次尝试makepkg。

于 2020-03-02T12:17:52.470 回答