I don’t know if the title of the post properly describes my situation, but sometimes when I try to install an application from AUR it says error making cause some dependencies are missing, I want through this problem right now when I tried to install kooha-git package on AUR:
Version: 0.64.1
Source dir: /home/denielton/.cache/yay/kooha-git/src/kooha
Build dir: /home/denielton/.cache/yay/kooha-git/src/build
Build type: native build
Project name: kooha
Project version: 2.2.2
Rust compiler for the host machine: rustc -C linker=cc (rustc 1.66.0)
Rust linker for the host machine: rustc -C linker=cc ld.bfd 2.39.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Did not find pkg-config by name 'pkg-config'
Found Pkg-config: NO
Found CMake: /usr/bin/cmake (3.25.1)
WARNING: CMake Toolchain: Failed to determine CMake compilers state
Run-time dependency glib-2.0 found: NO (tried cmake)
kooha/meson.build:14:0: ERROR: Dependency lookup for glib-2.0 with method 'pkgconfig' failed: Pkg-config binary for machine 1 not found. Giving up.
A full log can be found at /home/denielton/.cache/yay/kooha-git/src/build/meson-logs/meson-log.txt
==> ERROR: A failure occurred in build().
Aborting...
-> error making: kooha-git
So I installed cmake and pkgconf and things worked fine, but how can I install all the dependencies related to an application so I don’t have to do it manually? I don’t have a great knowledge about Linux so I can’t always solve problems like this, this time I was able to deduce that these specific applications were missing, but is there any way to know what dependencies I need to avoid errors like this?
You don’t, either the package has its dependencies filed properly in the PKGBUILD, or it doesn’t.
These are not dependencies, these are tools needed to build the package, as already said above, you should have installed them all BEFORE using the AUR.
I’d be interested in the source for that as well.
EOS currently relies on yay as it’s AUR helper, for instance.
And I use it without issue so far as well.
If I remember correctly, one developer split and created a new AUR helper. He, this one developer, may have said that. // EDIT while writing this I just searched, and I was correct: https://www.reddit.com/r/archlinux/comments/jjn1c1/paru_v100_and_stepping_away_from_yay/ //EDIT2: he didn’t say not to use yay actually, he said yay will probably not receive updates anymore as he was mainly developing it.
Indeed. That is exactly what it is for (you can also build local PKGBUILD too like that in a folder with just pamac build command, if I recall correctly).