How to fix (MAKEPKG) installation problem?

Arian picture Arian · Feb 27, 2020 · Viewed 9.3k times · Source

i want install yay for download package from Aur ArchLinux I don't know what to do, thank you for guiding us

When I use the git clone and use the makepkg -si command , it gives this error

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

Error text:

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

Answer

La faguette picture La faguette · Mar 13, 2020

You're missing the libraries to compile the package. To install them:

sudo pacman -S binutils make gcc pkg-config fakeroot

or, to install basic tools for compiling code:

sudo pacman -S base-devel

Also instead of installing and compiling yay (which also requires you to install all the GO libraries) why not installing the precompiled yay-bin? It's the same package.

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